Difference between revisions of "Template:BIMATOX Project"

Line 12: Line 12:
 
window.onclick = function(e) {
 
window.onclick = function(e) {
 
   if (!e.target.matches('.dropbtn')) {
 
   if (!e.target.matches('.dropbtn')) {
 +
  var currMen = $(this).siblings('.dropdown-menu');
 +
  $('.dropdown-menu').not(currMen).hide();
 +
  currMen.toggle();
 
     var myDropdown = document.getElementById("myDropdown");
 
     var myDropdown = document.getElementById("myDropdown");
 
       if (myDropdown.classList.contains('show')) {
 
       if (myDropdown.classList.contains('show')) {
Line 323: Line 326:
 
   <a href="https://2017.igem.org/Team:UChile_Biotec/Home">Home</a>
 
   <a href="https://2017.igem.org/Team:UChile_Biotec/Home">Home</a>
  
   <li class="dropdown">
+
   <div class="dropdown">
 
     <button class="dropbtn" onclick="myFunction()">Team
 
     <button class="dropbtn" onclick="myFunction()">Team
 
       <i class="fa fa-caret-down"></i>
 
       <i class="fa fa-caret-down"></i>
Line 331: Line 334:
 
       <a href="https://2017.igem.org/Team:UChile_Biotec/Collaborations">Collaborations</a>
 
       <a href="https://2017.igem.org/Team:UChile_Biotec/Collaborations">Collaborations</a>
 
     </div>
 
     </div>
   </li>  
+
   </div>  
  
 
   <div class="dropdown">
 
   <div class="dropdown">

Revision as of 06:01, 27 October 2017