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

Line 61: Line 61:
 
     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", "");         
        tablinksA[i].style.visibility = "hidden";
 
 
     }
 
     }
 
      
 
      
    $("#" + tabName).toggle();
+
  var x = document.getElementById(tabName');
 +
    if (x.style.display === 'none') {
 +
        x.style.display = 'block';
 +
    } else {
 +
        x.style.display = 'none';
 +
    } 
 +
 
 +
 
 
     evt.currentTarget.className += " active";
 
     evt.currentTarget.className += " active";
 
}
 
}

Revision as of 13:02, 30 October 2017