Line 56: | Line 56: | ||
<script> | <script> | ||
function openTabA(evt, tabName) { | function openTabA(evt, tabName) { | ||
− | + | 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", ""); | ||
− | + | tablinksA[i].style.visibility = "hidden"; | |
} | } | ||
− | + | $("#" + tabName).toggle(); | |
evt.currentTarget.className += " active"; | evt.currentTarget.className += " active"; | ||
} | } |
Revision as of 12:59, 30 October 2017