Team:TU Delft-Leiden/Templates/Start
From 2014.igem.org
(Difference between revisions)
Dschmieden (Talk | contribs) |
Dschmieden (Talk | contribs) |
||
Line 21: | Line 21: | ||
$('#nav li.sub-menu').click(function() { | $('#nav li.sub-menu').click(function() { | ||
window.location.replace($(this).find('a').first().attr('href')); | window.location.replace($(this).find('a').first().attr('href')); | ||
+ | }); | ||
+ | |||
+ | $(document).mousemove(function(event) { | ||
+ | if (event.pageY <= 20 && $('#top-section').attr('display') != 'block') { | ||
+ | $('#top-section').fadeIn(); | ||
+ | } else { | ||
+ | if (event.pageY >= 20 && $('#top-section').attr('display') == 'block') { | ||
+ | $('#top-section').fadeOut(); | ||
+ | } | ||
+ | } | ||
}); | }); | ||
}); | }); |
Revision as of 13:29, 28 September 2014