Template:Team:Amsterdam/scripts

From 2012.igem.org

(Difference between revisions)
 
(10 intermediate revisions not shown)
Line 32: Line 32:
$("#navmenu ul ul").css({display: "none", height:'auto'}); // Opera Fix
$("#navmenu ul ul").css({display: "none", height:'auto'}); // Opera Fix
-
$
+
$("#navmenu ul ul.expanded").css({display: "block", height:'show'}); // Expand selected elements
$("#navmenu ul > li:has(ul) > a").toggle(
$("#navmenu ul > li:has(ul) > a").toggle(
Line 44: Line 44:
});
});
</script>
</script>
 +
 +
<!-- Sticky Sidebar -->
 +
<script type="text/javascript">
 +
$(window).scroll(function () {
 +
var winPos = $(window).scrollTop();
 +
if (winPos > 234) {
 +
$("#sidebar-area").css({position:'fixed', top: 0});
 +
} else {
 +
$("#sidebar-area").css({position:'relative'});
 +
}
 +
});
 +
</script>
 +
 +
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
 +
</script>
 +
<script type="text/x-mathjax-config">
 +
    MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)'],['<math>','</math>']]}});
 +
</script>
 +
 +
 +
</html>
</html>

Latest revision as of 03:51, 27 September 2012