mirror of
https://github.com/AngelJumbo/gruvbox-wallpapers.git
synced 2026-08-16 10:52:31 +00:00
Fix some issues, fix JS, fix meta tag
This commit is contained in:
@@ -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";
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user