Replaced Placeholder Installation Guides with Full Guides
This commit is contained in:
parent
e232e153d8
commit
189db5e479
3 changed files with 147 additions and 18 deletions
|
|
@ -1,4 +1,5 @@
|
|||
const guideContents = document.querySelectorAll(".guide-content");
|
||||
const guideButtons = document.querySelectorAll(".guide");
|
||||
|
||||
function changeGuide(newID) {
|
||||
guideContents.forEach(content => {
|
||||
|
|
@ -8,4 +9,15 @@ function changeGuide(newID) {
|
|||
content.style.display = "none";
|
||||
}
|
||||
})
|
||||
|
||||
guideButtons.forEach(button => {
|
||||
let gid = button.id.slice(1);
|
||||
if (gid == newID) {
|
||||
button.classList.add("active");
|
||||
} else {
|
||||
if (button.classList.contains("active")) {
|
||||
button.classList.remove("active");
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue