Team:Grenoble/script
From 2011.igem.org
(Difference between revisions)
Maxime.huet (Talk | contribs) |
Maxime.huet (Talk | contribs) |
||
(21 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | <!-- | + | <html> |
+ | <!-- ie9.js (fixes all Internet Explorer browsers older than ie9) --> | ||
+ | <!--[if lt IE 9]> | ||
+ | <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script> | ||
+ | <![endif]--> | ||
+ | <!-- jQuery Tools (slider) --> | ||
+ | <script type="text/javascript" src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | $( | + | $(function() { |
- | + | // initialize scrollable | |
- | + | $(".style_diapo").scrollable().navigator(); | |
- | + | }); | |
- | + | </script> | |
+ | <!-- Obliger le menu a suivre la fenetre --> | ||
+ | <script type="text/javascript"> | ||
+ | $(window).scroll(function () { | ||
+ | var scrollPos = $(window).scrollTop(); | ||
+ | if (scrollPos > 155) { | ||
+ | $(".navigation").addClass("stickToTop"); | ||
+ | } else { | ||
+ | $(".navigation").removeClass("stickToTop"); | ||
+ | } | ||
+ | if (scrollPos > 180) { | ||
+ | $(".toc").addClass("stickBelowNavigation"); | ||
+ | } else { | ||
+ | $(".toc").removeClass("stickBelowNavigation"); | ||
+ | } | ||
+ | |||
+ | }); | ||
</script> | </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() { | ||
Line 65: | Line 56: | ||
); | ); | ||
</script> | </script> | ||
+ | <!-- Remove all empty <p> tags --> | ||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function() { | ||
+ | $("p").filter( function() { | ||
+ | return $.trim($(this).html()) == ''; | ||
+ | }).remove() | ||
+ | }); | ||
+ | </script> | ||
+ | <!-- Empty heading? - Then remove it.. --> | ||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function() { | ||
+ | if ("" == "</html>{{{1}}}<html>") { | ||
+ | $("#heading").remove(); | ||
+ | } | ||
+ | }); | ||
+ | </script> | ||
+ | <!-- MathJax (LaTeX for the web) --> | ||
+ | <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> | ||
+ | <!-- MathJax (LaTeX for the web) --> | ||
+ | <!-- This part is only if you want to use $...$ delimiters --> | ||
+ | <script type="text/x-mathjax-config"> | ||
+ | MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}}); | ||
+ | </script> | ||
+ | <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> | ||
+ | </html> |
Latest revision as of 22:38, 26 October 2011