Team:Carnegie Mellon/Templates/Header
From 2012.igem.org
(Difference between revisions)
Line 9: | Line 9: | ||
TeX: { equationNumbers: { autoNumber: "AMS" }, extensions:["AMSmath.js", "AMSsymbols.js"]} | TeX: { equationNumbers: { autoNumber: "AMS" }, extensions:["AMSmath.js", "AMSsymbols.js"]} | ||
}); | }); | ||
- | |||
- | |||
</script> | </script> | ||
+ | |||
<script type="text/javascript" | <script type="text/javascript" | ||
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> | src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> | ||
+ | </script> | ||
+ | |||
+ | |||
+ | <!-- Script for hiding/showing code snippets, referenced http://www.alohatechsupport.net/webdesignmaui/maui-web-site-design/show_hide_expand_collapse_javascript.html --> | ||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function() { | ||
+ | // Hide the "view" div. | ||
+ | $('div.view').hide(); | ||
+ | // Watch for clicks on the "slide" link. | ||
+ | $('div.slide').click(function() { | ||
+ | // When clicked, toggle the "view" div. | ||
+ | $('div.view').slideToggle(400); | ||
+ | return false; | ||
+ | }); | ||
+ | }); | ||
</script> | </script> | ||