{namespace v=FluidTYPO3\Vhs\ViewHelpers} /* * deleteCookies * delete all cookies except those listed in the array essential */ window.cookieconsent.Popup.prototype.deleteCookies = function() { //List of essential cookies - set as an empty array to delete everything - i.e. var essential = []; var essential = ['cookieconsent_status', 'DYNSRV', ' cookieconsent_status']; //var essential = []; //create array of cookies set var cookies = document.cookie.split(";"); //loop through the cookies for (var i = 0; i < cookies.length; i++) { var cookie = cookies[i]; //Get the cookie name var eqPos = cookie.indexOf("="); var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie; //Delete all cookies except those listed in essential if (essential === undefined || essential.length == 0 || essential.indexOf(name) == -1){ //document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT"; //document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'; //console.log(name); var d = new Date(); var cvalue = ''; var exMins = 0; d.setTime(d.getTime() + (exMins*60*1000)); var expires = "expires="+d.toUTCString(); //document.cookie = name + "=" + cvalue + ";" + expires + ";path=/; Max-Age=0"; document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Max-Age=0; domain={privacyConfig.domain};'; } } }; var p; window.addEventListener("load", function(){ window.cookieconsent.initialise({ position: '', palette:{ popup: {background: ''}, button: {background: ''}, }, cookie: { // This is the name of this cookie - you can ignore this name: 'cookieconsent_status', // This is the url path that the cookie 'name' belongs to. The cookie can only be read at this location path: '/', // This is the domain that the cookie 'name' belongs to. The cookie can only be read on this domain. // - Guide to cookie domains - http://erik.io/blog/2014/03/04/definitive-guide-to-cookie-domains/ domain: '', // The cookies expire date, specified in days (specify -1 for no expiry) expiryDays: , }, // these callback hooks are called at certain points in the program execution //onPopupOpen: function() {}, //onPopupClose: function() {}, onInitialise: function(status) { if(status){ console.log('Cookie status: '+status); } if(status === 'deny'){ // delete all cookie 100% DSGVO fullfiellment this.deleteCookies(); } }, onStatusChange: function(status, chosenBefore) { }, //onRevokeChoice: function() {}, // each item defines the inner text for the element that it references content: { header: '', message: '', dismiss: '', allow: '', deny: '', link: '', href: '', close: '❌', }, revokeBtn: '
{{classes}}">
', compliance: { 'info': '
{{dismiss}}
', 'opt-in': '
{{deny}}{{allow}}
', 'opt-out': '
{{deny}}{{dismiss}}
', }, type: 'opt-in', }, function (popup) { p = popup; }); }); jQuery(document).ready(function($){ $('#cookie-btn-open').on('click',function(){ p.revokeChoice(); }); }); jQuery(window).bind("load", function() { setTimeout(function() { jQuery('.cc-revoke').addClass('cc-revoke-show'); }, 2000); }); jQuery(document).ready(function($){ $('').on('submit',function(){ var _formID = $(this).attr('id'); if(!jQuery('form[id="'+_formID+'"] .data-privacy-form .checkbox1 .cookie-required').is(":checked") || !jQuery('form[id="'+_formID+'"] .data-privacy-form .checkbox2 .data-required').is(":checked")){ if(!jQuery('form[id="'+_formID+'"] .data-privacy-form .checkbox1 .cookie-required').is(":checked")){ jQuery('form[id="'+_formID+'"] .data-privacy-form .checkbox1 .check-cookie-required').removeClass('hidden'); }else{ jQuery('form[id="'+_formID+'"] .data-privacy-form .checkbox1 .check-cookie-required').addClass('hidden'); } if(!jQuery('form[id="'+_formID+'"] .data-privacy-form .checkbox2 .data-required').is(":checked")){ jQuery('form[id="'+_formID+'"] .data-privacy-form .checkbox2 .check-data-required').removeClass('hidden'); }else{ jQuery('form[id="'+_formID+'"] .data-privacy-form .checkbox2 .check-data-required').addClass('hidden'); } //console.log('ID error'); return false; } }); });