Team:WHU-China/templates/standardpage middle

From 2013.igem.org

(Difference between revisions)
 
(2 intermediate revisions not shown)
Line 6: Line 6:
<link rel="stylesheet" href="https://2013.igem.org/Team:WHU-China/middleleftcss?action=raw&ctype=text/css" type="text/css" />
<link rel="stylesheet" href="https://2013.igem.org/Team:WHU-China/middleleftcss?action=raw&ctype=text/css" type="text/css" />
<link rel="stylesheet" href="https://2013.igem.org/Team:WHU-China/middlerightcss?action=raw&ctype=text/css" type="text/css" />
<link rel="stylesheet" href="https://2013.igem.org/Team:WHU-China/middlerightcss?action=raw&ctype=text/css" type="text/css" />
-
 
-
<html >
 
     <link rel="stylesheet" href="https://2013.igem.org/Team:WHU-China/middleleftcss?action=raw&ctype=text/css" type="text/css" />
     <link rel="stylesheet" href="https://2013.igem.org/Team:WHU-China/middleleftcss?action=raw&ctype=text/css" type="text/css" />
     <!-- ie9.js (fixes all Internet Explorer browsers older than ie9) -->
     <!-- ie9.js (fixes all Internet Explorer browsers older than ie9) -->
Line 23: Line 21:
         $(window).scroll(function () {  
         $(window).scroll(function () {  
             var scrollPos = $(window).scrollTop();
             var scrollPos = $(window).scrollTop();
-
             if (scrollPos > 110) {
+
             if (scrollPos > 140) {
-
                $(".navigation").addClass("stickToTop");
+
-
            } else {
+
-
                $(".navigation").removeClass("stickToTop");
+
-
            }
+
-
            if (scrollPos > 180) {
+
                 $(".toc").addClass("stickBelowNavigation");
                 $(".toc").addClass("stickBelowNavigation");
             } else {
             } else {

Latest revision as of 03:29, 18 September 2013

Contents