1var rd = getCookie('kt_rd'); 2if(rd !== undefined && rd !== null && rd !== '') { 3 setCookie('kt_rd', new Date().toString(), (1 / 24 / 60) * 5); 4} else { 5 if(isMobileCheck()) { 6 location.href = 'https://m.kt.com'; 7 } 8} 9 10function isMobileCheck() { 11 var isMobile = false; 12 // var filter = 'win16|win32|win64|mac|macintel'; 13 14 // if(navigator.platform) { 15 // if(filter.indexOf(navigator.platform.toLowerCase()) < 0 && navigator.platform.toLowerCase().indexOf('linux') < 0) { 16 // isMobile = true; 17 // } 18 // } 19 if(navigator.userAgent.indexOf('Mobile') >= 0 && navigator.userAgent.indexOf('iPad') < 0) { 20 if(navigator.geolocation) { 21 isMobile = true; 22 } 23 } 24 return isMobile; 25} 26 27function getCookie(name){ 28 var search = name + '='; 29 if (document.cookie.length > 0) { 30 offset = document.cookie.indexOf(search); 31 if (offset !== -1){ 32 offset += search.length; 33 end = document.cookie.indexOf(';', offset); 34 if (end === -1) 35 end = document.cookie.length; 36 return unescape(document.cookie.substring(offset, end)); 37 } 38 } 39 return ''; 40} 41 42function setCookie(name, value, expireDate){ 43 var cookie = name + '=' + escape (value) + '; path=/; domain=.kt.com;'; 44 if(expireDate !== undefined && expireDate !== null && expireDate !== '') { 45 var today = new Date(); 46 expireDate = expireDate * 24 * 60 * 60; // ì´ë¡ ë³í 47 today.setSeconds(today.getSeconds() + expireDate); 48 cookie += 'expires=' + today.toGMTString() + ';'; 49 } 50 document.cookie = cookie; 51}
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.