9,713
edits
Changes
m
if(document.cookie.indexOf("GDPR") != -1){
var state_pos = document.cookie.indexOf("GDPR=");
var state_start = state_pos + 5;
var state_end = state_start + 8;
GDPR_state_value = document.cookie.substring(state_start,state_end);
console.log(GDPR_state_value);
console.log(document.cookie);
}
no edit summary
function run_onload(){
GDPR_state_value = "undecided";
if (GDPR_state_value == "undecided"){
undecided();
function undecided(){
alert('');
}