/* easycookiebox.com
Orders=
Pro=disabled
Getlanguage=en
Multilanguage=disabled
Language=nl
Regular=disabled
*/
var easycookieboxmessage = "EasyCookieBox is correct geïnstalleerd.
Je kunt deze activeren door je bestelling af te ronden op www.EasyCookieBox.com.
Powered by easycookiebox.com";
var easycookieboxallow = "";
var easycookieboxdismiss = "Deze melding sluiten";
var easycookieboxbackgroundcolor = "#252e39";
var easycookieboxtextcolor = "#ffffff";
var easycookieboxbuttonbackgroundcolor = "#14a7d0";
var easycookieboxbuttonbordercolor = "#14a7d0";
var easycookieboxbuttontextcolor = "#ffffff";
var easycookieboxposition = "bottom-left ";
var easycookieboxstatic = false;
var easycookieboxtheme = "";
var easycookieboxtype = "info";
// This file is outputed by easycookiebox.php to the browser
// it includes the cookieconsent script and css and also
// initializes the cookieconsent cookiebox based on the given
// variables from easycookiebox.php
function includeJS(url)
// Append a javascript url to the browser script tag so it will be loaded
{
var script = document.createElement("script"); // Make a script DOM node
script.src = url; // Set it's src to the provided URL
document.head.appendChild(script); // Add it to the end of the head section of the page (could change 'head' to 'body' to add it to the end of the body section instead)
}
function includeCSS(url)
// Append a css url to the browser css link tag so it will be loaded
{
var link = document.createElement( "link" );
link.href = url;
link.type = "text/css";
link.rel = "stylesheet";
link.media = "screen,print,projection";
document.getElementsByTagName( "head" )[0].appendChild( link );
}
// Load the correct cookieconsent css and js for test or production site
var scripts = document.getElementsByTagName('script');
var index = scripts.length - 1;
var src = scripts[index].src;
if (src.search("testscript.easycookiebox.com") < 0)
{
includeCSS("https://script.easycookiebox.com/cookieconsent.min.css");
includeJS("https://script.easycookiebox.com/cookieconsent.js");
}
else
{
includeCSS("https://testscript.easycookiebox.com/cookieconsent.min.css");
includeJS("https://testscript.easycookiebox.com/cookieconsent.js");
}
// Add an onload eventlister to initialize cookieconsent
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette":
{
"popup":
{
"background": easycookieboxbackgroundcolor,
"text": easycookieboxtextcolor
},
"button":
{
"background": easycookieboxbuttonbackgroundcolor,
"text": easycookieboxbuttontextcolor,
"border": easycookieboxbuttonbordercolor
}
},
"theme": easycookieboxtheme,
"position": easycookieboxposition,
"static": easycookieboxstatic,
"showlink": false,
"type": easycookieboxtype,
"content":
{
"message": easycookieboxmessage,
"allow": easycookieboxallow,
"dismiss": easycookieboxdismiss,
"link": "",
"href": ""
},
onStatusChange: function(status, chosenBefore)
// This function is called when the user chooses to allow or deny cookies
{
var type = this.options.type;
var didConsent = this.hasConsented();
if (type == 'opt-in' && didConsent)
{
if (status == "allow") acceptcookies();
else denycookies();
}
},
});
});
function acceptcookies()
// This function is called when cookies are accepted, we don't do anything in this case
{
}
function denycookies()
// This function is called when cookies are denied, we redirect to ghostery.com and expire all cookies
{
window.open("https://www.ghostery.com/products");
expirecookies();
}
function expirecookies()
// This function tries to expire all cookies from this domain so they are deleted by the browser
{
var c = document.cookie.split("; ");
for (i in c)
{
var cookiename = /^[^=]+/.exec(c[i])[0];
if (cookiename != "cookieconsent_status")
{
document.cookie =/^[^=]+/.exec(c[i])[0]+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT";
document.cookie =/^[^=]+/.exec(c[i])[0]+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/";
}
}
}