// source --> https://elektrotechnik-nordheide.de/wp-content/plugins/kalender-digital/public/js/kalender-digital-public.js?ver=1.0.14 
(function( $ ) {
	'use strict';

	/**
	 * All of the code for your public-facing JavaScript source
	 * should reside in this file.
	 *
	 * Note: It has been assumed you will write jQuery code here, so the
	 * $ function reference has been prepared for usage within the scope
	 * of this function.
	 *
	 * This enables you to define handlers, for when the DOM is ready:
	 *
	 * $(function() {
	 *
	 * });
	 *
	 * When the window is loaded:
	 *
	 * $( window ).load(function() {
	 *
	 * });
	 *
	 * ...and/or other possibilities.
	 *
	 * Ideally, it is not considered best practise to attach more than a
	 * single DOM-ready or window-load handler for a particular page.
	 * Although scripts in the WordPress core, Plugins and Themes may be
	 * practising this, we should strive to set a better example in our own work.
	 */

})( jQuery );
// source --> https://elektrotechnik-nordheide.de/wp-content/plugins/strato-assistant/js/cookies.js?ver=1737972545 
function switchFeature( name ) {
	var feature = getCookie( '_pre-assistant-config-' + name );

	if ( ! feature || feature === '0' ) {
		setCookie( '_pre-assistant-config-' + name, 1 );
	} else {
		setCookie( '_pre-assistant-config-' + name, 0 );
	}
	window.location.reload();
}

function setCookie( param, value, exdays ) {
	var date = new Date();
	date.setTime( date.getTime() + ( exdays * 24 * 60 * 60 * 1000 ) );

	var expires = 'expires=' + date.toUTCString();

	document.cookie = param + '=' + value + ';' + expires + ';path=/';
}

function getCookie( param ) {
	var name = param + '=';
	var cookie_list = document.cookie.split( ';' );

	for ( var i = 0; i < cookie_list.length; i++ ) {
		var cookie = cookie_list[ i ];

		while ( cookie.charAt( 0 ) === ' ' ) {
			cookie = cookie.substring( 1 );
		}
		if ( cookie.indexOf( name ) === 0 ) {
			return cookie.substring( name.length, cookie.length );
		}
	}
	return '';
};