feat: ✨ add age-gating check
This commit is contained in:
parent
2ea575f229
commit
7f2c7edf76
4 changed files with 69 additions and 1 deletions
12
www/static/age_gate_check.js
Normal file
12
www/static/age_gate_check.js
Normal 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"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue