document.addEventListener("DOMContentLoaded", function () {
// Check if user has already accepted the disclaimer
var isAccepted = localStorage.getItem("disclaimerAccepted");
var elemDisclaimerOverlay =
document.getElementById("disclaimerOverlay");
if (!isAccepted) {
elemDisclaimerOverlay.classList.remove("hidden");
} else if (isAccepted === "true") {
elemDisclaimerOverlay.classList.add("hidden");
}
// Handle close button click
document
.getElementById("disclaimerClose")
.addEventListener("click", function () {
localStorage.setItem("disclaimerAccepted", true);
document
.getElementById("disclaimerOverlay")
.classList.add("hidden");
});
});
-->