Template:Team:Amsterdam/scripts

From 2012.igem.org

(Difference between revisions)
 
(11 intermediate revisions not shown)
Line 27: Line 27:
<!-- JQuery menu animations -->
<!-- JQuery menu animations -->
-
//<script type='text/javascript' src ='http://cherne.net/brian/resources/jquery.hoverIntent.minified.js'></script>
+
<!--<script type='text/javascript' src ='http://cherne.net/brian/resources/jquery.hoverIntent.minified.js'></script>-->
<script type='text/javascript'>
<script type='text/javascript'>
function navmenu(){
function navmenu(){
$("#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