Last active
May 16, 2018 08:24
-
-
Save joostdevries/c9d74c26cd8554c5f7a26371bd427160 to your computer and use it in GitHub Desktop.
consent-test.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
function getConsentCookie() { | |
} | |
function setConsentCookie() { | |
} | |
function renderConsentBar() { | |
} | |
function giveConsent() { | |
setCookie(); | |
location.reload(); | |
} | |
window.PUBLITAS_CUSTOM_CONSENT = getConsentCookie(); | |
document.addEventListener("DOMContentLoaded", function(event) { | |
if(!PUBLITAS_CUSTOM_CONSENT) { | |
renderConsentBar(); | |
} | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment