Team:Carnegie Mellon/Templates/header
From 2013.igem.org
(Difference between revisions)
Line 13: | Line 13: | ||
</script> | </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> | ||
Revision as of 16:13, 27 September 2013