Difference between revisions of "Team:NYU Shanghai/Code"

Line 34: Line 34:
 
<script type="text/javascript">
 
<script type="text/javascript">
 
     function expandBMG() {
 
     function expandBMG() {
     if (document.getElementById("BMG").className === "collapsed") {
+
     if (document.getElementById("BMG").className === "collapse") {
 
       document.getElementById("BMG").style.color = "goldenrod";
 
       document.getElementById("BMG").style.color = "goldenrod";
 
       document.getElementById("BMGText").style.display = "inline-block";
 
       document.getElementById("BMGText").style.display = "inline-block";
Line 41: Line 41:
 
       document.getElementById("BMG").style.color = "white";
 
       document.getElementById("BMG").style.color = "white";
 
       document.getElementById("BMGText").style.display = "none";
 
       document.getElementById("BMGText").style.display = "none";
       document.getElementById("BMG").className = "collapsed";
+
       document.getElementById("BMG").className = "collapse";
 
     };
 
     };
 
   }
 
   }
Line 49: Line 49:
 
   <h3>Code</h3>
 
   <h3>Code</h3>
 
</div>
 
</div>
<div id="BMG" class="collapsed" onclick="expandBMG()">
+
<div id="BMG">
  <h5><span class="noselect">Bacterial Music Generator</span></h5>
+
  <h5 class="collapse" onclick="expandBMG()"><span class="noselect">Bacterial Music Generator</span></h5>
<p id="BMGText" display="none">With bacteria expressing chromoproteins or fluorescent proteins. All parts taken from the Registry. See constructs</p>
+
<p id="BMGText">With bacteria expressing chromoproteins or fluorescent proteins. All parts taken from the Registry. See constructs</p>
 
</div>
 
</div>
  
 
</html>
 
</html>

Revision as of 15:57, 10 September 2015

Code

Bacterial Music Generator

With bacteria expressing chromoproteins or fluorescent proteins. All parts taken from the Registry. See constructs