mirror of
https://github.com/AngelJumbo/gruvbox-wallpapers.git
synced 2026-10-16 06:06:17 +00:00
Fix floating buttons
This commit is contained in:
@@ -26,7 +26,8 @@ function activeSection(section) {
|
||||
hideAll();
|
||||
|
||||
const targetSection = document.getElementById(section);
|
||||
targetSection.style.display = "block";
|
||||
targetSection.focus();
|
||||
targetSection.classList.add("selected");
|
||||
setTimeout(() => {
|
||||
targetSection.scrollIntoView({ block: "start", behavior: "smooth" });
|
||||
}, 100);
|
||||
@@ -34,7 +35,8 @@ function activeSection(section) {
|
||||
|
||||
function hideAll() {
|
||||
document.querySelectorAll(".section").forEach((s) => {
|
||||
s.style.display = "none";
|
||||
s.classList.remove("selected");
|
||||
// s.style.display = "none";
|
||||
});
|
||||
}
|
||||
const HIDDEN_CLASS = "hidden";
|
||||
|
||||
Reference in New Issue
Block a user