Difference between revisions of "Template:Bielefeld-CeBiTec/js/stylesheet"
Line 7: | Line 7: | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
− | |||
$("#myNav").affix({ | $("#myNav").affix({ | ||
− | |||
offset: { | offset: { | ||
− | |||
top: 195 | top: 195 | ||
− | + | } | |
− | + | ||
− | + | ||
}); | }); | ||
+ | }); | ||
+ | (document).ready(function() { | ||
+ | $("#logo-cf").hover(function(){ | ||
+ | $("#logo-cf img").animate({ opacity: 0 }, 'slow'); | ||
+ | }, function() { | ||
+ | $("#logo-cf img").animate({ opacity: 1 }, 'slow'); | ||
+ | }); | ||
}); | }); |
Revision as of 12:30, 17 August 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'); }); });