foo
This commit is contained in:
parent
ace989b445
commit
5a30fa059c
6 changed files with 237 additions and 117 deletions
|
@ -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";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue