9,714
edits
Changes
m
}
function reject_cookies(){
var GDPR_cookie = "GDPR=rejected"
var GDPR_year = new Date(); // create date
GDPR_year.setFullYear(GDPR_year.getFullYear() +1) // add 1 year from now
var GDPR_end = "expires=" + GDPR_year.toGMTString() + ";path=/; samesite=strict"; // make endcookie and path variable
// var GDPR_end = "expires=0;path=/; samesite=strict"; // make endcookie and path variable
document.cookie = GDPR_cookie + ";" + GDPR_end;
console.log("Added cookie: " + document.cookie);
GDPR_table_undecided.remove();
rejected();
GDPR_reject_button.onclick=reject_cookies;GDPR_accept_button.onclick=accept_cookies;
no edit summary
{
window.addEventListener('load', run_onload, false);
}
GDPR_accept_button.appendChild(document.createTextNode("ACCEPT COOKIES"));
GDPR_table_undecided.appendChild(GDPR_row);