Made navbar responsive & policy popup faster

This commit is contained in:
Lorenzo Dellacà
2020-11-05 21:19:43 +01:00
parent fe27137016
commit ae728ffd9e
2 changed files with 25 additions and 6 deletions

View File

@@ -1,13 +1,13 @@
function openPolicyPopup() {
if(getCookie("consentGiven") === "true") return;
$("#mind-policy-popup").fadeIn(1000); // Enable the div
$("#mind-policy-popup").fadeIn(300); // Enable the div
}
function agreePolicyPopup() {
const _paq = window._paq || [];
_paq.push(['rememberConsentGiven', 43800]);
$("#mind-policy-popup").fadeOut(1000); // Disable the div
$("#mind-policy-popup").fadeOut(300); // Disable the div
setCookie("consentGiven", "true", 1825) // todo: check if already present? also, firefox was throwing a warning...
}