Team:UT-Tokyo/Project/Results
From 2011.igem.org
(Difference between revisions)
m |
m |
||
Line 13: | Line 13: | ||
#sub-panel a { width:150px; float:right; color:#000; text-decoration:none; margin-right:30px; font-weight:bold; } | #sub-panel a { width:150px; float:right; color:#000; text-decoration:none; margin-right:30px; font-weight:bold; } | ||
#sub-panel a span { padding:6px; display:block; } | #sub-panel a span { padding:6px; display:block; } | ||
+ | |||
+ | </style> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $(function(){ | ||
+ | $("#sub-panel").click(function(){ | ||
+ | $("#top-panel").slideToggle(); | ||
+ | var el = $("#shText"); | ||
+ | var state = $("#shText").html(); | ||
+ | state = (state == 'Hide' ? '<span id="shText">Show</span>' : '<span id="shText">Hide</span>'); | ||
+ | el.replaceWith(state); | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
Line 21: | Line 35: | ||
<div id="top-panel"> | <div id="top-panel"> | ||
====TBD==== | ====TBD==== | ||
+ | |||
+ | |||
</div> | </div> | ||
+ | |||
<html> | <html> | ||
- | <div id="sub-panel"><a id="toggle"><span id="shText">Hide | + | <div id="sub-panel"><a id="toggle"><span id="shText">Hide</span></a></div> |
</html> | </html> | ||
{{:Team:UT-Tokyo/Templates/EndContent}} | {{:Team:UT-Tokyo/Templates/EndContent}} |
Revision as of 11:54, 24 September 2011