Team:Grenoble/script

From 2011.igem.org

(Difference between revisions)
 
(11 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 12: Line 12:
});
});
</script>
</script>
-
<!-- Navigation scroll follow -->
+
<!-- Obliger le menu a suivre la fenetre -->
<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 > 155) {
$(".navigation").addClass("stickToTop");
$(".navigation").addClass("stickToTop");
} else {
} else {
Line 26: Line 26:
$(".toc").removeClass("stickBelowNavigation");
$(".toc").removeClass("stickBelowNavigation");
}
}
 +
});
});
</script>
</script>
Line 32: Line 33:
$(document).ready(
$(document).ready(
function(){
function(){
-
$("ul.subnav").parent().find("> a").append("<span> </span>");
+
$("ul.subnav").parent().find("> a").append("<span> </span>");
$("ul.topnav li").hover(
$("ul.topnav li").hover(
function() {
function() {
Line 71: Line 72:
});
});
</script>
</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>
</html>

Latest revision as of 22:38, 26 October 2011