var jsCC = {
notificationHtml: "\u003Cdiv class=\u0022cc-notification cc-notification-style-right_bottom\u0022\u003E\n\n \u003Cdiv class=\u0022cc-inner\u0022\u003E\n \u003Cdiv class=\u0022cc-intro\u0022\u003E\n \u003Ch2\u003EDeze website maakt gebruik van cookies.\u003C\/h2\u003E\n \u003Cdiv class=\u0022cc-window-text\u0022\u003E\n \u003Cp\u003EDeze website maakt gebruik van cookies.\r\nDe strikt-noodzakelijke cookies zijn nodig voor het goed functioneren van de website en kunnen niet worden geweigerd. Andere cookies worden gebruikt voor statistische doeleinden (analytische cookies) en marketingdoeleinden (nieuwsbrief) en worden enkel geplaatst nadat je toestemming hebt gegeven. Lees er meer over in onze \u003Ca href=\u0022\/legal\/cookieverklaring\u0022 target=\u0022_blank\u0022\u003ECookieverklaring.\u003C\/a\u003E\u003C\/p\u003E\n \u003C\/div\u003E\n \u003C\/div\u003E\n \n \u003Cdiv class=\u0022cc-footer\u0022\u003E\n\n \u003Cdiv class=\u0022cc-cookies\u0022\u003E\n \u003Clabel for=\u0022cc-cookie-functional\u0022\u003E\n \u003Cinput checked=\u0022checked\u0022 disabled type=\u0022checkbox\u0022 value=\u0022cc-cookie-functional\u0022 name=\u0022cc-cookie\u0022 id=\u0022cc-cookie-functional\u0022\u003E\n \n \u003Cdiv class=\u0022cc-switch-wrapper\u0022\u003E\n \u003Cspan class=\u0022cc-switch\u0022\u003E\n \u003Cspan class=\u0022cc-switch-slider\u0022\u003E\u003C\/span\u003E\n \u003C\/span\u003E\n \u003Cspan class=\u0022cc-label\u0022\u003EFunctionele cookies\u003C\/span\u003E\n \u003C\/div\u003E\n \u003C\/label\u003E\n \u003Clabel for=\u0022cc-cookie-analytics\u0022\u003E\n \u003Cinput type=\u0022checkbox\u0022 value=\u0022cc-cookie-analytics\u0022 name=\u0022cc-cookie\u0022 id=\u0022cc-cookie-analytics\u0022\u003E\n \n \u003Cdiv class=\u0022cc-switch-wrapper\u0022\u003E\n \u003Cspan class=\u0022cc-switch\u0022\u003E\n \u003Cspan class=\u0022cc-switch-slider\u0022\u003E\u003C\/span\u003E\n \u003C\/span\u003E\n \u003Cspan class=\u0022cc-label\u0022\u003EAnalytics\u003C\/span\u003E\n \u003C\/div\u003E\n \u003C\/label\u003E\n \u003Clabel for=\u0022cc-cookie-marketing\u0022\u003E\n \u003Cinput type=\u0022checkbox\u0022 value=\u0022cc-cookie-marketing\u0022 name=\u0022cc-cookie\u0022 id=\u0022cc-cookie-marketing\u0022\u003E\n \n \u003Cdiv class=\u0022cc-switch-wrapper\u0022\u003E\n \u003Cspan class=\u0022cc-switch\u0022\u003E\n \u003Cspan class=\u0022cc-switch-slider\u0022\u003E\u003C\/span\u003E\n \u003C\/span\u003E\n \u003Cspan class=\u0022cc-label\u0022\u003EMarketing\u003C\/span\u003E\n \u003C\/div\u003E\n \u003C\/label\u003E\n \u003C\/div\u003E\n\n \u003Cdiv class=\u0022cc-buttons\u0022\u003E\n \u003Ca class=\u0022cc-btn js-cc-accept-all-and-save\u0022 href=\u0022#\u0022 \u003Ealle cookies toestaan\u003C\/a\u003E\n \u003Ca href=\u0022#\u0022 class=\u0022js-cc-accept-selection-and-save\u0022\u003Eaccepteer selectie\u003C\/a\u003E\n \u003C\/div\u003E\n \u003C\/div\u003E\n \n \u003C\/div\u003E\n\u003C\/div\u003E\n\u003Cstyle\u003E\n body.cc-show .cc-notification{display:flex}body.cc-has-consent .cc-open{display:block}p[data-f-id]{display:none !important}.cc-notification{position:fixed;pointer-events:none;width:100%;height:100%;z-index:999999;display:none;font-family:Arial !important;font-size:12px !important;color:#687F8C !important;letter-spacing:0 !important;line-height:18px !important}.cc-notification p{font-family:Arial !important;font-size:12px !important;color:#687F8C !important;letter-spacing:0 !important;line-height:18px !important}.cc-notification a{font-family:Arial !important;font-size:12px !important;color:#687F8C !important;letter-spacing:0 !important;line-height:18px !important;text-decoration:underline !important;border:none !important}.cc-notification a:hover{color:#475760 !important}.cc-notification .cc-btn{display:inline-block;vertical-align:top;color:#FFFFFF !important;text-align:center;font-weight:bold;text-align:center;text-decoration:none !important;-webkit-appearance:none;outline:none;margin:0;border:none;border-radius:3px;box-shadow:none;cursor:pointer;padding:8px 10px;background-color:#43C6AC}.cc-notification .cc-btn:hover{color:white !important;background-color:#32a48e}.cc-notification.cc-notification-style-overlay{top:0;left:0;background:rgba(0,0,0,0.6);justify-content:center;align-items:center}.cc-notification.cc-notification-style-overlay .cc-inner{max-width:370px;margin:20px}.cc-notification.cc-notification-style-right_bottom{right:20px;bottom:20px;justify-content:flex-end;align-items:flex-end}.cc-notification.cc-notification-style-right_bottom .cc-inner{max-width:370px;margin-left:40px;margin-top:40px}.cc-notification.cc-notification-style-center_bottom{right:20px;bottom:20px;justify-content:center;align-items:flex-end}@media only screen and (min-width: 600px){.cc-notification.cc-notification-style-center_bottom .cc-footer{display:flex}}.cc-notification.cc-notification-style-center_bottom .cc-buttons{flex:0 0 auto}@media only screen and (min-width: 600px){.cc-notification.cc-notification-style-center_bottom .cc-cookies{margin-bottom:0;flex:1;align-items:center}}@media only screen and (min-width: 600px){.cc-notification.cc-notification-style-center_bottom .cc-cookies label{width:auto;margin-right:20px}}.cc-notification.cc-notification-style-center_bottom .cc-inner{max-width:700px;margin-left:40px;margin-top:40px}.cc-inner{background:white;padding:30px;border-radius:8px;box-shadow:0 0 10px 0 rgba(0,0,0,0.1);pointer-events:all}.cc-buttons{display:flex;align-items:center}.cc-buttons .cc-btn{margin-right:15px}.cc-label{opacity:0.5;cursor:pointer;margin-left:6px}.cc-switch{position:relative;display:inline-block;width:20px;height:15px}.cc-switch-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#b4bfc6;-webkit-transition:.4s;transition:.4s;border-radius:34px}.cc-switch-slider:before{position:absolute;content:\u0022\u0022;height:9px;width:9px;left:3px;bottom:3px;background-color:white;-webkit-transition:.4s;transition:.4s;border-radius:50%}input:checked+.cc-switch-wrapper .cc-switch .cc-switch-slider{background-color:#43C6AC}input:checked+.cc-switch-wrapper .cc-label{opacity:1}input:focus+.cc-switch-wrapper .cc-switch .cc-switch-slider{box-shadow:0 0 1px #43C6AC}input:checked+.cc-switch-wrapper .cc-switch .cc-switch-slider:before{-webkit-transform:translateX(5px);-ms-transform:translateX(5px);transform:translateX(5px)}.cc-switch-wrapper{display:flex;align-items:center;margin-bottom:6px;user-select:none}.cc-cookies{margin-bottom:30px;display:flex;flex-wrap:wrap}.cc-cookies label{width:100%}@media only screen and (min-width: 600px){.cc-cookies label{width:50%}}.cc-cookies input[type=\u0022checkbox\u0022]{display:none;opacity:0;width:0;height:0}.cc-intro h2{margin:0 !important;padding:0 !important;margin-bottom:22px !important;font-family:Arial !important;font-size:16px !important;color:#687F8C !important;letter-spacing:0 !important;line-height:18px !important;font-weight:bold !important}.cc-table-wrapper{overflow-x:auto}.cc-table-wrapper table th:first-child,.cc-table-wrapper table td:first-child{padding-left:8px !important}.cc-table-wrapper table{border-collapse:collapse;width:100%;margin-bottom:20px !important}.cc-table-wrapper table,.cc-table-wrapper th,.cc-table-wrapper td{border:1px solid #687F8C !important}.cc-table-wrapper th,.cc-table-wrapper td{padding:8px}@media screen and (max-width: 992px){.cc-window-text{display:none}}.cc-window-text-open .cc-window-text{display:block !important}\n\n a.js-cc-accept-selection-and-save {\r\ndisplay: inline-block;\r\n vertical-align: top;\r\n color: #FFFFFF !important;\r\n text-align: center;\r\n font-weight: bold;\r\n text-align: center;\r\n text-decoration: none !important;\r\n -webkit-appearance: none;\r\n outline: none;\r\n margin: 0;\r\n margin-right: 0px;\r\n border: none;\r\n border-radius: 3px;\r\n box-shadow: none;\r\n cursor: pointer;\r\n padding: 8px 10px;\r\n background-color: #43C6AC;\r\n}\r\n\r\na.js-cc-accept-selection-and-save:hover {\r\n color: white !important;\r\n background-color: #32a48e;\r\n}\r\n\r\n.cc-footer {\r\nmargin-top:12px;\r\n}\n\u003C\/style\u003E\n",
cookiePolicyHtml: "",
privacyPolicyHtml: "",
disclaimerHtml: "",
init: function() {
//document.body.innerHTML = document.body.innerHTML.replace(/\[cookie-policy-content\]/g, jsCC.cookiePolicyHtml);
//document.body.innerHTML = document.body.innerHTML.replace(/\[privacy-policy-content\]/g, jsCC.privacyPolicyHtml);
//document.body.innerHTML = document.body.innerHTML.replace(/\[disclaimer-content\]/g, jsCC.disclaimerHtml);
if (document.getElementById('cookie-policy-content') != null) document.getElementById('cookie-policy-content').innerHTML = jsCC.cookiePolicyHtml;
if (document.getElementById('privacy-policy-content') != null) document.getElementById('privacy-policy-content').innerHTML = jsCC.privacyPolicyHtml;
if (document.getElementById('disclaimer-content') != null) document.getElementById('disclaimer-content').innerHTML = jsCC.disclaimerHtml;
var body = document.querySelectorAll('body')[0];
var element = document.createElement('div');
element.innerHTML = jsCC.notificationHtml;
body.appendChild(element);
var ccHide = jsCC.cookies.readCookie('cc-hide');
if(ccHide == null)
{
jsCC.dom.addClass(body, 'cc-show');
}
else
{
jsCC.dom.addClass(body, 'cc-has-consent');
}
var ccCookieMarketing = jsCC.cookies.readCookie('cc-cookie-marketing');
if(ccCookieMarketing == '1')
{
// add scripts
}
var ccCookieAnalytics = jsCC.cookies.readCookie('cc-cookie-analytics');
if(ccCookieAnalytics == '1')
{
// add scripts
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://leerpunt.matomo.cloud/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src='//cdn.matomo.cloud/leerpunt.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
})();
}
var elements = document.querySelectorAll('input[name=cc-cookie]');
Array.prototype.forEach.call(elements, function(el, i){
var ccCookie = jsCC.cookies.readCookie(el.getAttribute('value'));
if(ccCookie == '1') el.setAttribute('checked', 'checked');
});
var elements = document.getElementsByClassName("js-cc-accept-all-and-save");
var myFunction = function(event) {
var elements = document.querySelectorAll('input[name=cc-cookie]');
Array.prototype.forEach.call(elements, function(el, i){
jsCC.cookies.setCookie(el.getAttribute('value'), 1, 30);
});
jsCC.cookies.setCookie('cc-hide', 1, 30);
jsCC.dom.removeClass(body,'cc-show');
// redirect
window.location.replace(window.location.href);
event.preventDefault();
};
for (var i = 0; i < elements.length; i++) {
elements[i].addEventListener('click', myFunction, false);
}
var elements = document.getElementsByClassName("js-cc-accept-selection-and-save");
var myFunction = function(event) {
var elements = document.querySelectorAll('input[name=cc-cookie]');
Array.prototype.forEach.call(elements, function(el, i){
var checked = el.checked ? 1 : 0;
jsCC.cookies.setCookie(el.getAttribute('value'), checked, 30);
});
jsCC.cookies.setCookie('cc-hide', 1, 30);
jsCC.dom.removeClass(body,'cc-show');
// redirect
window.location.replace(window.location.href);
event.preventDefault();
};
for (var i = 0; i < elements.length; i++) {
elements[i].addEventListener('click', myFunction, false);
}
var elements = document.getElementsByClassName("js-cc-show");
var myFunction = function(event) {
jsCC.dom.addClass(body,'cc-show');
event.preventDefault();
};
for (var i = 0; i < elements.length; i++) {
elements[i].addEventListener('click', myFunction, false);
}
}
}
jsCC.cookies =
{
/**
* Are cookies enabled?
*
* @return bool
*/
isEnabled: function()
{
// try to grab the property
var cookiesEnabled = !!(navigator.cookieEnabled);
// unknown property?
if(typeof navigator.cookieEnabled == 'undefined' && !cookiesEnabled)
{
// try to set a cookie
document.cookie = 'testcookie';
cookiesEnabled = ($.inArray('testcookie', document.cookie) != -1);
}
// return
return cookiesEnabled;
},
/**
* Read a cookie
*
* @return mixed
*/
readCookie: function(name)
{
// get cookies
var cookies = document.cookie.split(';');
name = name + '=';
for(var i = 0; i < cookies.length; i++)
{
var cookie = cookies[i];
while(cookie.charAt(0) === ' ') cookie = cookie.substring(1, cookie.length);
if(cookie.indexOf(name) === 0) return cookie.substring(name.length, cookie.length);
}
// fallback
return null;
},
setCookie: function(name, value, days)
{
if(typeof days == 'undefined') days = 7;
var expireDate = new Date();
expireDate.setDate(expireDate.getDate() + days);
document.cookie = name + '=' + escape(value) + ';expires=' + expireDate.toUTCString() + ';path=/';
}
};
jsCC.dom =
{
removeClass: function(el,className)
{
if (el.classList)
el.classList.remove(className);
else
el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
},
addClass: function(el,className)
{
if (el.classList)
el.classList.add(className);
else
el.className += ' ' + className;
},
toggleClass: function(el,className){
if (el.classList) {
el.classList.toggle(className);
} else {
var classes = el.className.split(' ');
var existingIndex = classes.indexOf(className);
if (existingIndex >= 0)
classes.splice(existingIndex, 1);
else
classes.push(className);
el.className = classes.join(' ');
}
}
}
document.addEventListener("DOMContentLoaded", function() {
jsCC.init();
});