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

Line 33: Line 33:
  
 
<script type="text/javascript">
 
<script type="text/javascript">
  function collapse() {
 
  /*document.getElementById("BMG").style.color = "goldenrod";
 
  document.getElementById("BMGText").style.display = "none";
 
 
    if (document.getElementsByClassName("expanded").length > 0) {
 
    document.getElementsByClassName("expanded")[0].className = "collapsing";
 
    };*/
 
    }
 
   
 
 
     function expandBMG() {
 
     function expandBMG() {
 
     if (document.getElementById("BMG").className === "expanded") {
 
     if (document.getElementById("BMG").className === "expanded") {
Line 59: Line 50:
 
   <h3>Code</h3>
 
   <h3>Code</h3>
 
</div>
 
</div>
<div id="BMG" class="collapsed" onclick="collapse();expandBMG()">
+
<div id="BMG" class="collapsed" onclick="expandBMG()">
 
   <h5><span class="noselect">Bacterial Music Generator</span></h5>
 
   <h5><span class="noselect">Bacterial Music Generator</span></h5>
 
<p id="BMGText">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>

Revision as of 15:42, 10 September 2015

Code