Changes

Jump to: navigation, search

MediaWiki:Common.js

620 bytes removed, 11:04, 23 June 2023
m
no edit summary
{
window.addEventListener('load', run_onload, false);
}
 
 
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_accept_button.appendChild(document.createTextNode("ACCEPT COOKIES"));
GDPR_reject_button.onclick=reject_cookies;GDPR_accept_button.onclick=accept_cookies;
GDPR_table_undecided.appendChild(GDPR_row);

Navigation menu