1var dv21_d = new Date(); 2var dv21_n = dv21_d.getTime(); 3var dv21_cdTime = null; 4var dv_active_Event = ""; 5 6 7 8if (typeof document.getElementsByTagName("html")[0].getAttribute("lang") == 'string'){var dv21_pageCur_lang = document.getElementsByTagName("html")[0].getAttribute("lang").toLowerCase();}else{var dv21_pageCur_lang = 'th';} 9 10var DOMAnimations = { 11 slideUp: function (element, duration = 150) { 12 return new Promise(function (resolve, reject) { 13 element.style.height = element.offsetHeight + 'px'; 14 element.style.transitionProperty = `height, margin, padding`; 15 element.style.transitionDuration = duration + 'ms'; 16 element.offsetHeight; 17 element.style.overflow = 'hidden'; 18 element.style.height = 0; 19 element.style.paddingTop = 0; 20 element.style.paddingBottom = 0; 21 element.style.marginTop = 0; 22 element.style.marginBottom = 0; 23 window.setTimeout(function () { 24 element.style.display = 'none'; 25 element.style.removeProperty('height'); 26 element.style.removeProperty('padding-top'); 27 element.style.removeProperty('padding-bottom'); 28 element.style.removeProperty('margin-top'); 29 element.style.removeProperty('margin-bottom'); 30 element.style.removeProperty('overflow'); 31 element.style.removeProperty('transition-duration'); 32 element.style.removeProperty('transition-property'); 33 resolve(false); 34 }, duration) 35 }) 36 }, 37 38 slideDown: function (element, duration = 50) { 39 return new Promise(function (resolve, reject) { 40 element.style.removeProperty('display'); 41 let display = window.getComputedStyle(element).display; 42 if (display === 'none') 43 display = 'block'; 44 element.style.display = display; 45 let height = element.offsetHeight; 46 element.style.overflow = 'hidden'; 47 element.style.height = 0; 48 element.style.paddingTop = 0; 49 element.style.paddingBottom = 0; 50 element.style.marginTop = 0; 51 element.style.marginBottom = 0; 52 element.offsetHeight; 53 element.style.transitionProperty = `height, margin, padding`; 54 element.style.transitionDuration = duration + 'ms'; 55 element.style.height = height + 'px'; 56 element.style.removeProperty('padding-top'); 57 element.style.removeProperty('padding-bottom'); 58 element.style.removeProperty('margin-top'); 59 element.style.removeProperty('margin-bottom'); 60 window.setTimeout(function () { 61 element.style.removeProperty('height'); 62 element.style.removeProperty('overflow'); 63 element.style.removeProperty('transition-duration'); 64 element.style.removeProperty('transition-property'); 65 }, duration) 66 }) 67 }, 68 69 slideToggle: function (element, duration = 50) { 70 if (window.getComputedStyle(element).display === 'none') {return this.slideDown(element, (duration+300));} else {return this.slideUp(element, (duration+200));} 71 } 72} 73 74window.addEventListener('load', function () { 75 var menufooter = document.querySelectorAll("#dtac_footer_obj .dv21-nav-toggle .dv21-link-wrap > h3"); 76 for (var i = 0; i < menufooter.length; i++) { 77 menufooter[i].onclick = function () { 78 var viewportWidth = window.innerWidth; 79 if (viewportWidth < 768) { 80 this.classList.toggle('dv21-active'); 81 var el = this.nextElementSibling; 82 DOMAnimations.slideToggle(el); 83 } 84 } 85 } 86}) 87 88 89 90function glob21_OverLay(status){ 91 var overlayAll = document.getElementById("dv21-overlay-allbody"); 92 if (typeof(overlayAll) != 'undefined' && overlayAll != null){ 93 if(status=="open"){ 94 overlayAll.classList.add("dv21-active"); 95 }else{ 96 overlayAll.classList.remove("dv21-active"); 97 } 98 } 99} 100 101function glob21_startLoading(){ 102 glob21_OverLay('open'); 103 var loading = document.getElementById("dv21_loading"); 104 if (typeof(loading) != 'undefined' && loading != null){loading.classList.add("dv21-open");setTimeout(glob21_stopLoading, 180000);} 105} 106 107function glob21_stopLoading() { 108 glob21_OverLay('close'); 109 document.getElementById("dv21_loading").classList.remove("dv21-open"); 110} 111 112function glob21_clearMenuFooter() { 113 var menufooter = document.querySelectorAll("#dtac_footer_obj .dv21-nav-toggle .dv20-link-wrap > h3"); 114 var menufooterUl = document.querySelectorAll("#dtac_footer_obj .dv21-nav-toggle .dv21-link-wrap > ul"); 115 for (var i = 0; i < menufooter.length; i += 1) { 116 if (menufooter[i].classList.contains('dv21-active')) { menufooter[i].classList.remove('dv21-active'); } 117 } 118 for (var i = 0; i < menufooterUl.length; i += 1) { 119 menufooterUl[i].style.display = 'block'; 120 } 121} 122 123function glob21_close_menuFooterUl() { 124 var menufooter = document.querySelectorAll("#dtac_footer_obj .dv21-nav-toggle .dv20-link-wrap > h3"); 125 var menufooterUl = document.querySelectorAll("#dtac_footer_obj .dv21-nav-toggle .dv21-link-wrap > ul"); 126 for (var i = 0; i < menufooterUl.length; i += 1) { 127 menufooterUl[i].style.display = 'none'; 128 } 129} 130 131function glob21_eService (){ 132 var d_cLang = window.dv21_pageCur_lang; 133 var frm_eService_status = document.getElementById("dv21-box-eservice"); 134// glob21_startLoading();
135// setTimeout(function () { 136 if(d_cLang =="th"){ 137 window.location.href = "https://app.dtac.co.th/home?passive=y&utm_source=webdtac&utm_medium=web_owned&utm_campaign=home_accounticon"; 138 }else{ 139 window.location.href = "https://app.dtac.co.th/"+d_cLang+"/home?passive=y&utm_source=webdtac&utm_medium=web_owned&utm_campaign=home_accounticon"; 140 } 141// }, 350); 142 143} 144function glob21_swlanguage (lg,link,mode){ 145 var d_cLang = window.dv21_pageCur_lang; 146 var frm_swlang_status = document.getElementById("dv21-box-language"); 147 148 if (frm_swlang_status.classList.contains("dv21-active")){ 149 glob21_OverLay('close'); 150 setTimeout(function () { 151 frm_swlang_status.classList.remove("dv21-active"); 152 }, 50); 153 window.dv_active_Event=""; 154 155 156 }else{ 157 glob21_OverLay('open'); 158 setTimeout(function () { 159 frm_swlang_status.classList.add("dv21-active"); 160 }, 50); 161 window.dv_active_Event="swLanguage"; 162 } 163 164 if(link !=""){ 165 glob21_startLoading(); 166 setTimeout(function () { 167 window.location.href = link; 168 }, 350); 169 }else{ 170 if(mode=="mb"){glob21_closeMenu_Mobile();} 171 } 172} 173 174 175function glob21_gotoHome(link){ 176 if(link !=""){ 177 window.location.href = link; 178 } 179} 180 181function glob21_closeBoxSearch_mb(e){ 182 var box_search = document.getElementById("dv21-box-search_mb"); 183 box_search.classList.remove("dv21-active"); 184 var inputSearchMB = document.getElementById("dv21-inp-mb-q"); 185 inputSearchMB.value = ''; 186} 187 188function glob21_searchOpen(e){ 189 190 if(e.classList.contains("dv21-modeMb")) { 191 var box_search = document.getElementById("dv21-box-search_mb"); 192 193 if (box_search.classList.contains("dv21-active")) { 194 box_search.classList.remove("dv21-active"); 195 console.log("CA01"); 196 }else{ 197 box_search.classList.add("dv21-active"); 198 document.getElementById("dv21-inp-mb-q").focus(); 199 } 200 201 }else{ 202 var frm_search = document.getElementById("dv21-inp-q"); 203 if (frm_search.classList.contains("dv21-active")) { 204 frm_search.classList.remove("dv21-active"); 205 console.log("12099643_MoreVoice_199B_call240min_ULM16Kbps_Wifi_12m"); 206 document.getElementById("dv21-dt-logo").classList.remove("slideLeft"); 207 }else{ 208 frm_search.focus(); 209 frm_search.classList.add("dv21-active"); 210 document.getElementById("dv21-dt-logo").classList.add("slideLeft"); 211 document.getElementById("dv21-dt-logo").classList.add("dv21-animate-ease-out"); 212 document.getElementById("dv21-inp-q").classList.add("dv21-animate-ease-out"); 213 } 214 } 215} 216 217function glob21_openSubMenu(smenu) { 218 document.getElementById('dv21-subMenu').classList.add("dv21-active"); 219 var submenu = document.querySelectorAll(".dv21-subMenu .dv21-inner-submenu"); 220 for (var sub = 0; sub < submenu.length; sub++) { 221 submenu[sub].classList.remove("dv21-active"); 222 223 } 224 console.log("CA03"); 225 226 document.getElementById(smenu).classList.add("dv21-active"); 227 document.querySelector('.dv21-subMenu .dv21-button-close').classList.add("dv21-active"); 228} 229 230function glob21_closeSubMenu(e) { 231 e.classList.remove("dv21-active"); 232 console.log("CA04"); 233 document.getElementById('dv21-subMenu').classList.remove("dv21-active"); 234 var submenu = document.querySelectorAll(".dv21-subMenu .dv21-inner-submenu"); 235 for (var sub = 0; sub < submenu.length; sub++) { 236 submenu[sub].classList.remove("dv21-active"); 237 } 238} 239 240function detectOverlayClick(){ 241 if(window.dv_active_Event =="swLanguage"){ 242 glob21_swlanguage(window.dv21_pageCur_lang,0); 243 }else if(window.dv_active_Event =="eService"){ 244 glob21_eService(); 245 } 246} 247function dv21_svgOver(obj){ 248 console.log(obj); 249} 250 251 252function dv20_callEvTrack(project, obj) { 253 if (project != '' && typeof project != "undefined") { 254 if (Object.getOwnPropertyNames(obj).length > 0) { 255 if (typeof dataLayer != "undefined") { 256 dataLayer.push(obj); 257 } 258 var data = { refp: project, p_cmd: "writelog-dataLayer", text: JSON.stringify(obj) } 259 $.post("https://www.dtac.co.th/assets/ajax/wlog.php", data, function (resp) { }, "json"); 260 } 261 } else { 262 console.log("project not found"); 263 } 264} 265 266function glob20_startLoading() { 267 var element1 = document.getElementById("dv20_overlay"); 268 if(typeof(element1) != 'undefined' && element1 != null){ 269 element1.classList.add("open"); 270 } 271 var element2 = document.getElementById("dv20_loading"); 272 if(typeof(element2) != 'undefined' && element2 != null){ 273 element2.classList.add("open"); 274 } 275 setTimeout(glob20_stopLoading, 90000); 276} 277 278function glob20_stopLoading() { 279 var element1 = document.getElementById("dv20_overlay"); 280 if(typeof(element1) != 'undefined' && element1 != null){ 281 element1.classList.remove("open"); 282 } 283 284 var element2 = document.getElementById("dv20_loading"); 285 if(typeof(element2) != 'undefined' && element2 != null){ 286 element2.classList.remove("open"); 287 } 288} 289 290 291 292 293function glob21_openMenu_Mobile(e) { 294 glob21_OverLay('open'); 295 document.getElementById("dv21-subMenu-mb").classList.add("dv21-show"); 296} 297function glob21_closeMenu_Mobile(e) { 298 glob21_OverLay('close'); 299 document.getElementById("dv21-subMenu-mb").classList.remove("dv21-show"); 300} 301function glob21_openSubpage(spage) { 302 var subpage = document.querySelectorAll(".dv21-subpage-block .dv21-inner-subpage"); 303 for (var sub = 0; sub < subpage.length; sub++) { 304 subpage[sub].classList.remove("dv21-active"); 305 } 306 document.getElementById(spage).classList.add("dv21-active"); 307 document.getElementById("dv21-subpage-block").classList.add("dv21-show"); 308} 309function glob21_closeSubpage(objid) { 310 var subpage = document.querySelectorAll(".dv21-subpage-block .dv21-inner-subpage"); 311 var curActive = null; 312 for (var sub = 0; sub < subpage.length; sub++) { 313 if(subpage[sub].id == objid){ 314 curActive = sub; 315 setTimeout(function(){ 316 subpage[curActive].classList.remove("dv21-active"); 317 console.log("CA05"); 318 },750); 319 }else{ 320 subpage[sub].classList.remove("dv21-active"); 321 console.log("CA06"); 322 } 323 } 324 document.getElementById("dv21-subpage-block").classList.remove("dv21-show"); 325} 326 327/*--------- nah edit 2021-11-08---------*/ 328 329function glob20_hd_dataLayerPush(tag,data,link){ 330 331 if(tag=="nv_dtaclite_back_quickPay"){ 332 obj = {'event':'track_event','eventCategory':'newQuickPayment','eventAction':'click_button','eventLabel':'back_button'} 333 dataLayer.push(obj); 334 setTimeout(function () { 335 location.href = link; 336 }, 200); 337 }else if(tag=="nv_dtaclite_back_quickRefill"){ 338 obj = {'event':'track_event','eventCategory':'newQuickRefill','eventAction':'click_button','eventLabel':'back_button'} 339 dataLayer.push(obj); 340 setTimeout(function () { 341 location.href = link; 342 }, 200); 343 }else{ 344 if (Object.getOwnPropertyNames(data).length > 0) { 345 dataLayer.push(data); 346 } 347 } 348} 349 350function glob20_setCookie(name, value, expires, path, domain, secure) { 351 var today = new Date(); 352 today.setTime(today.getTime()); 353 if (expires) { expires = expires * 1000; } 354 var expires_date = new Date(today.getTime() + (expires)); 355 document.cookie = name + "=" + escape(value) + 356 ((expires) ? ";expires=" + expires_date.toGMTString() : "") + 357 ((path) ? ";path=" + path : "") + 358 ((domain) ? ";domain=" + domain : "") + 359 ((secure) ? ";secure" : ""); 360} 361function glob20_getCookie(c_name) { 362 var c_value = document.cookie; 363 var c_start = c_value.indexOf(" " + c_name + "="); 364 if (c_start == -1) { c_start = c_value.indexOf(c_name + "="); } 365 if (c_start == -1) { c_value = null; } else { 366 c_start = c_value.indexOf("=", c_start) + 1; 367 var c_end = c_value.indexOf(";", c_start); 368 if (c_end == -1) { c_end = c_value.length; } 369 c_value = unescape(c_value.substring(c_start, c_end)); 370 } 371 return c_value; 372} 373 374function glob20_deleteCookie(name, path, domain) { 375 if (gb_getCookie(name)) { 376 document.cookie = name + "=" + 377 ((path) ? "; path=" + path : "") + 378 ((domain) ? "; domain=" + domain : "") + 379 "; expires=Thu, 01-Jan-70 00:00:01 GMT"; 380 } 381} 382 383function showBannerDtacapp() { 384 var lang = dv21_pageCur_lang; 385 386 var pathname = window.location.pathname; 387 if(pathname=="/apple/" || pathname=="/apple/iphone-14-pro" || pathname=="/apple/iphone-14" || pathname=="/splash.html" || pathname=="/splash-en.html"){ 388 return; 389 } else if(pathname=="/postpaid/"){ 390 var _gtxt = {"T0001":{"TH":"à¸à¸¸à¹à¸¡à¸ªà¸¸à¸ @à¸à¸µà¹à¸à¸à¹à¸à¸à¹à¸à¹à¸²à¸à¸±à¹à¸! à¹à¸à¹à¸à¹à¸ªà¸£à¸´à¸¡à¹à¸à¸´à¹à¸¡à¹à¸à¹à¸à¸ªà¸¸à¸à¸à¸¸à¹à¸¡ à¹à¸à¹à¸à¹à¸¢à¸à¸° à¸à¸¸à¹à¸ à¸à¸µà¹à¸à¸µà¹à¸à¸µà¹à¹à¸à¸µà¸¢à¸§","EN":"Best value only @dtac app! Exclusive big-sized internet add-on package only at here"},"T0002":{"TH":"à¸à¸²à¸§à¸à¹à¹à¸«à¸¥à¸","EN":"Download"}}; 391 var _link = "https://www.dtac.co.th/s/dapp_postpaid"; 392 }else if(pathname=="/prepaid/"){ 393 var _gtxt = {"T0001":{"TH":"à¸à¸¸à¹à¸¡à¸ªà¸¸à¸ @à¸à¸µà¹à¸à¸à¹à¸à¸à¹à¸à¹à¸²à¸à¸±à¹à¸! à¹à¸à¸£à¹à¸ªà¸£à¸´à¸¡à¹à¸à¹à¸à¹à¸¡à¹à¸à¸±à¹à¸ à¹à¸¡à¹à¸¥à¸à¸ªà¸à¸µà¸ ลà¸à¹à¸£à¸ สูà¸à¸ªà¸¸à¸ 50% à¸à¸µà¹à¸à¸µà¹à¸à¸µà¹à¹à¸à¸µà¸¢à¸§","EN":"Best value only @dtac app! Extreme discount up to 50% off unlimited data only at here"},"T0002":{"TH":"à¸à¸²à¸§à¸à¹à¹à¸«à¸¥à¸","EN":"Download"}}; 394 var _link = "https://www.dtac.co.th/s/dapp_prepaid"; 395 }else{ 396 var _gtxt = {"T0001":{"TH":"à¸à¸£à¸µ30coins à¹à¸à¸µà¸¢à¸à¹à¸«à¸¥à¸à¹à¸¥à¸°à¹à¸à¸´à¸à¹à¸à¹à¸à¸²à¸à¸à¸µà¹à¸à¸à¹à¸à¸à¸à¸£à¸±à¹à¸à¹à¸£à¸","EN":"Free30coins for 1st time download and login to dtac app"},"T0002":{"TH":"à¸à¸²à¸§à¸à¹à¹à¸«à¸¥à¸","EN":"Download"}}; 397 var _link = "https://dtac.onelink.me/TDOR/5"; 398 } 399 400 var elem = document.createElement("div"); 401 elem.setAttribute("id", "banner_dtacapp"); 402 if(lang != '') { 403 var lang_uper = lang.toUpperCase(); 404 elem.insertAdjacentHTML('beforeend', '<div style="height:85px"><div class="dv20_Table"><div class="dv20_TableBody"><div class="dv20_TableRow"><div class="dv20_TableCell"><div id="close_banner_dtacapp" onclick="closeBannerDtacapp(this); dataLayer.push({\'event\':\'click\',\'EventAction\':\'click\',\'EventCategory\':\'home\',\'EventLabel\': \'dtac app : header close\'});">â</div></div><div class="dv20_TableCell" style="padding-left:0;"><a href="'+_link+'" onclick="dataLayer.push({\'event\':\'click\',\'EventAction\':\'click\',\'EventCategory\':\'home\',\'EventLabel\': \'dtac app : header icon\'});" ><img src="/assets/dtac-app/images/logo-dtacapp.png" alt="dtac app" class="dv20-img-fluid img-dv20-logo"></a></div><div class="dv20_TableCell" style="padding-left:0;"><div style="display: inline-block;vertical-align: inherit;"><div class="dtacapp-title">dtac</div><div>'+_gtxt['T0001'][lang_uper]+'</div></div></div><div class="dv20_TableCell"><a href="'+_link+'"class="btn-download-app" onclick="dataLayer.push({\'event\':\'click\',\'EventAction\':\'click\',\'EventCategory\':\'home\',\'EventLabel\': \'dtac app : header btn\'});">'+_gtxt['T0002'][lang_uper]+'</a></div></div></div></div></div>'); 405 } else { 406 elem.insertAdjacentHTML('beforeend', '<div style="height:85px"><div class="dv20_Table"><div class="dv20_TableBody"><div class="dv20_TableRow"><div class="dv20_TableCell"><div id="close_banner_dtacapp" onclick="closeBannerDtacapp(this); dataLayer.push({\'event\':\'click\',\'EventAction\':\'click\',\'EventCategory\':\'home\',\'EventLabel\': \'dtac app : header close\'});">â</div></div><div class="dv20_TableCell" style="padding-left:0;"><a href="'+_link+'" onclick="dataLayer.push({\'event\':\'click\',\'EventAction\':\'click\',\'EventCategory\':\'home\',\'EventLabel\': \'dtac app : header icon\'});" ><img src="/assets/dtac-app/images/logo-dtacapp.png" alt="dtac app" class="dv20-img-fluid img-dv20-logo"></a></div><div class="dv20_TableCell" style="padding-left:0;"><div style="display: inline-block;vertical-align: inherit;"><div class="dtacapp-title">dtac</div><div>'+_gtxt['T0001']['TH']+'</div></div></div><div class="dv20_TableCell"><a href="'+_link+'"class="btn-download-app" onclick="dataLayer.push({\'event\':\'click\',\'EventAction\':\'click\',\'EventCategory\':\'home\',\'EventLabel\': \'dtac app : header btn\'});">'+_gtxt['T0002']['TH']+'</a></div></div></div></div></div>'); 407 } 408 409 document.body.insertBefore(elem, document.body.firstChild); 410 DOMAnimations.slideDown(elem); 411} 412 413function closeBannerDtacapp(e) { 414 var closeButton = document.getElementById("banner_dtacapp"); 415 DOMAnimations.slideUp(closeButton);
416 glob20_setCookie("dtacapp_notifications", "visited", 3600, "/", "dtac.co.th", false); 417} 418 419document.addEventListener('DOMContentLoaded', function(event) { 420 421 422 let dv21_search_timeout = null; 423 var inputSearch = document.getElementById("dv21-inp-q"); 424 if (typeof(inputSearch) != 'undefined' && inputSearch != null){ 425 inputSearch.addEventListener('focusout', function (e) { 426 clearTimeout(dv21_cdTime); 427 dv21_cdTime = setInterval(function () { 428 var frm_search = document.getElementById("dv21-inp-q"); 429 if (frm_search.classList.contains("dv21-active")) { 430 frm_search.classList.remove("dv21-active"); 431 document.getElementById("dv21-dt-logo").classList.remove("slideLeft"); 432 433 } 434 }, 5000); 435 }); 436 inputSearch.addEventListener("keyup", function(event) { 437 if (event.keyCode === 13 && inputSearch.value !="") { 438 glob21_startLoading(); 439 setTimeout(function () { 440 window.location.href = "https://www.dtac.co.th/search/search.html?l=th&q="+inputSearch.value; 441 }, 350); 442 } 443 }); 444 445 inputSearch.addEventListener("keypress", function(event) { 446 clearTimeout(dv21_cdTime); 447 dv21_cdTime = setInterval(function () { 448 449 var frm_search = document.getElementById("dv21-inp-q"); 450 if (frm_search.classList.contains("dv21-active")) { 451 frm_search.classList.remove("dv21-active"); 452 document.getElementById("dv21-dt-logo").classList.remove("slideLeft"); 453 454 } 455 }, 5000); 456 }); 457 458 459 460 } 461 462 463 464 var inputSearchMB = document.getElementById("dv21-inp-mb-q"); 465 if (typeof(inputSearchMB) != 'undefined' && inputSearchMB != null){ 466 inputSearchMB.addEventListener("keyup", function(event) { 467 if (event.keyCode === 13 && inputSearchMB.value !="") { 468 glob21_startLoading(); 469 setTimeout(function () { 470 window.location.href = "https://www.dtac.co.th/search/search.html?l=th&q="+inputSearchMB.value; 471 }, 450); 472 } 473 }); 474 } 475 476 var isMobile = false; 477 if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.
477substr(0, 4))) { 478 isMobile = true; 479 } 480 481 var width = window.innerWidth; 482 var height = window.innerHeight; 483 484 if (navigator.userAgent.match(/macintosh/i)) { 485 if (width <= 1366) { 486 isMobile = true; 487 } else { 488 isMobile = false; 489 } 490 } 491 492 if (isMobile == true && glob20_getCookie("dtacapp_notifications") == null) { 493 494 495 var url_string = window.location.href; 496 var url_obj = new URL(url_string); 497 var os = url_obj.searchParams.get("os"); 498 if (os != "dtacapp" && os != "dtaclite"){ 499 setTimeout(function () { 500 showBannerDtacapp(); 501 }, 1000); 502 } 503 } 504 505}); 506 507setTimeout(function () { 508 509 const scripts = document.getElementsByTagName('script'); 510 for (let script of scripts) { 511 if (script.src && script.src.includes('https://www.google.com/recaptcha/api.js')) { 512 const url = new URL(script.src); 513 const siteKey = url.searchParams.get('render'); 514 if (siteKey) { 515 if(siteKey=="6LfDp00oAAAAALmDw7WGgG3SUQMebzFxks0Ti4z6" || siteKey=="6LfJuX0fAAAAAI9AErPHfoENifYqn9Ubb--36dlz" || siteKey=="6LeQR_4eAAAAAASqkzDcu92_ybLEhxC7upjh2nS-"){ 516 var obj = {'sitekey' : siteKey}; 517 var data = { refp: "reCAPTCHA", p_cmd: "writelog-reCAPTCHA", text: JSON.stringify(obj) } 518 $.post("https://www.dtac.co.th/assets/ajax/wlog.php", data, function (resp) { }, "json"); 519 } 520 521 } 522 } 523 } 524 525}, 2550);
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.