documentation
This commit is contained in:
parent
645c49a4ef
commit
ebc9a6f586
3 changed files with 15 additions and 13 deletions
|
|
@ -6705,16 +6705,15 @@ function GenerateInnerHTML(db) {
|
|||
|
||||
function PageSwitchTab(clickedButton) {
|
||||
var sectionList = document.querySelectorAll(".large-section");
|
||||
console.log(sectionList);
|
||||
|
||||
for (var i = 0, length = sectionList.length; i < length; i++) {
|
||||
if (sectionList[i].id !== "tab-".concat(clickedButton.name)) {
|
||||
if (sectionList[i].classList.contains(".hidden")) {
|
||||
sectionList[i].classList.add(".hidden");
|
||||
if (!sectionList[i].classList.contains("hidden")) {
|
||||
sectionList[i].classList.add("hidden");
|
||||
}
|
||||
} else {
|
||||
if (sectionList[i].classList.contains(".hidden")) {
|
||||
sectionList[i].classList.remove(".hidden");
|
||||
if (sectionList[i].classList.contains("hidden")) {
|
||||
sectionList[i].classList.remove("hidden");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue