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>
 

Revision as of 11:49, 24 September 2011