Skip to content

Commit

Permalink
cookie consent wrangle - seems to clash with google
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon committed May 14, 2024
1 parent 4e017fd commit 49f7c56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/assets/js/purecookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function pureEraseCookie(name) {
document.cookie = name+'=; Max-Age=-99999999;';
}

function pure CookieConsent() {
function pureCookieConsent() {
if (!pureGetCookie('purecookieDismiss')) {
document.body.innerHTML += '<div class="cookieConsentContainer" id="cookieConsentContainer"><div class="cookieTitle"><a>' + purecookieTitle + '</a></div><div class="cookieDesc"><p>' + purecookieDesc + ' ' + purecookieLink + '</p></div><div class="cookieButton"><a onClick="purecookieDismiss();">' + purecookieButton + '</a></div></div>';
pureFadeIn("cookieConsentContainer");
Expand All @@ -67,4 +67,4 @@ function purecookieDismiss() {
pureFadeOut("cookieConsentContainer");
}

window.onload = function() { pure CookieConsent(); };
window.onload = function() { pureCookieConsent(); };

0 comments on commit 49f7c56

Please sign in to comment.