Odstranit assets18/js/common.js

This commit is contained in:
Jan Rippl 2024-02-23 15:17:49 +01:00
parent 14175ded24
commit 762200784e

View file

@ -1,23 +0,0 @@
/*!
* Author: Pierre-Henry Soria <hi@ph7.me>
* Copyright: (c) 2020, Pierre-Henry Soria. All Rights Reserved.
*/
const disagreedRedirectLink = "https://google.com"; // <= URL to show when the visitor is likely to be under 18yrs
Disclaimer.generateDialog();
const oDisclaimer = new Disclaimer();
if (!oDisclaimer.isAccepted()) {
oDisclaimer.loadDialog();
oDisclaimer.centerDialog();
}
document.getElementById('agree-over18').onclick = function () {
oDisclaimer.disableDialog();
oDisclaimer.setAccepted();
};
document.getElementById('disagree-under18').onclick = function () {
location.href = disagreedRedirectLink
}