Fix some issues, fix JS, fix meta tag

This commit is contained in:
Katy248
2024-06-01 12:50:16 +03:00
parent 6409642dc3
commit d0eee7a6a4
3 changed files with 31 additions and 23 deletions
+14
View File
@@ -21,3 +21,17 @@ function loadPage(section, page) {
document.getElementById(section).getElementsByTagName("button")[page - 1].classList.add("sel-btn");
});
}
function activeSection(section) {
hideAll();
const targetSection = document.getElementById(section);
targetSection.style.display = "block";
targetSection.focus();
}
function hideAll() {
document.querySelectorAll(".section").forEach((s) => {
s.style.display = "none";
});
}