Team:DTU-Denmark/Templates/StartPage

From 2013.igem.org

(Difference between revisions)
 
(One intermediate revision not shown)
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 () {
              
              
Line 33: Line 34:
             var scrollPos = Math.floor($(window).scrollTop());
             var scrollPos = Math.floor($(window).scrollTop());
 +
            if(Math.abs(prevScrollPos - scrollPos) <= 1){
 +
                  return "nuthin";
 +
            }
    
    

Latest revision as of 21:54, 4 October 2013