Difference between revisions of "Template:Bielefeld-CeBiTec/js/stylesheet"
(10 intermediate revisions by 2 users not shown) | |||
Line 14: | Line 14: | ||
}); | }); | ||
− | (document).ready(function() { | + | /* |
− | + | $('body').scrollspy({ target: '#pagenav' }); | |
− | + | */ | |
− | + | ||
− | + | $(document).ready(function(){ | |
+ | $('ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) { | ||
+ | event.preventDefault(); | ||
+ | event.stopPropagation(); | ||
+ | $(this).parent().siblings().removeClass('open'); | ||
+ | $(this).parent().toggleClass('open'); | ||
+ | }); | ||
}); | }); | ||
− |
Latest revision as of 18:10, 17 September 2015
$(document).ready(function () { var shiftWindow = function() { scrollBy(0, -80) }; window.addEventListener("hashchange", shiftWindow); function load() { if (window.location.hash) shiftWindow(); } load(); });
$(document).ready(function(){
$("#myNav").affix({ offset: { top: 195 } });
});
/* $('body').scrollspy({ target: '#pagenav' });
- /
$(document).ready(function(){ $('ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) { event.preventDefault(); event.stopPropagation(); $(this).parent().siblings().removeClass('open'); $(this).parent().toggleClass('open'); }); });