Difference between revisions of "Template:Bielefeld-CeBiTec/js/stylesheet"
Line 14: | Line 14: | ||
}); | }); | ||
− | (document).ready(function() { | + | $(document).ready(function() { |
$("#logo-cf").hover(function(){ | $("#logo-cf").hover(function(){ | ||
$("#logo-cf img").animate({ opacity: 0 }, 'slow'); | $("#logo-cf img").animate({ opacity: 0 }, 'slow'); | ||
Line 25: | Line 25: | ||
− | + | $(document).ready(function(){ | |
$('ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) { | $('ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) { | ||
event.preventDefault(); | event.preventDefault(); | ||
Line 33: | Line 33: | ||
}); | }); | ||
}); | }); | ||
− |
Revision as of 09:10, 16 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 } });
});
$(document).ready(function() { $("#logo-cf").hover(function(){ $("#logo-cf img").animate({ opacity: 0 }, 'slow'); }, function() { $("#logo-cf img").animate({ opacity: 1 }, 'slow'); }); });
$('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');
});
});