Team:Grenoble/script

From 2011.igem.org

(Difference between revisions)
Line 1: Line 1:
 +
<html>
 +
<!-- Remove all empty <p> tags -->
<!-- Remove all empty <p> tags -->
<script type="text/javascript">
<script type="text/javascript">
Line 9: Line 11:
  <!-- jQuery Tools (slider) -->
  <!-- jQuery Tools (slider) -->
-
    <script src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script>
+
<script src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script>
-
    <script>
+
<script>
-
        $(function() {
+
$(function() {
-
    // initialize scrollable
+
    // initialize scrollable
-
    $(".scrollable").scrollable().navigator();
+
    $(".scrollable").scrollable().navigator();
-
        });
+
});
-
    </script>
+
</script>
-
    <!-- Navigation scroll follow -->
+
<!-- Navigation scroll follow -->
-
    <script type="text/javascript">
+
<script type="text/javascript">
-
        $(window).scroll(function () {  
+
$(window).scroll(function () {  
-
            var scrollPos = $(window).scrollTop();
+
var scrollPos = $(window).scrollTop();
-
            if (scrollPos > 110) {
+
if (scrollPos > 110) {
-
                $(".navigation").addClass("stickToTop");
+
$(".navigation").addClass("stickToTop");
-
            } else {
+
} else {
-
                $(".navigation").removeClass("stickToTop");
+
$(".navigation").removeClass("stickToTop");
-
            }
+
}
-
            if (scrollPos > 180) {
+
if (scrollPos > 180) {
-
                $(".toc").addClass("stickBelowNavigation");
+
$(".toc").addClass("stickBelowNavigation");
-
            } else {
+
} else {
-
                $(".toc").removeClass("stickBelowNavigation");
+
$(".toc").removeClass("stickBelowNavigation");
-
            }
+
}
-
        });
+
});
-
    </script>
+
</script>
Line 65: Line 67:
);
);
</script>
</script>
 +
 +
</html>

Revision as of 20:21, 21 October 2011