Odstranit assets18/js/common.js
This commit is contained in:
parent
14175ded24
commit
762200784e
1 changed files with 0 additions and 23 deletions
|
@ -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
|
|
||||||
}
|
|
Loading…
Reference in a new issue