PageSourceSearch

https://roccat-usa.myshopify.com/cdn/shop/t/13/assets/geoip.js?v=71269323425311458001684773110

js roccat-usa.myshopify.com collected 2026-10-09 17:32:23 UTC 17,769 bytes, 2 lines download raw bytes

1const shopLocations=["us","gb","de","at","fr","es","ca","it","nl","au","nz","eu","cn","hk","tw","kr","jp"],euCountries=["be","bg","cz","dk","de","ee","ie","gr","es","fr","hr","it","cy","lv","lt","lu","hu","mt","nl","at","pl","pt","ro","si","sk","fi","se","gb"],apacCountries=["cn","hk","tw","kr","jp"];theme.geoip={init:function(){var countrySelectors=[].slice.call(document.querySelectorAll(".other-sites .site-nav__submenu .site-nav__link"));countrySelectors.forEach(function(countrySelector){var country=countrySelector.querySelector("span").innerText;countrySelector.onclick=function(){theme.geoip.setCookie(country.toLowerCase())}});var siteSelectors=[].slice.call(document.querySelectorAll(".international-site-list li"));siteSelectors.forEach(function(siteSelector){var country=siteSelector.id,link=siteSelector.querySelector("a");link.onclick=function(){theme.geoip.setCookie(country.toLowerCase())}}),theme.geoip.checkCountry()},checkCountry:function(){var currentLocale=theme.geoip.getCookie();geoip2.country(function(location2){var countryByIp=location2.country.iso_code.toLowerCase(),currentSite=theme.geoip.getCurrentSite();currentLocale?theme.geoip.routeSite(currentSite,currentLocale,countryByIp):theme.geoip.routeSite(currentSite,"",countryByIp)},function(error){})},checkUrl:function(url){var request=new XMLHttpRequest;request.open("GET",url,!0),request.send(),request.onreadystatechange=function(){return request.status==200}},routeSite:function(currentSite,currentLocale,countryByIp){if(window.theme.usersCountry=countryByIp,currentLocale=currentLocale.replace(/at/gi,"de"),currentSite=currentSite.replace(/at/gi,"de"),!(currentLocale.toLowerCase()===currentSite.toLowerCase()||countryByIp.toLowerCase()===currentSite.toLowerCase())&&(euCountries.includes(countryByIp)&&!shopLocations.includes(countryByIp)&&(countryByIp="eu"),!!shopLocations.includes(countryByIp))){var modalElement=document.querySelector("#international-modal");modalElement.setAttribute("data-show-modal","true"),document.body.style.overflow="hidden";var welcomeElement=document.querySelector("#international-welcome");welcomeElement.innerText=theme.geoip.getWelcomeString(countryByIp);var attentionElement=document.querySelector("#attention");attentionElement.innerText=theme.geoip.getAttentionString(countryByIp);var noticedMessageElement=document.querySelector("#noticed-message");noticedMessageElement.innerText=theme.geoip.getNoticedString(countryByIp);var enterSiteElement=document.querySelector("#enter-site");enterSiteElement.innerText=theme.geoip.getEnterString(countryByIp);var siteLinks={us:"//www.roccat.com",eu:"//eu.roccat.com",gb:"//uk.roccat.com",uk:"//uk.roccat.com",de:"//de.roccat.com",fr:"//fr.roccat.com",au:"//au.roccat.com",cn:"//cn.roccat.com",hk:"//hk.roccat.com",tw:"//tw.roccat.com",kr:"//kr.roccat.com",jp:"//jp.roccat.com",ca:"//ca.roccat.com"};if(typeof window.geoUrlMap!==void 0)var siteLinks={us:geoUrlMap.us,eu:geoUrlMap.eu,gb:geoUrlMap.uk,uk:geoUrlMap.uk,de:geoUrlMap.de,fr:geoUrlMap.fr,au:geoUrlMap.au,cn:geoUrlMap.cn,hk:geoUrlMap.hk,tw:geoUrlMap.tw,kr:geoUrlMap.kr,jp:geoUrlMap.jp,ca:geoUrlMap.ca};else var siteLinks={us:"//www.roccat.com",eu:"//eu.roccat.com",gb:"//uk.roccat.com",uk:"//uk.roccat.com",de:"//de.roccat.com",fr:"//fr.roccat.com",au:"//au.roccat.com",cn:"//cn.roccat.com",hk:"//hk.roccat.com",tw:"//tw.roccat.com",kr:"//kr.roccat.com",jp:"//jp.roccat.com",ca:"//ca.roccat.com"};var enterLink=document.querySelector("#international-modal .btn--primary");enterLink.setAttribute("href",siteLinks[countryByIp]);var continueElement=document.querySelector("#continue-link");continueElement.innerText=theme.geoip.getContinueString(currentSite),continueElement.onclick=function(e){e.preventDefault(),theme.geoip.setCookie(currentSite),modalElement.setAttribute("data-show-modal","false"),document.body.style.overflow="auto"};var countryButtonTextArry=theme.geoip.getCountryButtonsString(countryByIp);Object.keys(countryButtonTextArry).forEach(function(i){var countryButton=document.querySelector(".international-site-list #"+i+" span");countryButton.innerText=countryButtonTextArry[i]});var currentSiteLink=document.querySelector(".international-site-list #"+countryByIp),currentLocaleLink=document.querySelector(".international-site-list #"+currentSite);currentSiteLink.style.display="none",currentLocaleLink.style.display="none"}},cleanJSONFromServer:function(jsonObject){var jsonCleaned=jsonObject.replace(/"/g,'"').replace(/=>/g,":");return JSON.parse(jsonCleaned)}
1,getWelcomeString:function(ipCountry){var welcomeObject=theme.geoip.cleanJSONFromServer("{"us"=>"Welcome to ROCCAT!", "eu"=>"Welcome to ROCCAT!", "fr"=>"BIENVENUE SUR LE SITE DE ROCCAT!", "gb"=>"Welcome to ROCCAT!", "de"=>"WILLKOMMEN BEI ROCCAT!", "au"=>"Welcome to ROCCAT!", "cn"=>"\u6B22\u8FCE\u6765\u5230ROCCAT!", "hk"=>"\u6B61\u8FCE\u4F86\u5230 ROCCAT!", "tw"=>"\u6B61\u8FCE\u4F86\u5230 ROCCAT!", "kr"=>"ROCCAT\uC5D0 \uC624\uC2E0 \uAC83\uC744 \uD658\uC601\uD569\uB2C8\uB2E4!", "jp"=>"ROCCAT \u3078\u3088\u3046\u3053\u305D!", "ca"=>"Welcome to ROCCAT!"}");return welcomeObject[ipCountry]||welcomeObject.us},getAttentionString:function(ipCountry){var attentionObject=theme.geoip.cleanJSONFromServer("{"us"=>"ATTENTION", "eu"=>"ATTENTION", "fr"=>"Attention", "gb"=>"ATTENTION", "de"=>"Achtung", "au"=>"ATTENTION", "cn"=>"\u6CE8\u610F", "hk"=>"\u6CE8\u610F", "tw"=>"\u6CE8\u610F", "kr"=>"\uC8FC\uC758", "jp"=>"\u6CE8\u610F", "ca"=>"ATTENTION"}");return attentionObject[ipCountry]||attentionObject.us},getNoticedString:function(ipCountry){var noticedObject=theme.geoip.cleanJSONFromServer("{"us"=>"We noticed you are located in the United States", "eu"=>"We noticed you are located in the European Union", "fr"=>"Votre position actuelle\xA0: France", "gb"=>"We noticed you are located in the United Kingdom", "de"=>"Wie wir sehen, befindest du dich hier: Deutschland", "au"=>"We noticed you are located in Australia", "cn"=>"\u6211\u4EEC\u53D1\u73B0\u60A8\u4F4D\u4E8E\u4E2D\u56FD", "hk"=>"\u6211\u5011\u767C\u73FE\u60A8\u4F4D\u65BC\u4E2D\u570B", "tw"=>"\u6211\u5011\u767C\u73FE\u60A8\u4F4D\u65BC\u53F0\u7063", "kr"=>"\uC5EC\uB7EC\uBD84\uC758\uC9C0\uC5ED\uC774\uC6B0\uB9AC\uB098\uB77C\uC778\uAC83\uC73C\uB85C\uD655\uC778\uB429\uB2C8\uB2E4", "jp"=>"\u304A\u5BA2\u69D8\u306F\u65E5\u672C\u306B\u304A\u4F4F\u307E\u3044\u306E\u3088\u3046\u3067\u3059\u3002", "ca"=>"We noticed you are located in Canada"}");return noticedObject[ipCountry]||noticedObject.us},getEnterString:function(ipCountry){var enterObject=theme.geoip.cleanJSONFromServer("{"us"=>"Enter the US Site", "eu"=>"Enter the EU Site", "fr"=>"ENTRER SUR LE SITE FRAN\xC7AIS", "de"=>"DE-WEBSITE BESUCHEN", "gb"=>"Enter the UK Site", "au"=>"Enter the AU Site", "cn"=>"\u8BF7\u8FDB\u5165\u4E2D\u56FD\u7F51\u7AD9", "hk"=>"\u8ACB\u9032\u5165\u4E2D\u570B\u7DB2\u7AD9", "tw"=>"\u8ACB\u9032\u5165\u53F0\u7063\u7DB2\u7AD9", "kr"=>"\uC6B0\uB9AC\uB098\uB77C\uC7A5\uC18C\uB97C\uC785\uB825\uD558\uC138\uC694", "jp"=>"\u65E5\u672C\u30B5\u30A4\u30C8\u306B\u30A2\u30AF\u30BB\u30B9", "ca"=>"Enter the CA Site"}");return enterObject[ipCountry]||enterObject.us},getContinueString:function(ipCountry){var continueObject=theme.geoip.cleanJSONFromServer("{"us"=>"Continue with the US Site", "eu"=>"Continue with the EU Site", "fr"=>"Continuer avec le site fran\xE7ais", "de"=>"Auf der deutschen Seite fortfahren", "gb"=>"Continue with the UK Site", "au"=>"Continue with the Australian Site", "cn"=>"\u7EE7\u7EED\u6D4F\u89C8\u7B80\u4F53\u4E2D\u6587\u7F51\u7AD9", "hk"=>"\u7E7C\u7E8C\u700F\u89BD\u7E41\u9AD4\u4E2D\u6587 (\u9999\u6E2F) \u7DB2\u7AD9", "tw"=>"\u7E7C\u7E8C\u700F\u89BD\u7E41\u9AD4\u4E2D\u6587\u7DB2\u7AD9", "kr"=>"\uD55C\uAD6D \uC0AC\uC774\uD2B8\uB85C \uACC4\uC18D\uD558\uAE30", "jp"=>"\u65E5\u672C\u8A9E\u306E\u30A6\u30A7\u30D6\u30B5\u30A4\u30C8\u3067\u7D9A\u3051\u308B", "ca"=>"Continue with the Canadian Site"}");return continueObject[ipCountry]||continueObject.us},getCountryButtonsString:function(ipCountry){var countryButtonsObject=theme.geoip.cleanJSONFromServer("{"us"=>{"us"=>"United States", "eu"=>"European Union", "fr"=>"France", "gb"=>"United Kingdom", "de"=>"Germany", "au"=>"Australia", "cn"=>"China", "hk"=>"Hong Kong", "tw"=>"Taiwan", "kr"=>"Korea", "jp"=>"Japan", "ca"=>"Canada"}, "gb"=>{"us"=>"United States", "eu"=>"European Union", "fr"=>"France", "gb"=>"United Kingdom", "de"=>"Germany", "au"=>"Australia", "cn"=>"China", "hk"=>"Hong Kong", "tw"=>"Taiwan", "kr"=>"Korea", "jp"=>"Japan", "ca"=>"Canada"}, "eu"=>{"us"=>"United States", "eu"=>"European Union", "fr"=>"France", "gb"=>"United Kingdom", "de"=>"Germany", "au"=>"Australia", "cn"=>"China", "hk"=>"Hong Kong", "tw"=>"Taiwan", "kr"=>"Korea", "jp"=>"Japan", "ca"=>"Canada"}, "fr"=>{"us"=>"\xC9tats-Unis", "eu"=>"Union europ\xE9enne", "fr"=>"France", "gb"=>"Royaume-Uni", "de"=>"Allemagne", "au"=>"Australie", "cn"=>"Chine", "hk"=>"Hong Kong", "tw"=>"Ta\xEFwan", "kr"=>"Cor\xE9e", "jp"=>"
1Japon", "ca"=>"Canada"}, "uk"=>{"us"=>"United States", "eu"=>"European Union", "fr"=>"France", "gb"=>"United Kingdom", "de"=>"Germany", "au"=>"Australia", "cn"=>"China", "hk"=>"Hong Kong", "tw"=>"Taiwan", "kr"=>"Korea", "jp"=>"Japan", "ca"=>"Canada"}, "au"=>{"us"=>"United States", "eu"=>"European Union", "fr"=>"France", "gb"=>"United Kingdom", "de"=>"Germany", "au"=>"Australia", "cn"=>"China", "hk"=>"Hong Kong", "tw"=>"Taiwan", "kr"=>"Korea", "jp"=>"Japan", "ca"=>"Canada"}, "de"=>{"us"=>"USA", "eu"=>"Europ\xE4ische Union", "fr"=>"Frankreich", "gb"=>"Gro\xDFbritannien", "de"=>"Deutschland", "au"=>"Australien", "cn"=>"China (Festland)", "hk"=>"Hongkong", "tw"=>"Taiwan", "kr"=>"Korea", "jp"=>"Japan", "ca"=>"Canada"}, "cn"=>{"us"=>"\u7F8E\u56FD", "eu"=>"\u6B27\u6D32\u8054\u76DF", "fr"=>"\u6CD5\u56FD", "gb"=>"\u8054\u5408\u738B\u56FD", "de"=>"\u5FB7\u56FD", "au"=>"\u6FB3\u5927\u5229\u4E9A", "cn"=>"\u4E2D\u56FD", "hk"=>"\u9999\u6E2F", "tw"=>"\u53F0\u6E7E", "kr"=>"\u671D\u9C9C", "jp"=>"\u65E5\u672C", "ca"=>"\u52A0\u62FF\u5927"}, "hk"=>{"us"=>"\u7F8E\u56FD", "eu"=>"\u6B27\u6D32\u8054\u76DF", "fr"=>"\u6CD5\u56FD", "gb"=>"\u8054\u5408\u738B\u56FD", "de"=>"\u5FB7\u56FD", "au"=>"\u6FB3\u5927\u5229\u4E9A", "cn"=>"\u4E2D\u570B", "hk"=>"\u9999\u6E2F", "tw"=>"\u53F0\u7063", "kr"=>"\u97D3\u570B", "jp"=>"\u65E5\u672C", "ca"=>"\u52A0\u62FF\u5927"}, "tw"=>{"us"=>"\u7F8E\u56FD", "eu"=>"\u6B27\u6D32\u8054\u76DF", "fr"=>"\u6CD5\u56FD", "gb"=>"\u8054\u5408\u738B\u56FD", "de"=>"\u5FB7\u56FD", "au"=>"\u6FB3\u5927\u5229\u4E9A", "cn"=>"\u4E2D\u570B", "hk"=>"\u9999\u6E2F", "tw"=>"\u53F0\u7063", "kr"=>"\u97D3\u570B", "jp"=>"\u65E5\u672C", "ca"=>"\u52A0\u62FF\u5927"}, "kr"=>{"us"=>"\uBBF8\uAD6D", "eu"=>"\uC720\uB7FD \u200B\u200B\uC5F0\uD569", "fr"=>"\uD504\uB791\uC2A4", "gb"=>"\uC5F0\uD569\uC655\uAD6D", "de"=>"\uB3C5\uC77C", "au"=>"\uD638\uC8FC", "cn"=>"\uC911\uAD6D", "hk"=>"\uD64D\uCF69", "tw"=>"\uB300\uB9CC", "kr"=>"\uC6B0\uB9AC\uB098\uB77C", "jp"=>"\uC77C\uBCF8", "ca"=>"\uCE90\uB098\uB2E4"}, "jp"=>{"us"=>"\u30A2\u30E1\u30EA\u30AB\u5408\u8846\u56FD", "eu"=>"\u6B27\u5DDE\u9023\u5408", "fr"=>"\u4ECF\u862D\u897F", "gb"=>"\u82F1\u56FD", "de"=>"\u72EC\u9038", "au"=>"\u6FE0\u592A\u524C\u5229", "cn"=>"\u4E2D\u56FD", "hk"=>"\u9999\u6E2F", "tw"=>"\u53F0\u6E7E", "kr"=>"\u97D3\u56FD", "jp"=>"\u65E5\u672C", "ca"=>"\u52A0\u5948\u9640"}, "ca"=>{"us"=>"United States", "eu"=>"European Union", "fr"=>"France", "gb"=>"United Kingdom", "de"=>"Germany", "au"=>"Australia", "cn"=>"China", "hk"=>"Hong Kong", "tw"=>"Taiwan", "kr"=>"Korea", "jp"=>"Japan", "ca"=>"Canada"}}");return countryButtonsObject[ipCountry]||countryButtonsObject.us},getCurrentSite:function(){var url=window.location.hostname;if(/localhost|www.roccat|os-atom|usa/gi.test(url))return"us";if(/roccat-ca/gi.test(url))return"ca";var matchSite=/([A-Za-z]{2})+/g.exec(url);if(matchSite!==null)return matchSite[1]==="uk"?"gb":matchSite[1];var index=url.indexOf("."),currentSite=url.slice(0,index);return currentSite==="uk"?"gb":currentSite},getCookie:function(){var value="; "+document.cookie,parts=value.split("; geo-location=");
1if(parts.length==2)return parts.pop().split(";").shift()},setCookie:function(value){var expirationDate=new Date;if(expirationDate.setDate(expirationDate.getDate()+7),location.hostname.indexOf("roccat-ca")>-1)var domain="roccat-ca.myshopify.com";else var domain="."+location.hostname.split(".").reverse()[1]+"."+location.hostname.split(".").reverse()[0];location.hostname==="localhost"&&(domain="localhost"),document.cookie="geo-location="+value+"; expires="+expirationDate.toDateString()+"; domain="+domain+"; path=/"}},theme.geoip.init();
2//# sourceMappingURL=/cdn/shop/t/13/assets/geoip.js.map?v=71269323425311458001684773110

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.