diff --git a/app.js b/app.js index 2fb1c4f..68931d5 100644 --- a/app.js +++ b/app.js @@ -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"; + }); +} diff --git a/build.sh b/build.sh index 22ffdf1..10f2754 100755 --- a/build.sh +++ b/build.sh @@ -26,10 +26,10 @@ write_header(){
- +