feat: add age-gating check

This commit is contained in:
David Bailey 2024-01-11 16:54:37 +01:00
parent 2ea575f229
commit 7f2c7edf76
4 changed files with 69 additions and 1 deletions

View file

@ -0,0 +1,12 @@
function confirmAge() {
let ageGate = document.getElementById("age_gate_block");
ageGate.style.opacity = 0;
setTimeout(() => {
ageGate.parentElement.removeChild(ageGate);
}, 1000);
document.cookie += "AgeConfirmed=true; path=/; max-age=31536000"
}