Update Ready
This commit is contained in:
parent
dc2a9c44b2
commit
4045f07671
56 changed files with 778 additions and 0 deletions
13
assets/js/tab-switcher.js
Normal file
13
assets/js/tab-switcher.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
function toTab(pageName,elmnt,color) {
|
||||
var i, tabcontent, tablinks;
|
||||
tabcontent = document.getElementsByClassName("extra-content");
|
||||
for (i = 0; i < tabcontent.length; i++) {
|
||||
tabcontent[i].style.display = "none";
|
||||
}
|
||||
tablinks = document.getElementsByClassName("tab");
|
||||
for (i = 0; i < tablinks.length; i++) {
|
||||
tablinks[i].style.borderColor = "";
|
||||
}
|
||||
document.getElementById(pageName).style.display = "inherit";
|
||||
elmnt.style.borderColor = color;
|
||||
}
|
Reference in a new issue