Team:Grenoble/script
From 2011.igem.org
(Difference between revisions)
Maxime.huet (Talk | contribs) |
Maxime.huet (Talk | contribs) |
||
(2 intermediate revisions not shown) | |||
Line 5: | Line 5: | ||
<![endif]--> | <![endif]--> | ||
<!-- jQuery Tools (slider) --> | <!-- jQuery Tools (slider) --> | ||
- | <script src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script> | + | <script type="text/javascript" src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script> |
- | <script> | + | <script type="text/javascript"> |
$(function() { | $(function() { | ||
// initialize scrollable | // initialize scrollable | ||
Line 21: | Line 21: | ||
$(".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> | ||
<!-- Sexy Drop Down (drop down navigation) --> | <!-- Sexy Drop Down (drop down navigation) --> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(document).ready( | $(document).ready( | ||
function(){ | function(){ | ||
- | $("ul.subnav").parent().find("> a").append("<span> | + | $("ul.subnav").parent().find("> a").append("<span> ↓</span>"); |
$("ul.topnav li").hover( | $("ul.topnav li").hover( | ||
function() { | function() { |
Latest revision as of 22:38, 26 October 2011