custom.js 313 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 window.onload = function(){ var header = $('.navbar-default'); $(window).scroll(function(e){ if(header.offset().top !== 0){ if(!header.hasClass('huge')){ header.addClass('huge'); } }else{ header.removeClass('huge'); } }); }