var texts = {"popup_text":"

In connection with the new requirements introduced with GDPR, we are writing to inform you that this website is purely informative (we do not have any forms of feedback, we do not use cookies). We do not collect, process or store any personal data from you.<\/p>","popup_text_desc":null,"privacy_person":"","privacy_email":"","agree_btn":"I am informed","coockie_policy_btn":"Privacy policy","understand_button":"I accept","showbottom":1}; var popupElGlobal = null; class Cookie { setCookie(cname, cvalue, exdays) { var expires = ''; if (typeof exdays != 'undefined') { var d = new Date(); d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); expires = "expires="+d.toUTCString(); } document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; } getCookie(cname) { var name = cname + "="; var ca = document.cookie.split(';'); for(var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } } function removePopup(popupEl){ popupEl.remove(); } function cookiesAggreed(popupEl){ cooObj.setCookie('coockie_policy_shown', 1, 10); popupEl.fadeOut(500, function(){ removePopup(popupEl) }); } function showCookiePolicies(){ var top_bottom = 20; var width = (jQuery(this).width() < 880)?'90%':'100%'; var overlayEl = jQuery("

").css({ 'position': 'fixed', 'top': 0, 'left': 0, 'right': 0, 'bottom': 0, 'z-index': 9990, 'background': 'rgba(0, 0, 0, 0.7)' }); var containerEl = jQuery("
").css({ 'position': 'fixed', 'top': top_bottom, 'bottom': top_bottom, 'z-index': 9990, 'background': '#ffffff', 'max-width': 860, 'width': width, 'padding': '20px 20px 60px 20px', 'border-radius': 10, 'left': '50%', 'transform': 'translateX(-50%)' }); var containerInnerEl = jQuery("
").css({ 'overflow': 'auto', 'max-height': '100%' }); var privacyPersonEl = jQuery("").html(texts.privacy_person + ' - '); var privacyPersonEmailEl = jQuery("").attr('href', 'mailto:'+texts.privacy_email).html(texts.privacy_email); var slidingContainerEl = jQuery("
").html(texts.popup_text_desc); slidingContainerEl.find('p').css({ 'margin': '20px 0' }); slidingContainerEl.append(privacyPersonEl); slidingContainerEl.append(privacyPersonEmailEl); containerInnerEl.append(slidingContainerEl); containerInnerEl.find('p').css({ 'font-family': 'Tahoma, Arial', 'font-size': 16, 'text-align': 'left', 'color': '#313131' }); containerEl.append(containerInnerEl); overlayEl.append(containerEl); var understandBtn = jQuery("").css({ 'background-image': 'linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))', 'font-size': '100%', 'padding': '.5em 1em', 'color': 'rgba(0,0,0,.8)', 'border': 'transparent', 'background-color': '#E6E6E6', 'text-decoration': 'none', 'border-radius': 2, 'display': 'inline-block', 'margin': '0px 10px', 'position': 'absolute', 'bottom': 15, 'right': 15, 'font-family': 'Tahoma, Arial', 'cursor': 'pointer' }).text(texts.understand_button); containerEl.append(understandBtn); understandBtn.click(function(){ overlayEl.remove(); cookiesAggreed(popupElGlobal); }); jQuery("body").append(overlayEl); jQuery(window).resize(function(){ if (jQuery(this).width() < 880) { containerEl.css({ 'width':'90%' }); } else { containerEl.css({ 'width':'100%' }); } }); } function showCookiesDialogue(){ if ( jQuery("#pjs_cookie_dlg").length == 0 ) { let cssStyles = { 'position': 'fixed', 'background': 'rgba(0, 0, 0, 0.7)', 'z-index': 9980, 'left': 0, 'right': 0, 'padding': 15, 'color': '#ffffff', 'font-size': 18, 'text-align': 'center', 'display': 'none', 'font-family': 'Tahoma, Arial' } if (texts.showbottom == 1){ cssStyles.bottom = 0; } else { cssStyles.top = 0; } popupElGlobal = jQuery('
').css(cssStyles).html(texts.popup_text); popupElGlobal.find('p').css({ 'margin': '0 0 15px 0' }); var agreeBtnEl = jQuery('').attr('href', 'javascript:;') .css({ 'background-image': 'linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))', 'font-size': '100%', 'padding': '.5em 1em', 'color': 'rgba(0,0,0,.8)', 'border': 'transparent', 'background-color': '#E6E6E6', 'text-decoration': 'none', 'border-radius': 2, 'display': 'inline-block', 'margin': '0px 10px', 'font-family': 'Tahoma, Arial', 'cursor': 'pointer' }).text(texts.agree_btn); popupElGlobal.append(agreeBtnEl); closeXEl = jQuery("").css({ 'position': 'absolute', 'top': 5, 'right': 5, 'width': 26, 'height': 26, 'border-radius': '100%', 'border': 'solid 1px #fff', 'cursor': 'pointer' }); closeXElFirst = jQuery("").css({ 'position': 'absolute', 'top': 3, 'left': 10, 'width': 4, 'height': 18, 'border-radius': 2, 'background': '#fefefe', 'transform': 'rotate(-45deg)' }); closeXElsecond = closeXElFirst.clone(); closeXElsecond.css({ 'transform': 'rotate(45deg)' }); closeXEl.append(closeXElFirst); closeXEl.append(closeXElsecond); closeXEl.click(function(){ removePopup(popupElGlobal); }); agreeBtnEl.click(function(){ cookiesAggreed(popupElGlobal); }); if (typeof texts.popup_text_desc == 'string' && texts.popup_text_desc.length > 0 ){ var policyBtnEl = jQuery('').attr('href', 'javascript:;') .css({ 'background-image': 'linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))', 'font-size': '100%', 'padding': '.5em 1em', 'color': 'rgba(0,0,0,.8)', 'border': 'transparent', 'background-color': '#E6E6E6', 'text-decoration': 'none', 'border-radius': 2, 'display': 'inline-block', 'margin': '0px 10px', 'font-family': 'Tahoma, Arial', 'cursor': 'pointer' }).text(texts.coockie_policy_btn); popupElGlobal.append(policyBtnEl); policyBtnEl.click(function(){ showCookiePolicies(); }); } popupElGlobal.append(closeXEl); jQuery("body").append(popupElGlobal); popupElGlobal.fadeIn(500); } } var cooObj = new Cookie(); jQuery(document).ready(function(){ var coockie_result = cooObj.getCookie('coockie_policy_shown'); if (coockie_result == "") { setTimeout(function(){ showCookiesDialogue() }, 3000); } });