PageSourceSearch

https://hohner.de/typo3temp/assets/vhs-assets-hohner.de_cookie_data_privacy.1790922334.js

js hohner.de collected 2026-10-02 06:26:04 UTC 4,820 bytes, 132 lines download raw bytes

1
2	/*
3	 * deleteCookies 
4	 * delete all cookies except those listed in the array essential
5	 */	
6	window.cookieconsent.Popup.prototype.deleteCookies = function() { 
7		
8		//List of essential cookies - set as an empty array to delete everything - i.e. var essential = [];
9		var essential = ['cookieconsent_status', 'DYNSRV', ' cookieconsent_status'];
10		//var essential = [];
11		
12		//create array of cookies set
13		var cookies = document.cookie.split(";");
14		console.log(cookies);
15		
16		//loop through the cookies
17		for (var i = 0; i < cookies.length; i++) {
18			var cookie = cookies[i];
19			
20			//Get the cookie name
21			var eqPos = cookie.indexOf("=");
22			var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
23			
24			//Delete all cookies except those listed in essential
25			if (essential === undefined || essential.length == 0 || essential.indexOf(name) == -1){
26				//document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT";
27                //document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
28				
29				//console.log(name);
30				var d = new Date();
31				var cvalue = '';
32				var exMins = 0;
33				d.setTime(d.getTime() + (exMins*60*1000));
34				var expires = "expires="+d.toUTCString(); 
35				//document.cookie = name + "=" + cvalue + ";" + expires + ";path=/; Max-Age=0";
36				
37				//original.. domain stimmt aber nicht..
38				//document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Max-Age=0; domain=hohner.de;';
39
40				//test
41				//document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Max-Age=0; domain=.hohner-dev.de;';
42
43				currentDomain = '';
44				if (window.location.origin.indexOf('hohner.de') > 0) {
45					currentDomain = '.hohner.de';
46				}
47				else if (window.location.origin.indexOf('hohner-dev.de') > 0) {
48					currentDomain = '.hohner-dev.de';
49				}
50				else if (window.location.origin.indexOf('mittwaldserver.info') > 0) {
51					currentDomain = '.mittwaldserver.info';
52				}
53				document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Max-Age=0; domain='+currentDomain;
54
55				//console.log('writing new cookie.. '+name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Max-Age=0; domain=hohner.de;')
56			}
57		}
58	};
59
60	var p;
61	window.addEventListener("load", function(){
62		window.cookieconsent.initialise({
63			position: 'top',
64			palette:{
65		      popup: {background: ''},
66		      button: {background: ''},
67		    },
68			cookie: {
69			        // This is the name of this cookie - you can ignore this
70			        name: 'cookieconsent_status',
71			        // This is the url path that the cookie 'name' belongs to. The cookie can only be read at this location
72			        path: '/',
73			        // This is the domain that the cookie 'name' belongs to. The cookie can only be read on this domain.
74			        //  - Guide to cookie domains - http://erik.io/blog/2014/03/04/definitive-guide-to-cookie-domains/
75			        domain: 'hohner.de',
76			        // The cookies expire date, specified in days (specify -1 for no expiry)
77			        expiryDays: 7,
78			        //expiryDays: 7,
79			},
80			// these callback hooks are called at certain points in the program execution
81		    //onPopupOpen: function() {},
82		    //onPopupClose: function() {},
83		    onInitialise: function(status) {
84		    	if(status){
85		    		console.log('Cookie status: '+status);
86			    }
87			    
88			    if(status === 'deny'){ // delete all cookie 100% DSGVO fullfiellment
89					this.deleteCookies();
90				}
91		    },
92		    onStatusChange: function(status, chosenBefore) {
93	      		location.reload(true);
94		    },
95		      //onRevokeChoice: function() {},
96
97		      // each item defines the inner text for the element that it references
98		      content: {
99		        header: 'Header COOKIE-EINSTELLUNGEN',
100		        message: 'This website uses cookies to ensure you get the best experience on our website.<br /><br /><p>Bitte stimmen Sie der Nutzung von Cookies zu.</p>', 
101		        dismiss: 'Dismiss Dismiss',
102		        allow: 'Accept Allow',
103		        deny: 'Deny Deny',
104		        link: 'Read more Cookielink',
105		        href: ' https://hohner.de/en/metanav/dataprotection',
106		        close: '&#x274c;',
107			},
108			revokeBtn: '<div class="cc-revoke cc-animate cc-top ">Revoke</div>',
109			compliance: {
110		        'info': '<div class="cc-compliance">{{dismiss}}</div>',
111		        'opt-in': '<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>',
112		        'opt-out': '<div class="cc-compliance cc-highlight">{{deny}}{{dismiss}}</div>',
113			},
114			type: 'opt-in',
115		}, function (popup) {
116		    p = popup;
117		});
118	});
119	
120	
121	jQuery(document).ready(function($){
122		$('#cookie-btn-open').on('click',function(){
123			p.revokeChoice();
124		});
125	});
126	jQuery(window).bind("load", function() {
127		setTimeout(function() {
128			jQuery('.cc-revoke').addClass('cc-revoke-show');
129		}, 2000);
130	});
131
132

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.