


	// Cookieconsent - page.jsInline.5
	window.addEventListener("load", function(){
		var p;

		window.cookieconsent.initialise({

			onInitialise: function(status) {
				var type = this.options.type;
				console.log("cookieconsent_type:", type);
				console.log("cookieconsent_status:", status);
			},

			theme: "edgeless",
			position: "bottom-left",
			palette: {
				popup: {
					background: "#3da3dc",
					text: "#fff"
				},
				button: {
					background: "#eb5a23",
					text: "#000"
				}
			},
			content: {
				message: "Diese Website setzt Cookies. Durch die Nutzung unserer Website, insbesondere der Loginfunktion, erklären Sie sich damit einverstanden.",
				dismiss: "Info ausblenden",
				deny: "Cookies ablehnen",
				allow: "zulassen",
				link: "Mehr erfahren",
				href: "/service/datenschutz/",
			},

			elements: {
				allow: '<a id="t3s-allow" aria-label="allow cookies" tabindex="0" class="cc-btn cc-allow">{{allow}}</a>',
			},

			type: "info",

			revokeBtn: "<div class='cc-revoke {{classes}}'>Cookie Optionen</div>",
			// no popup on this pages
			blacklistPage: ["/service/datenschutz/"],

				 onStatusChange: function(status) {
				console.log(this.hasConsented() ?
				  'enable cookies' : 'disable cookies');

				var type = this.options.type;
				if ( type == 'opt-in' && this.hasConsented() ) {
					location.reload(true);
				}
				if ( type == 'opt-out' && !this.hasConsented() ) {
					location.reload(true);
				}
				 },

				 law: {
				regionalLaw: false,
				 },
				 location: false,


		}, function (popup) {
		p = popup;
	  }, function (err) {
		console.error(err);
	  });

		if ( $('#btn-revokeChoice').length ) {
			document.getElementById('btn-revokeChoice').onclick = function (e) {
				p.revokeChoice();
			};
		}


	});

