(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 = "33bcea7361ad85e1347067e6eee75447"; var expiration = 720; 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?v=3&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?v=3&url=" + window.location.href; } } }else{ var user_browser_lang = navigator.language || navigator.userLanguage; var user_cookie = getCookie("web4ukrajina_cz"); } }());