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
|
|
@ -589,22 +589,25 @@ function GenerateInnerHTML(db) {
|
|||
benchmarkTimes.GenerateInnerHTML.timeEnd = performance.now();
|
||||
}
|
||||
|
||||
/**
|
||||
* Hides all other tabs, except the one which button was clicked (shows only the chosen tab)
|
||||
* @param {EventTarget} clickedButton The click target (button clicked)
|
||||
*/
|
||||
function PageSwitchTab(clickedButton) {
|
||||
|
||||
let sectionList = document.querySelectorAll(".large-section");
|
||||
|
||||
console.log(sectionList);
|
||||
|
||||
for (let i = 0, length = sectionList.length; i < length; i++) {
|
||||
|
||||
if (sectionList[i].id !== `tab-${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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue