Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //added and overwrite to jquery.v.js file
- jQuery.noConflict();
- (function($) {
- $(function() {
- $(window).scroll(function(){
- a = $(this);
- if(a.scrollTop() > 140){
- $('#top-nav').addClass('fixed');
- } else{
- $('#top-nav').removeClass('fixed');
- }
- });
- $('.menu-primary-container a').click(function(){
- var url = $(this).attr("href");
- document.location.href=url;
- });
- });
- })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment