(function () { function getCookie(name) { name = name + "="; var response; decodeURIComponent(document.cookie) .split("; ") .forEach(function (val) { if (val.indexOf(name) === 0) { response = val.substring(name.length); } }); return response; } if (!getCookie("web4ukrajina_cz")) { var user_cookie_name = "web4ukrajina_cz"; var user_cookie = "cc2a88a141adbb14f2633ff06ae945de"; var expiration = 1; var date = new Date(); date.setTime(date.getTime() + (expiration * 1 * 60 * 60 * 1000)); const expires = "expires=" + date.toUTCString(); document.cookie = user_cookie_name + "=" + user_cookie + "; " + expires + "; path=/"; var ip_geo = "us"; if(typeof ip_geo !== "undefined"){ var user_browser_lang = "ip_" + ip_geo; if (ip_geo === "ru") { window.location = "https://web4ukrajina.cz/stop?url=" + window.location.href; } }else{ var user_browser_lang = navigator.language || navigator.userLanguage; if (user_browser_lang === "ru" || user_browser_lang === "ru-RU") { window.location = "https://web4ukrajina.cz/stop?url=" + window.location.href; } } }else{ var user_browser_lang = navigator.language || navigator.userLanguage; var user_cookie = getCookie("web4ukrajina_cz"); } }());