Current File : /pages/54/47/d0016649/home/htdocs/ob_maxi/wp-content/cache/wpfc-minified/22y3cs7x/hnbza.js |
// source --> https://www.fitkonzept.com/wp-content/plugins/strato-assistant/js/cookies.js?ver=1699137827
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 '';
};