sumorobot-web/assets/js/cookie.js
Marvin Martinson 65708e4365 changes
2018-11-02 14:40:16 +02:00

36 lines
976 B
JavaScript
Executable File

var cookiesEnabled = true;
/*
window.addEventListener("load", function() {
window.cookieconsent.initialise({
"type": "opt-in",
"position": "bottom-right",
content: {
message: 'Please allow cookies to enable all features of this website.'
},
"palette": {
"popup": {
"background": "#242943ff"
},
"button": {
"background": "#ffd500ff"
}
},
onInitialise: function (status) {
// When cookies are allowed
if (status == 'allow') {
cookiesEnabled = true;
}
},
onStatusChange: function(status, chosenBefore) {
// When cookies are allowed
if (status == 'allow') {
cookiesEnabled = true;
// When cookies are disabled
} else {
cookiesEnabled = false
}
}
})
});*/