11 lines
No EOL
296 B
JavaScript
11 lines
No EOL
296 B
JavaScript
const guideContents = document.querySelectorAll(".guide-content");
|
|
|
|
function changeGuide(newID) {
|
|
guideContents.forEach(content => {
|
|
if (content.id == newID) {
|
|
content.style.display = "block";
|
|
} else {
|
|
content.style.display = "none";
|
|
}
|
|
})
|
|
} |