Team:DTU-Denmark/Templates/StartPage
From 2013.igem.org
(Difference between revisions)
Pdworzynski (Talk | contribs) |
Pdworzynski (Talk | contribs) |
||
Line 28: | Line 28: | ||
<!-- Navigation scroll follow --> | <!-- Navigation scroll follow --> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | var prevScrollPos = -1000; | ||
$(window).scroll(function () { | $(window).scroll(function () { | ||
<!-- here is added table of content fixing to screen : was all 35 with Title OutsideWhitebox--> | <!-- here is added table of content fixing to screen : was all 35 with Title OutsideWhitebox--> | ||
- | var scrollPos = | + | var scrollPos = $(window).scrollTop(); |
+ | if(Math.abs(prevScrollPos - scrollPos) <= 1){ | ||
+ | return "nuthin"; | ||
+ | } | ||
Revision as of 21:52, 4 October 2013