Difference between revisions of "Template:Wageningen UR/CpxKineticsCSS"

Line 56: Line 56:
 
<script>
 
<script>
 
function openTabA(evt, tabName) {
 
function openTabA(evt, tabName) {
    var i, tabcontent, tablinksA;
+
  var i, tabcontent, tablinksA;
 
      
 
      
 
   tablinksA = document.getElementsByClassName("tablinksA");
 
   tablinksA = document.getElementsByClassName("tablinksA");
  alert(tablinksA)
 
 
     for (i = 0; i < tablinksA.length; i++) {
 
     for (i = 0; i < tablinksA.length; i++) {
 
         tablinksA[i].className = tablinksA[i].className.replace(" active", "");         
 
         tablinksA[i].className = tablinksA[i].className.replace(" active", "");         
         if(tablinksA[i].className == tabName.className) {$("#" + tabName).show(); }
+
         tablinksA[i].style.visibility = "hidden";
 
     }
 
     }
 
      
 
      
     
+
    $("#" + tabName).toggle(); 
 
     evt.currentTarget.className += " active";
 
     evt.currentTarget.className += " active";
 
}
 
}

Revision as of 12:59, 30 October 2017