Template:Team:Paris Saclay/default header
From 2014.igem.org
(Difference between revisions)
m |
m |
||
Line 84: | Line 84: | ||
<script> | <script> | ||
var nav = $('#menups'); | var nav = $('#menups'); | ||
+ | var sub = $("submenups"); | ||
$(window).scroll(function () { | $(window).scroll(function () { | ||
Line 90: | Line 91: | ||
} else { | } else { | ||
nav.removeClass("fixedmenups"); | nav.removeClass("fixedmenups"); | ||
+ | } | ||
+ | if ($(this).scrollTop() > 215) { | ||
+ | sub.addClass("fixedsubmenups"); | ||
+ | } else { | ||
+ | sub.removeClass("fixedsubmenups"); | ||
} | } | ||
}); | }); |
Revision as of 16:03, 17 October 2014