Gamereactors Julkalender 2019 är igång!


HamburgerWilly

‘;

var button = document.createElement(‘button’);
button.id = cookieName + ‘_close’;
button.innerHTML = ‘x’;
button.addEventListener(‘click’, function() {
AcceptWarning(cookieName, expiresSeconds);
});

elContainer.appendChild(button);

prependToThisElement.insertBefore(elContainer, prependToThisElement.firstChild);
}

function AcceptWarning(cookieName, expiresSeconds) {
var expires = new Date();
expires.setMilliseconds(expiresSeconds * 1000);
expires = expires.toGMTString();

$(‘#’+cookieName).fadeToggle( “slow”, “linear” );

setCookie(cookieName, 1, expires, ‘/’, false, false);

return false;
}

function detectAdblockUserTEMP() {
// return false;

var adBlock = 1;

var analyticsMessage = ”;
if (adBlock)
{
analyticsMessage += ‘Yes’;

if (!getCookie(“adBlockMessage”))
{
var docHeight = $(document).height();
$(“”).appendTo(“body”);
$(“#darkoverlay”).height(docHeight);
$(“#darkoverlay”).css({“position”:”absolute”, “top”:”0px”, “left”:”0px”, “z-index”:”998″, “opacity”:”0.6″, “background-color”:”black”, “width”:”100%”});

var adblockOverlay = ”;
$(adblockOverlay).appendTo(“body”);
$(“#closeOverlayMessage”).click(function (e) {
e.preventDefault();
$(this).parent().hide();
$(“#darkoverlay”).hide();
});

var expires = new Date();
var expiresSeconds = 60*60*24*7; // Cookie to show adblock message once per week
expires.setMilliseconds(expiresSeconds * 1000);
expires = expires.toGMTString();
setCookie(‘adBlockMessage’, 1, expires, ‘/’, false, false);
}
}
else
analyticsMessage += ‘No’;

trackAdblock(analyticsMessage);
}

function trackAdblock(state){

function readAnaCookie(name) {
var nameEQ = name + “=”;
var ca = document.cookie.split(‘;’);
for(var i=0;i

Original Source

Powered by WPeMatico