Difference between revisions of "Team:Newcastle/Protocols"

Line 188: Line 188:
  
 
function myFunction2() {
 
function myFunction2() {
     document.getElementByClassName("dropdown-content").classList.toggle("hide");
+
  if (!event.target.matches('.dropbtn')) {
 +
 
 +
     var dropdowns = document.getElementsByClassName("dropdown-content");
 +
    var i;
 +
    for (i = 0; i < dropdowns.length; i++) {
 +
      var openDropdown = dropdowns[i];
 +
      if (openDropdown.classList.contains('show')) {
 +
        openDropdown.classList.remove('show');
 +
      }
 +
    }
 +
  }
 
     document.getElementById("myDropdown2").classList.toggle("show");
 
     document.getElementById("myDropdown2").classList.toggle("show");
 
}
 
}

Revision as of 13:24, 19 May 2017

Our wiki is currently under construction, please bear with us while we make it functional

Protocols

Archive of all protocols used by team members
The SOP template can be downloaded here.


Protocol Author Category
E .coli Transformation Bradley Brown General View