Template:Team:USyd-Australia/Bits

From 2014.igem.org

(Difference between revisions)
Line 6: Line 6:
<head>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
-
<script>
+
<script type="text/javascript">
-
$(document).ready(function(){
+
<!--
-
 
+
    function toggle_visibility(id) {
-
  $("#PrimerClick").on('click', function() {
+
      var e = document.getElementById(id);
-
    $(this).hide();
+
      if(e.style.display == 'block')
-
    $("#PrimerTable).hide();
+
          e.style.display = 'none';
-
    $("#gBlockTable").show();
+
      else
-
});
+
          e.style.display = 'block';
-
  });
+
    }
-
});
+
//-->
</script>
</script>
</head>
</head>
-
 
+
<a href="#" onclick="toggle_visibility('foo');">Click here to toggle visibility of element #foo</a>
 +
<div id="foo">This is foo</div>
<body>
<body>
<ul id="BitsBar">  
<ul id="BitsBar">  
-
   <li><a id="PrimerClick" href="#">Primers</a></li>
+
   <li><a href="#" onclick="toggle_visibility('PrimerTable');">Primers</a></li>
   <li><a id="gBlockClick"href="#">gBlocks</a></li></ul>
   <li><a id="gBlockClick"href="#">gBlocks</a></li></ul>

Revision as of 04:35, 16 October 2014

iGEM_Link


Click here to toggle visibility of element #foo

This is foo
Primer Name Sequence Date Made GC% Length Tm(°C) Comment
gBlock Name Sequence Date Made GC% Length Comment

1
2
3
4