This commit is contained in:
XenGi 2023-11-06 22:38:39 +01:00
parent ace989b445
commit 5a30fa059c
Signed by: xengi
SSH key fingerprint: SHA256:FGp51kRvGOcWnTHiOI39ImwVO4A3fpvR30nPX3LpV7g
6 changed files with 237 additions and 117 deletions

View file

@ -0,0 +1,12 @@
function switchTab(event, tabname) {
for (let tab in document.getElementsByClassName("tab")) {
tab.style.display = "none";
}
for (let button in document.getElementsByClassName("tablink")) {
button.className = button.className.replace(" active", "");
}
document.getElementById(tabname).style.display = "block";
event.currentTarget.className += " active";
}