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

Line 58: Line 58:
 
     var i, tabcontent, tablinksA;
 
     var i, tabcontent, tablinksA;
 
      
 
      
    tablinksA = document.getElementsByClassName("tablinksA");
+
  tablinksA = document.getElementsByClassName("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] == tabName) {$("#" + tablinksA[i]).toggle();}
 
        else {$("#" + tablinksA[i]).hide();}
 
 
 
     }
 
     }
 
      
 
      
 +
    $("#" + tabName).toggle();   
 
     evt.currentTarget.className += " active";
 
     evt.currentTarget.className += " active";
 
}
 
}
Line 79: Line 77:
 
     }
 
     }
 
      
 
      
 
+
     $("#" + tabName).toggle();
    $("#System1B").hide();   
+
    $("#System2B").hide();
+
    $("#System3B").hide();
+
     $("#" + tabName).show();
+
 
     evt.currentTarget.className += " active";
 
     evt.currentTarget.className += " active";
 
}
 
}

Revision as of 12:49, 30 October 2017