1/** 2 * Nethru Script Module 3 * Copyright 2008 nethru, All Rights Reserved. 4 * 5 * WiseLog Online Version 7.1.LJK_20190919 6 **/ 7 8var _n_sid = "wiki.wiselog.com"; /* custid */ 9 10var _n_c_field1="LIFEPLANET_clpOrgno"; /* custom cookie 1 */ 11var _n_c_field2="PLNNR_GNDR_CD"; /* custom cookie 2 logging ljk_20191015*/ 12var _n_c_field3="SMOKE_YN"; /* custom cookie 3 logging ljk_20191015*/ 13 14var _n_ls = "http://nweblog.lifeplanet.co.kr:9080/wlo/Logging"; /* logging server */ 15var _n_uls = "http://nweblog.lifeplanet.co.kr:9080/wlo/UserLogging"; /* user logging server */ 16var _n_uid = ""; /* uid */ 17var _n_first_pcid = false; 18var _n_click_logging_max = 30; 19var _n_click_logging_num = 0; 20var _n_click_images = new Object(); 21 22var _n_ptype_param="_wl_ptype"; 23var _n_src_param="_wl_src"; 24var _n_keyword_param="_wl_keyword"; 25var _n_mid_param="_wl_mid"; 26var _n_convday_param="_wl_convday"; 27var _n_acqmoney_param="_wl_convvalue" 28 29var _n_src_cookie="NCHANNELSRC"; 30var _n_keyword_cookie="NCHANNELKWD"; 31var _n_mid_cookie="NCHANNELMID"; 32var _n_date_cookie="NCHANNELDATE" 33 34var _n_max_conv_day = 30; 35 36var _n_cookie_convtype="NCONVTYPE"; 37var _n_cookie_convkwd="NCONVKWD"; 38 39var _n_use_subcookie = false; /* use sub cookie */ 40var _n_use_channel = false; /* use inflow channel */ 41var _n_use_cpc = false; /* use CPC */ 42 43var _n_bank_uid = ""; // bank uid (non cookie uid) 44var _n_bank_uid_name = "WLUID"; // bank uid key name (for log's cookie name) 45 46var _n_bank_pcid = ""; 47var _n_bank_pcid_name = "WLBPCID"; 48 49var _n_use_async = false; 50 51var _n_use_img_timeout = false; 52var _n_img_timeout_millis = 3000; 53 54var _n_custom_pipe = "%7C%0B"; 55 56var _n_custom_param = {}; 57 58/* https logging */ 59if ( document.location.protocol == "https:" ) { 60 _n_ls = "https://nweblog.lifeplanet.co.kr:9443/wlo/Logging"; 61 _n_uls = "https://nweblog.lifeplanet.co.kr:9443/wlo/UserLogging"; 62} 63 64 65/* Action_logging */ 66Nethru = window.Nethru || {}; 67Nethru.Logging = window.Nethru.Logging || {}; 68 69Nethru.Logging.isEmpty = function(val) { 70 return (val == "" || val == undefined); 71}; 72 73var action_logging = function(param) { 74 75 76 77 78 79 if(param == undefined) { 80 return; 81 } 82 var option = {type:'pageview'}; 83 84 var click_logging_stem = location.protocol + "//" + location.hostname; 85 var click_logging_param = ""; 86 var paramNames = Object.getOwnPropertyNames(param); 87 for(var i = 0 ; i < paramNames.length ; i++) { 88 var name = paramNames[i]; 89 var value = param[name]; 90 91 if(Nethru.Logging.isEmpty(value)) { 92 continue; 93 } 94 95 if(name == "click_event") { /* URL logging*/ 96 click_logging_stem += "/click_event/" + value; } 97 else { 98 if (i == paramNames.length -1) 99 { 100 click_logging_param += name + "=" + value; 101 option[name] = value; 102 } else 103 { 104 click_logging_param += name + "=" + value + "&"; 105 option[name] = value; 106 } 107 } 108 109 } 110 111 if(click_logging_param == "") { 112 return; 113 } 114 click_logging_stem += "/click_event"; /* URL logging*/ 115 n_click_logging(click_logging_stem + "?" + click_logging_param,location.href); 116 117}; 118 119Nethru.Logging.loggingEventClick = function(param) { 120 action_logging(param); 121}; 122/* Action_logging */ 123 124 125 126var _n_logging_image = new Image(); /* Common Logging Image */ 127var _n_user_image = new Image(); /* User Logging */ 128 129for ( var i=0; i<_n_click_logging_max;i++) { 130 _n_click_images[i] = new Image(); 131} 132/* @Deprecated 7.0.1.1 */ 133function n_loadImageSimple(img, url) { 134 img.src = url; 135} 136/* @Deprecated 7.0.1.1 */ 137function n_loadImage(img, url, altUrl, timeout) { 138 img = document.createElement('iframe'); 139 img.style.display = 'none'; 140 img.height = 1; 141 img.width = 1; 142 143 var timer; 144 function clearTimer() { 145 if ( timer ) { 146 clearTimeout(timer); 147 timer = null; 148 } 149 } 150 151 function handleFail() { 152 this.onload = this.onabort = this.onerror = function() {}; 153 154 clearTimer(); 155 if ( this.src === url) { 156 this.src = altUrl; 157 } 158 img.removeAttribute('src'); 159 img.remove(); 160 } 161 162 img.onerror = img.onabort = handleFail; 163 img.onload = function() { 164 clearTimer(); 165 img.remove(); 166 }; 167 168 img.src = url; 169 timer = setTimeout(function(theImg) { 170 return function() { 171 handleFail.call(theImg); 172 } 173 }(img), timeout); 174 document.body.appendChild(img); 175 176 return img; 177} 178 179function n_load_async(url, timeout) { 180 var timer; 181 function clearTimer() { 182 if ( timer ) { 183 clearTimeout(timer); 184 timer = null; 185 } 186 } 187 188 var XMLHttpFactories = [ 189 function () {return new XDomainRequest()}, 190 function () {return new XMLHttpRequest()}, 191 function () {return new ActiveXObject("Msxml2.XMLHTTP")}, 192 function () {return new ActiveXObject("Msxml3.XMLHTTP")}, 193 function () {return new ActiveXObject("Microsoft.XMLHTTP")} 194 ]; 195 196 function createXMLHttpObject() { 197 var xmlhttp = false; 198 for (var i=0;i<XMLHttpFactories.length;i++) { 199 try { 200 xmlhttp = XMLHttpFactories[i](); 201 } catch (e) { 202 continue; 203 } 204 break; 205 } 206 return xmlhttp; 207 } 208 var xhr = createXMLHttpObject(); 209 if (!xhr) { 210 return; 211 } 212 xhr.onload = xhr.onerror = xhr.onabort = function() { 213 clearTimer() 214 }; 215 xhr.open('GET', url, false); 216 xhr.withCredentials = true; 217 xhr.send(null); 218 if ( _n_use_img_timeout ) { 219 setTimeout(function() { 220 xhr.abort(); 221 }, timeout); 222 } 223} 224 225function n_getBI() 226{ 227 var str = ""; 228 var dt = document; 229 230 var strScreenSize = ""; 231 232 var ws = window.screen;
233 234 if ( ws != null && ws != "undefined" ) { 235 strScreenSize = screen.width+"x"+screen.height; 236 } 237 str +="n_ss=" + strScreenSize + "; "; 238 239 var cs = "-"; 240 var nv = navigator; 241 242 if ( nv.language ) { 243 cs = nv.language.toLowerCase(); 244 } 245 else if ( nv.userLanguage ) { 246 cs = nv.userLanguage.toLowerCase(); 247 } 248 249 str +="n_cs=" + cs + "; "; 250 251 return str; 252} 253 254function n_getSubCV(cv, offset, escapeFlag, delim) 255{ 256 var endstr = cv.indexOf ( delim, offset); 257 258 if ( endstr == -1) endstr = cv.length; 259 260 if ( escapeFlag ) 261 return unescape(cv.substring(offset, endstr)); 262 else 263 return cv.substring(offset, endstr); 264} 265/* @Deprecated 7.0.1.1 */ 266function n_getCV(dc, offset,escapeFlag) 267{ 268 var endstr = dc.indexOf (";", offset); 269 270 if (endstr == -1) endstr = dc.length; 271 272 if ( escapeFlag ) 273 return unescape(dc.substring(offset, endstr)); 274 else 275 return dc.substring(offset, endstr); 276} 277 278function n_GetSubCookie(name, cv) 279{ 280 var arg = name + "="; 281 var alen = arg.length; 282 var clen = cv.length; 283 var i = 0; 284 285 while (i < clen) 286 { 287 var j = i + alen; 288 289 if (cv.substring(i, j) == arg) { 290 return n_getSubCV (cv,j,false,"&"); 291 } 292 293 i = cv.indexOf("&", i) + 1; 294 295 if (i == 0) 296 break; 297 } 298 299 return null; 300} 301 302function n_GetCookie(name,escapeFlag) 303{ 304 var dc = document.cookie; 305 var arg = name + "="; 306 var alen = arg.length; 307 var clen = dc.length; 308 var i = 0; 309 310 while (i < clen) 311 { 312 var j = i + alen; 313 314 if (dc.substring(i, j) == arg) { 315 if ( _n_use_subcookie ) { 316 return n_getSubCV(dc, j, escapeFlag, ";"); 317 } else { 318 return n_getCV(dc, j, escapeFlag); 319 } 320 } 321 322 i = dc.indexOf(" ", i) + 1; 323 324 if (i == 0) 325 break; 326 } 327 328 return null; 329} 330 331function n_SetCookie(name, value) 332{ 333 var argv = n_SetCookie.arguments; 334 var argc = n_SetCookie.arguments.length; 335 var expires = (2 < argc) ? argv[2] : null; 336 var path = (3 < argc) ? argv[3] : null; 337 var domain = (4 < argc) ? argv[4] : null; 338 var secure = (5 < argc) ? argv[5] : false; 339 340 document.cookie = 341 name + "=" + escape (value) 342 + ((expires == null) ? "" : ("; expires="+expires.toGMTString())) 343 + ((path == null) ? "" : ("; path=" + path)) 344 + ((domain == null) ? "" : ("; domain=" + domain)) 345 + ((secure == true) ? "; secure" : ""); 346} 347 348function n_DeleteCookie(name, path, domain) { 349 if ( n_GetCookie(name, false) ) { 350 document.cookie = name + "=" + 351 ( ( path ) ? ";path=" + path : "") + 352 ( (domain ) ? ";domain=" + domain : "") + 353 ";expires=Thu, 01-Jan-1970 00:00:01 GMT"; 354 } 355} 356 357function n_makePersistentCookie(name,length,path,domain) 358{ 359 var today = new Date(); 360 var expiredDate = new Date(2100,1,1); 361 var cookie; 362 var value; 363 364 cookie = n_GetCookie(name,true); 365 366 if ( cookie ) { 367 _n_first_pcid = false; 368 return cookie; 369 } 370 _n_first_pcid = true; 371 372 var values = new Array(); 373 374 for ( i=0; i < length ; i++ ) { 375 values[i] = "" + Math.random(); 376 } 377 378 value = today.getTime(); 379 380 for ( i=0; i < length ; i++ ) { 381 value += values[i].charAt(2); 382 } 383 384 n_SetCookie(name,value,expiredDate,path,domain); 385 386 return value; 387} 388 389function n_setCustomParam(k, v) { 390 if(_n_custom_param[k]) { 391 console.warn("'" + k + "' key already has value. the old value is replaced."); 392 } 393 _n_custom_param[k] = v; 394} 395/* @Deprecated 7.0.1.1 */ 396function n_Logging_M() { 397 if ( (typeof _n_m1)!="undefined" && _n_m1 ) { n_setCustomParam("_n_m1", _n_m1); } 398 if ( (typeof _n_m2)!="undefined" && _n_m2 ) { n_setCustomParam("_n_m2", _n_m2); } 399 if ( (typeof _n_m3)!="undefined" && _n_m3 ) { n_setCustomParam("_n_m3", _n_m3); } 400 if ( (typeof _n_m4)!="undefined" && _n_m4 ) { n_setCustomParam("_n_m4", _n_m4); } 401 if ( (typeof _n_m5)!="undefined" && _n_m5 ) { n_setCustomParam("_n_m5", _n_m5); } 402 if ( (typeof _n_m6)!="undefined" && _n_m6 ) { n_setCustomParam("_n_m6", _n_m6); } 403 if ( (typeof _n_m7)!="undefined" && _n_m7 ) { n_setCustomParam("_n_m7", _n_m7); } 404} 405/* @Deprecated 7.0.1.1 */ 406function n_Logging_P() { 407 if ( (typeof _n_p1)!="undefined" && _n_p1 ) { n_setCustomParam("_n_p1", _n_p1); } 408 if ( (typeof _n_p2)!="undefined" && _n_p2 ) { n_setCustomParam("_n_p2", _n_p2); } 409 if ( (typeof _n_p3)!="undefined" && _n_p3 ) { n_setCustomParam("_n_p3", _n_p3); } 410 if ( (typeof _n_p4)!="undefined" && _n_p4 ) { n_setCustomParam("_n_p4", _n_p4); }
411 if ( (typeof _n_p5)!="undefined" && _n_p5 ) { n_setCustomParam("_n_p5", _n_p5); } 412 if ( (typeof _n_p6)!="undefined" && _n_p6 ) { n_setCustomParam("_n_p6", _n_p6); } 413 if ( (typeof _n_p7)!="undefined" && _n_p7 ) { n_setCustomParam("_n_p7", _n_p7); } 414 if ( (typeof _n_p8)!="undefined" && _n_p8 ) { n_setCustomParam("_n_p8", _n_p8); } 415 if ( (typeof _n_inflow)!="undefined" && _n_inflow ) { n_setCustomParam("_n_inflow", _n_inflow); } 416 if ( (typeof _n_s1)!="undefined" && _n_s1 ) { n_setCustomParam("_n_s1", _n_s1); } 417 if ( (typeof _n_s2)!="undefined" && _n_s2 ) { n_setCustomParam("_n_s2", _n_s2); } 418 if ( (typeof _n_s3)!="undefined" && _n_s3 ) { n_setCustomParam("_n_s3", _n_s3); } 419 if ( (typeof _n_s4)!="undefined" && _n_s4 ) { n_setCustomParam("_n_s4", _n_s4); } 420 if ( (typeof _n_s5)!="undefined" && _n_s5 ) { n_setCustomParam("_n_s5", _n_s5); } 421 if ( (typeof _n_s6)!="undefined" && _n_s6 ) { n_setCustomParam("_n_s6", _n_s6); } 422 if ( (typeof _n_s7)!="undefined" && _n_s7 ) { n_setCustomParam("_n_s7", _n_s7); } 423 if ( (typeof _n_s8)!="undefined" && _n_s8 ) { n_setCustomParam("_n_s8", _n_s8); } 424 if ( (typeof _n_s9)!="undefined" && _n_s9 ) { n_setCustomParam("_n_s9", _n_s9); } 425 if ( (typeof _n_s10)!="undefined" && _n_s10 ) { n_setCustomParam("_n_s10", _n_s10); } 426 if ( (typeof _n_s11)!="undefined" && _n_s11 ) { n_setCustomParam("_n_s11", _n_s11); } 427 if ( (typeof _n_s12)!="undefined" && _n_s12 ) { n_setCustomParam("_n_s12", _n_s12); } 428 if ( (typeof _n_s13)!="undefined" && _n_s13 ) { n_setCustomParam("_n_s13", _n_s13); } 429 if ( (typeof _n_s14)!="undefined" && _n_s14 ) { n_setCustomParam("_n_s14", _n_s14); } 430 if ( (typeof _n_s15)!="undefined" && _n_s15 ) { n_setCustomParam("_n_s15", _n_s15); } 431 if ( (typeof _n_s16)!="undefined" && _n_s16 ) { n_setCustomParam("_n_s16", _n_s16); } 432 if ( (typeof _n_s17)!="undefined" && _n_s17 ) { n_setCustomParam("_n_s17", _n_s17); } 433 if ( (typeof _n_s18)!="undefined" && _n_s18 ) { n_setCustomParam("_n_s18", _n_s18); } 434 if ( (typeof _n_s19)!="undefined" && _n_s19 ) { n_setCustomParam("_n_s19", _n_s19); } 435 if ( (typeof _n_s20)!="undefined" && _n_s20 ) { n_setCustomParam("_n_s20", _n_s20); } 436 if ( (typeof _n_s21)!="undefined" && _n_s21 ) { n_setCustomParam("_n_s21", _n_s21); } 437 if ( (typeof _n_s22)!="undefined" && _n_s22 ) { n_setCustomParam("_n_s22", _n_s22); } 438 if ( (typeof _n_s23)!="undefined" && _n_s23 ) { n_setCustomParam("_n_s23", _n_s23); } 439 if ( (typeof _n_s24)!="undefined" && _n_s24 ) { n_setCustomParam("_n_s24", _n_s24); } 440 if ( (typeof _n_s25)!="undefined" && _n_s25 ) { n_setCustomParam("_n_s25", _n_s25); } 441 if ( (typeof _n_r1)!="undefined" && _n_r1 ) { n_setCustomParam("_n_r1", _n_r1); } 442 if ( (typeof _n_r2)!="undefined" && _n_r2 ) { n_setCustomParam("_n_r2", _n_r2); } 443 444 if ( (typeof _n_c1)!="undefined") { n_setCustomParam("_n_c1", _n_c1); } 445 if ( (typeof _n_c2)!="undefined") { n_setCustomParam("_n_c2", _n_c2); } 446 if ( (typeof _n_c3)!="undefined") { n_setCustomParam("_n_c3", _n_c3); } 447 if ( (typeof _n_c4)!="undefined") { n_setCustomParam("_n_c4", _n_c4); } 448 if ( (typeof _n_c5)!="undefined") { n_setCustomParam("_n_c5", _n_c5); } 449 if ( (typeof _n_c6)!="undefined") { n_setCustomParam("_n_c6", _n_c6); } 450 if ( (typeof _n_c7)!="undefined") { n_setCustomParam("_n_c7", _n_c7); } 451 if ( (typeof _n_c8)!="undefined") { n_setCustomParam("_n_c8", _n_c8); } 452 if ( (typeof _n_c9)!="undefined") { n_setCustomParam("_n_c9", _n_c9); } 453 if ( (typeof _n_c10)!="undefined") { n_setCustomParam("_n_c10", _n_c10); } 454 455 if ( (typeof _n_rrsnGoodCd)!="undefined" && _n_rrsnGoodCd ) { n_setCustomParam("_n_rrsnGoodCd", _n_rrsnGoodCd); } 456} 457 458function n_encodeStr(s) 459{ 460 if (typeof(encodeURI) == 'function') { 461 s=encodeURI(s); 462 s=s.split("#").join("%23"); 463 return s; 464 } 465 else 466 return escape(s); 467} 468 469function n_encodeStr2(s) /* encode */ 470{ 471 if (typeof(encodeURI) == 'function') { 472 s=encodeURI(s); 473 s=s.split("#").join("%23"); 474 s=s.split("&").join("%26"); 475 s=s.split("?").join("%3F"); 476 s=s.split("=").join("%3D"); 477 return s; 478 } 479 else 480 return escape(s); 481} 482 483function n_paramEncodeStr(s) 484{ 485 s=s.split("&").join("|"); 486 s=s.split("?").join(" "); 487 s=s.split("/").join("|"); 488 489 return n_encodeStr(s); 490} 491 492function n_getDomain() 493{ 494 var _host = document.domain; 495 var so = _host.split('.'); 496 497 if ( n_isIpType(so)) { 498 return ( so[0] + '.' + so[1] + '.' + so[2] + '.' + so[3]); 499 } 500 501 if ( so.length != 4 && so.length != 3 ) { 502 return _host; 503 } 504 505 var dm = so[so.length-2] + '.' + so[so.length-1]; 506 507 return (so[so.length-1].length == 2) ? so[so.length-3] + '.' + dm : dm; 508} 509 510function n_getReferrer() 511{ 512 var my_ref = self.document.referrer; 513 514 var parent_href = ""; 515 var parent_ref = ""; 516 517 try { 518 parent_href = top.document.location.href; 519 parent_ref = top.document.referrer; 520 } 521 catch(e) { 522 return my_ref; 523 } 524 525 if ( my_ref == parent_href ) 526 return parent_ref; 527 528 return my_ref; 529} 530 531function n_getCookieStr() 532{ 533 /* PCID */ 534 var pcid = ""; 535 536 /* Cookie Field */ 537 var _n_c_f = ""; 538 539 /* Browser Info */ 540 var binfo = n_getBI(); 541 542 /* Domain */ 543 var domain = ""; 544 545 if ( (typeof _n_domain)!="undefined" && _n_domain != "" ) { 546 domain = _n_domain; 547 } 548 else { 549 domain = n_getDomain(); 550 } 551
552 pcid = n_makePersistentCookie("PCID",10,"/",domain); 553 554 if ( pcid != null && pcid != "" ) { 555 var cookies = ""; 556 557 if ( _n_first_pcid == true ) { 558 n_SetCookie("PCID_publish", "NEW", null, "/", domain); 559 } else { 560 cookies += "PCID" + "=" + pcid + "; "; 561 } 562 563 if(n_GetCookie("PCID_publish")) 564 cookies += "PCID_publish=NEW; "; 565 566 if ( (typeof _n_bank_pcid) != "undefined" && _n_bank_pcid != "" && (typeof _n_bank_pcid_name) != "undefined" && _n_bank_pcid_name != "" ) { 567 if(n_GetCookie(_n_bank_pcid_name, true)) { 568 cookies += _n_bank_pcid_name + "=" + _n_bank_pcid + "; "; 569 } else { 570 var expiredDate = new Date(2100,1,1); 571 n_SetCookie(_n_bank_pcid_name, _n_bank_pcid, expiredDate, "/", domain); 572 } 573 } 574 575 if ( (typeof _n_uid_cookie)!="undefined" && _n_uid_cookie != "" ) { 576 if ( (typeof _n_f_uid_decode)=="undefined" || _n_f_uid_decode==true ) { 577 _n_uid = n_GetCookie(_n_uid_cookie,true); 578 } 579 else { 580 _n_uid = n_GetCookie(_n_uid_cookie,false); 581 } 582 if ( _n_uid != null && _n_uid != "" ) { 583 if ( _n_use_subcookie && (typeof _n_uid_subcookie) != "undefined" && _n_uid_subcookie != "" ) { 584 _n_uid_sub = n_GetSubCookie(_n_uid_subcookie,_n_uid); 585 if ( _n_uid_sub != null && _n_uid_sub != "" ) { 586 cookies += _n_uid_subcookie + "=" + _n_uid_sub + "; "; 587 } 588 } else 589 cookies += _n_uid_cookie + "=" + _n_uid + "; "; 590 } 591 } 592 593 if ( (typeof _n_bank_uid) != "undefined" && _n_bank_uid != "" ) { 594 cookies += _n_bank_uid_name + "=" + _n_bank_uid + "; "; 595 } 596 597 if ( (typeof _n_c_field1)!="undefined" && _n_c_field1 != "" ) { 598 _n_c_f = n_GetCookie(_n_c_field1, true); 599 if ( _n_c_f != null && _n_c_f != "" ) { 600 cookies += _n_c_field1 + "=" + _n_c_f + "; "; 601 } 602 } 603 if ( (typeof _n_c_field2)!="undefined" && _n_c_field2 != "" ) { 604 _n_c_f = n_GetCookie(_n_c_field2, true); 605 if ( _n_c_f != null && _n_c_f != "" ) { 606 cookies += _n_c_field2 + "=" + _n_c_f + "; "; 607 } 608 } 609 if ( (typeof _n_c_field3)!="undefined" && _n_c_field3 != "" ) { 610 _n_c_f = n_GetCookie(_n_c_field3, true); 611 if ( _n_c_f != null && _n_c_f != "" ) { 612 cookies += _n_c_field3 + "=" + _n_c_f + "; "; 613 } 614 } 615 616 return cookies + binfo; 617 } 618 else { 619 return document.cookie + binfo; 620 } 621} 622 623/* User Attr Logging */ 624function n_userattr_logging() 625{ 626 var uid_attr1 = ""; 627 var uid_attr2 = ""; 628 var uid_attr3 = ""; 629 var uid_attr4 = ""; 630 var uid_attr5 = ""; 631 var uid_attr6 = ""; 632 var uid_attr7 = ""; 633 var uid_url = ""; 634 635 if ( _n_uid == null || _n_uid == "" ) { 636 if ( _n_bank_uid != null && _n_bank_uid != "" ) 637 _n_uid = _n_bank_uid; 638 else 639 return; 640 } 641 642 if ( (typeof _n_uid_attr1)!="undefined" && _n_uid_attr1 != "" ) uid_attr1 = _n_uid_attr1; 643 if ( (typeof _n_uid_attr2)!="undefined" && _n_uid_attr2 != "" ) uid_attr2 = _n_uid_attr2; 644 if ( (typeof _n_uid_attr3)!="undefined" && _n_uid_attr3 != "" ) uid_attr3 = _n_uid_attr3; 645 if ( (typeof _n_uid_attr4)!="undefined" && _n_uid_attr4 != "" ) uid_attr4 = _n_uid_attr4; 646 if ( (typeof _n_uid_attr5)!="undefined" && _n_uid_attr5 != "" ) uid_attr5 = _n_uid_attr5; 647 if ( (typeof _n_uid_attr6)!="undefined" && _n_uid_attr6 != "" ) uid_attr6 = _n_uid_attr6; 648 if ( (typeof _n_uid_attr7)!="undefined" && _n_uid_attr7 != "" ) uid_attr7 = _n_uid_attr7; 649 if ( uid_attr1!="" || uid_attr2!="" || uid_attr3!="" || uid_attr4!="" || uid_attr5!="" || uid_attr6!="" || uid_attr7!="" ) { 650 uid_url = _n_uls + 651 "?" + 652 "d=" + "001" + 653 _n_custom_pipe + "dv=" + Math.random() + 654 _n_custom_pipe + "ver=1.0.0" + 655 _n_custom_pipe + "sid=" + n_encodeStr(_n_sid) + 656 _n_custom_pipe + "u=" + n_encodeStr(_n_uid) + 657 _n_custom_pipe + "a1=" + n_encodeStr(uid_attr1) + 658 _n_custom_pipe + "a2=" + n_encodeStr(uid_attr2) + 659 _n_custom_pipe + "a3=" + n_encodeStr(uid_attr3) + 660 _n_custom_pipe + "a4=" + n_encodeStr(uid_attr4) + 661 _n_custom_pipe + "a5=" + n_encodeStr(uid_attr5) + 662 _n_custom_pipe + "a6=" + n_encodeStr(uid_attr6) + 663 _n_custom_pipe + "a7=" + n_encodeStr(uid_attr7); 664 665 if ( _n_use_async ) { 666 n_load_async(uid_url, _n_img_timeout_millis); 667 } else if ( _n_use_img_timeout) { 668 n_loadImage(_n_user_image, uid_url, "#", _n_img_timeout_millis); 669 } else { 670 n_loadImageSimple(_n_user_image, uid_url); 671 } 672 673 //_n_user_image.src = uid_url; 674 } 675} 676 677/* @Deprecated 7.0.1.1 */ 678function n_Logging_P_UID() {
679 if ((typeof _n_p_uid ) != "undefined" && _n_p_uid) return true; 680 681 return false; 682} 683 684function n_hasUnsafeCookieValue(cookieValue) { 685 if (!cookieValue) { 686 return false; 687 } 688 689 return cookieValue.indexOf("<script") > -1; 690} 691 692function n_makeCookieSafe(cookieStr) { 693 var cookieArr = cookieStr.split(';'); 694 var safeCookieStr = ""; 695 696 for (var i=0; i<cookieArr.length; i++) { 697 var value = cookieArr[i].split('=')[1]; 698 699 if (!n_hasUnsafeCookieValue(value) && cookieArr[i] != " ") { 700 safeCookieStr += cookieArr[i] + ";"; 701 } 702 } 703 704 return safeCookieStr; 705} 706 707 708/* Click Logging */ 709function n_click_logging(url) 710{ 711 if ( _n_sid == "07010100000" ) 712 return; 713 714 var argc = n_click_logging.arguments.length; 715 var argv = n_click_logging.arguments; 716 717 var _n_request = url; 718 719 var _nr = n_getReferrer(); 720 var _n_referrer = (1 < argc) ? argv[1] : _nr; 721 var c1 = (2 < argc) ? argv[2] : null; 722 var _n_cookie = n_makeCookieSafe(n_getCookieStr()); 723 var _n_agent = navigator.userAgent; 724 var _n_title = top.document.title.toString(); 725 var _n_og_title = ' '; 726 727 if(document.getElementsByTagName('meta').length != 0 ){ 728 if(document.querySelector("meta[property='og:title']") != null) { 729 var _n_og_title = document.querySelector("meta[property='og:title']").getAttribute("content"); // og:title apeding logging ljk_20190913 730 } 731 } 732 733 734 var _n_target_url = _n_ls + 735 "?" + 736 "d=" + "001" + 737 _n_custom_pipe + "dv=" + Math.random() + 738 _n_custom_pipe + "ver=1.0.0" + 739 _n_custom_pipe + "sid=" + n_encodeStr(_n_sid) + 740 _n_custom_pipe + "r=" + n_encodeStr(_n_request) + 741 /* URL _n_request ,_n_title, _n_sid */ 742 "&" +"_n_request=" + n_encodeStr2(_n_request) + 743 "&" +"_n_title=" + n_encodeStr2(_n_title) + 744 745 "&" +"_n_og_title=" + n_encodeStr2(_n_og_title) + // og:title apeding logging ljk_20190913 746 747 "&" +"_n_referrer=" + n_encodeStr2(_n_referrer) + 748 "&" +"_n_sid=" + n_encodeStr2(_n_sid) + 749 _n_custom_pipe + "rf=" + n_encodeStr(_n_referrer) + 750 _n_custom_pipe + "c=" + n_encodeStr(_n_cookie) + 751 _n_custom_pipe + "a=" + n_encodeStr(_n_agent); 752 753 if ( c1 != null ) { 754 _n_target_url += _n_custom_pipe + "_n_p1=" + c1; 755 } 756 757 _n_click_logging_num++; 758 if ( _n_use_async ) { 759 n_load_async(_n_target_url, _n_img_timeout_millis); 760 } else if ( _n_use_img_timeout ) { 761 n_loadImage(_n_click_images[_n_click_logging_num % _n_click_logging_max], _n_target_url, "#", _n_img_timeout_millis); 762 } else { 763 n_loadImageSimple(_n_click_images[_n_click_logging_num % _n_click_logging_max], _n_target_url); 764 } 765 //_n_click_images[_n_click_logging_num % _n_click_logging_max].src = _n_target_url; 766} 767 768function n_get_channel_cookieparam() { 769 var src; 770 var keyword; 771 var convdate; 772 var convday; 773 var mid; 774 775 var retStr = ""; 776 777 src = n_GetCookie(_n_src_cookie); 778 keyword = n_GetCookie(_n_keyword_cookie); 779 convdate = n_GetCookie(_n_date_cookie, true); 780 mid = n_GetCookie(_n_mid_cookie); 781 782 var current = new Date(); 783 if ( convdate == null ) { 784 convday = 0; 785 } 786 else { 787 convdate = new Date(convdate); 788 convday = Math.floor((current.getTime() + 32400000) / 1000 / 60 / 60 / 24) - Math.floor((convdate.getTime() + 32400000) / 1000 / 60 / 60 / 24); 789 } 790 791 if ( convday <= 0 ) convday = 0; 792 if ( mid == null) mid = "0"; 793 if ( src == null) src = "1"; 794 795 retStr += _n_custom_pipe + _n_mid_param + "=" + mid; 796 retStr += _n_custom_pipe + _n_src_param + "=" + src; 797 if ( keyword != null ) retStr += _n_custom_pipe + _n_keyword_param + "=" + keyword; 798 retStr += _n_custom_pipe + _n_convday_param + "=" + convday; 799 800 return retStr; 801} 802 803function n_common_logging(_req, _ref, _title) { 804 805 var _n_request = _req; 806 var _n_referrer = _ref; 807 var _n_cookie = n_makeCookieSafe(n_getCookieStr()); 808 var _n_agent = navigator.userAgent; 809 var _n_title = _title; 810 811 if(document.getElementsByTagName('meta').length != 0 ){ 812 var _n_og_title = document.querySelector("meta[property='og:title']").getAttribute("content"); // og:title apeding logging ljk_20190913 813 } 814 815 /* CPC */ 816 if ( typeof (_n_use_cpc ) != "undefined" && _n_use_cpc ) { 817 var convType = ""; 818 var convKwd = "";
819 var requestTemp = ""; 820 821 /* Domain */ 822 var domain = ""; 823 824 if ( (typeof _n_domain)!="undefined" && _n_domain != "" ) { 825 domain = _n_domain; 826 } 827 else { 828 domain = n_getDomain(); 829 } 830 831 convType = n_GetCookie(_n_cookie_convtype, false); 832 833 if ( convType != "" && convType != null) { 834 requestTemp += _n_cookie_convtype + "=" + n_encodeStr(convType); 835 836 n_DeleteCookie(_n_cookie_convtype, "/", domain); 837 } 838 839 convKwd = n_GetCookie(_n_cookie_convkwd, true); 840 841 if ( convKwd != "" && convKwd != null) { 842 requestTemp += "&" + _n_cookie_convkwd + "=" + convKwd; 843 844 n_DeleteCookie(_n_cookie_convkwd, "/", domain); 845 } 846 847 if ( requestTemp != "" ) { 848 if ( _n_request.indexOf("?") != -1 ) { 849 _n_request += "&" + requestTemp; 850 } else { 851 _n_request += "?" + requestTemp; 852 } 853 } 854 } 855 856 /* Make URL Parameter */ 857 var _n_target_url = _n_ls + 858 "?" + 859 "d=" + "001" + 860 _n_custom_pipe + "dv=" + Math.round(Math.random()*1999083012) + 861 _n_custom_pipe + "ver=1.0.0" + 862 _n_custom_pipe + "sid=" + n_encodeStr(_n_sid) + 863 _n_custom_pipe + "r=" + n_encodeStr(_n_request) + 864 _n_custom_pipe + "rf=" + n_encodeStr(_n_referrer) + 865 _n_custom_pipe + "c=" + n_encodeStr(_n_cookie) + 866 _n_custom_pipe + "a=" + n_encodeStr(_n_agent); 867 868 if ( (typeof _n_show_title)!="undefined" && _n_show_title ) 869 _n_target_url += _n_custom_pipe + "t=" + n_paramEncodeStr(_n_title); 870 871 872 if ( n_Logging_P_UID() ) { 873 _n_target_url += _n_custom_pipe + "_n_p_uid=" + n_paramEncodeStr(_n_p_uid); 874 } 875 876 877 //set custom param 878 n_Logging_M(); 879 n_Logging_P(); 880 for(var n_pk in _n_custom_param) { 881 var n_pv = _n_custom_param[n_pk]; 882 _n_target_url += _n_custom_pipe + n_pk + "=" + n_paramEncodeStr(n_pv); 883 } 884 /* URL _n_request ,_n_title, _n_sid */ 885 _n_target_url += _n_custom_pipe +"_n_request=" + n_encodeStr2(_n_request); 886 _n_target_url += _n_custom_pipe +"_n_title=" + n_encodeStr2(_n_title); 887 888 _n_target_url += _n_custom_pipe +"_n_og_title=" + n_encodeStr2(_n_og_title); // og:title apeding logging ljk_20190913 889 890 _n_target_url += _n_custom_pipe +"_n_referrer=" + n_encodeStr2(_n_referrer); 891 _n_target_url += _n_custom_pipe +"_n_sid=" + n_encodeStr2(_n_sid); 892 893 894 /* Cookie Information */ 895 var info_cookie = ""; 896 if ( (typeof _n_info1_cookie)!="undefined" && _n_info1_cookie != "" ) { 897 info_cookie = n_GetCookie(_n_info1_cookie,false); 898 if ( info_cookie != null && info_cookie != "" ) { 899 _n_target_url += _n_custom_pipe + _n_info1_cookie + "=" + n_encodeStr(info_cookie); 900 } 901 } 902 if ( (typeof _n_info2_cookie)!="undefined" && _n_info2_cookie != "" ) { 903 info_cookie = n_GetCookie(_n_info2_cookie,false); 904 if ( info_cookie != null && info_cookie != "" ) { 905 _n_target_url += _n_custom_pipe + _n_info2_cookie + "=" + n_encodeStr(info_cookie); 906 } 907 } 908 if ( (typeof _n_info3_cookie)!="undefined" && _n_info3_cookie != "" ) { 909 info_cookie = n_GetCookie(_n_info3_cookie,false); 910 if ( info_cookie != null && info_cookie != "" ) { 911 _n_target_url += _n_custom_pipe + _n_info3_cookie + "=" + n_encodeStr(info_cookie); 912 } 913 } 914 if ( (typeof _n_info4_cookie)!="undefined" && _n_info4_cookie != "" ) { 915 info_cookie = n_GetCookie(_n_info4_cookie,false); 916 if ( info_cookie != null && info_cookie != "" ) { 917 _n_target_url += _n_custom_pipe + _n_info4_cookie + "=" + n_encodeStr(info_cookie); 918 } 919 } 920 if ( (typeof _n_info5_cookie)!="undefined" && _n_info5_cookie != "" ) { 921 info_cookie = n_GetCookie(_n_info5_cookie,false); 922 if ( info_cookie != null && info_cookie != "" ) { 923 _n_target_url += _n_custom_pipe + _n_info5_cookie + "=" + n_encodeStr(info_cookie); 924 } 925 } 926 if ( (typeof _n_info6_cookie)!="undefined" && _n_info6_cookie != "" ) { 927 info_cookie = n_GetCookie(_n_info6_cookie,false); 928 if ( info_cookie != null && info_cookie != "" ) { 929 _n_target_url += _n_custom_pipe + _n_info6_cookie + "=" + n_encodeStr(info_cookie); 930 } 931 } 932 if ( (typeof _n_info7_cookie)!="undefined" && _n_info7_cookie != "" ) { 933 info_cookie = n_GetCookie(_n_info7_cookie,false); 934 if ( info_cookie != null && info_cookie != "" ) { 935 _n_target_url += _n_custom_pipe + _n_info7_cookie + "=" + n_encodeStr(info_cookie); 936 } 937 } 938 939 940 /* Inflow Channel */ 941 if ( (typeof _n_use_channel) != "undefined" && _n_use_channel == true ) { 942 943 var channelparam = ""; 944 var channelflag = false; 945 946 if ( (typeof _n_f_buyconv) != "undefined" && _n_f_buyconv == true) {
947 channelparam = n_get_channel_cookieparam() 948 _n_target_url += _n_custom_pipe + _n_ptype_param + "=2"; 949 channelflag = true; 950 } else if ( (typeof _n_f_subscriptionconv) != "undefined" && _n_f_subscriptionconv == true) { 951 channelparam = n_get_channel_cookieparam() 952 _n_target_url += _n_custom_pipe + _n_ptype_param + "=3"; 953 channelflag = true; 954 } else if ( (typeof _n_f_conv1) != "undefined" && _n_f_conv1 == true) { 955 channelparam = n_get_channel_cookieparam() 956 _n_target_url += _n_custom_pipe + _n_ptype_param + "=4"; 957 channelflag = true; 958 } else if ( (typeof _n_f_conv2) != "undefined" && _n_f_conv2 == true) { 959 channelparam = n_get_channel_cookieparam() 960 _n_target_url += _n_custom_pipe + _n_ptype_param + "=5"; 961 channelflag = true; 962 } else if ( (typeof _n_f_conv3) != "undefined" && _n_f_conv3 == true) { 963 channelparam = n_get_channel_cookieparam() 964 _n_target_url += _n_custom_pipe + _n_ptype_param + "=6"; 965 channelflag = true; 966 } 967 968 if ( channelflag ) { 969 var domain = ""; 970 if ( (typeof _n_domain)!="undefined" && _n_domain != "" ) { 971 domain = _n_domain; 972 } 973 else { 974 domain = n_getDomain(); 975 } 976 977 //n_DeleteCookie(_n_date_cookie, "/", domain); 978 //n_DeleteCookie(_n_mid_cookie, "/", domain); 979 //n_DeleteCookie(_n_src_cookie, "/", domain); 980 //n_DeleteCookie(_n_keyword_cookie, "/", domain); 981 982 _n_target_url += _n_custom_pipe + _n_acqmoney_param + "=" + n_getParam(_n_acqmoney_param); 983 984 _n_target_url += channelparam; 985 986 } 987 988 n_channel_search(); 989 } 990 991 if ( typeof (_n_use_cpc ) != "undefined" && _n_use_cpc ) { 992 n_cpc_search(); 993 } 994 if ( _n_use_async ) { 995 n_load_async(_n_target_url, _n_img_timeout_millis); 996 } else if ( _n_use_img_timeout ) { 997 n_loadImage(_n_logging_image, _n_target_url, "#", _n_img_timeout_millis); 998 } else { 999 n_loadImageSimple(_n_logging_image, _n_target_url); 1000 } 1001 1002 //_n_logging_image.src = _n_target_url; 1003 1004 /* Call User Logging Function */ 1005 n_userattr_logging(); 1006} 1007 1008 1009/* Logging Function */ 1010function n_logging() { 1011 1012 /* Customer ID Test */ 1013 if ( _n_sid == "07010100000" ) 1014 return; 1015 1016 /* Call Common Logging Function */ 1017 if ( document.location.protocol == "file:" ) { 1018 n_common_logging( document.location.pathname + document.location.search, n_getReferrer(), document.title.toString() ); 1019 } else { 1020 n_common_logging( document.location.href, n_getReferrer(), document.title.toString() ); 1021 } 1022} 1023 1024/* Parent Logging */ 1025function n_parent_logging() { 1026 1027 if ( _n_sid == "07010100000" ) 1028 return; 1029 1030 var parent_href = ""; 1031 var parent_ref = ""; 1032 var parent_title = ""; 1033 1034 try { 1035 parent_href = top.document.location.href; 1036 parent_ref = top.document.referrer; 1037 parent_title = top.document.title.toString(); 1038 n_common_logging(parent_href, parent_ref, parent_title); 1039 } 1040 catch(e) { 1041 logger.log('Error nWeblog init error: ' + e); 1042 } 1043} 1044 1045function n_getParam(name) { 1046 var param = name + "="; 1047 var url = "" + self.document.location.search; 1048 var turl = ""; 1049 1050 eval("try{ turl=top.document.location.search; }catch(_e){ logger.log('Error nWeblog init error: ');}"); 1051 1052 url = url + "&" + turl; 1053 1054 if ( url.indexOf(param) != -1) { 1055 var x = url.indexOf(param) + param.length; 1056 var y = url.substr(x).indexOf("&"); 1057 if ( y != -1 ) return url.substring(x, x+y); 1058 else return url.substr(x); 1059 } 1060 1061 return ""; 1062} 1063 1064/* Channel Search */ 1065function n_channel_search() { 1066 var ptype = n_getParam(_n_ptype_param); 1067 1068 var keyword = ""; 1069 1070 if ( ptype == "1") { 1071 var currentDate = new Date(); 1072 var mid = n_getParam(_n_mid_param); 1073 var src = n_getParam(_n_src_param); 1074 1075 1076 if ( src == "2" ) { 1077 keyword = n_getParam("OVKEY"); 1078 } else if ( src == "3") { 1079 keyword = n_getParam("NVKWD"); 1080 } else { 1081 keyword = n_getParam(_n_keyword_param); 1082 } 1083 1084 n_create_channel_cookie(mid, src, currentDate, keyword); 1085 } 1086} 1087 1088function n_create_channel_cookie(mid, src, date, keyword) { 1089 var domain = ""; 1090 var expiredDate = new Date(); 1091 1092 if ( (typeof _n_domain)!="undefined" && _n_domain != "" ) { 1093 domain = _n_domain; 1094 } 1095 else { 1096 domain = n_getDomain(); 1097 } 1098 1099 if ( mid == "") mid = "0"; 1100 if ( src == "") src = "1"; 1101 1102 expiredDate.setTime(Math.floor((date.getTime() + 32400000) / 86400000) * 86400000 - 32400000 + 1000 * 60 * 60 * 24 * (_n_max_conv_day + 1) - 1); 1103 1104 n_SetCookie(_n_date_cookie, date, expiredDate, "/", domain); 1105 n_SetCookie(_n_mid_cookie, mid, expiredDate, "/", domain); 1106 n_SetCookie(_n_src_cookie, src, expiredDate, "/", domain); 1107 1108 if ( keyword != "") { 1109 n_SetCookie(_n_keyword_cookie, keyword, expiredDate, "/", domain); 1110 } else { 1111 n_DeleteCookie(_n_keyword_cookie, "/", domain); 1112 } 1113} 1114 1115 1116function n_set_conversion(convtype) { 1117 1118 _n_f_conv = true; 1119 if ( convtype == "BUYCONV") { 1120 _n_f_buyconv = true; 1121 } else if ( convtype == "SUBSCRIPTIONCONV") { 1122 _n_f_subscriptionconv = true; 1123 } else if ( convtype == "USERDEF1CONV") { 1124 _n_f_conv1 = true; 1125 } else if ( convtype == "USERDEF2CONV") { 1126 _n_f_conv2 = true; 1127 } else if ( convtype == "USERDEF3CONV") { 1128 _n_f_conv3 = true; 1129 } 1130 1131} 1132 1133/* CPC SEARCH */ 1134function n_cpc_search() { 1135 1136 var ref = n_getReferrer(); 1137 var tref = ""; 1138 1139 eval("try{ tref = top.document.referrer; }catch(_e){ logger.log('Error nWeblog init error: ');}"); 1140 1141 var bFormat = false; 1142 1143 if ( ref == tref ) { 1144 ref = tref; 1145 bFormat = true; 1146 } 1147 1148 if ( ref == 'undefined' ) ref = ""; 1149 1150 var buykeyword = ""; 1151 var nv_ar = ""; 1152 var cpc_src = ""; 1153 1154 /* Domain */ 1155 var domain = ""; 1156 1157 if ( (typeof _n_domain)!="undefined" && _n_domain != "" ) { 1158 domain = _n_domain; 1159 } 1160 else { 1161 domain = n_getDomain(); 1162 } 1163 1164 if ( bFormat ) { 1165 var expiredDate = new Date(); 1166 1167 expiredDate.setTime(expiredDate.getTime() + 1000 * 60 * 60 * 24 * _n_max_conv_day); 1168 1169 buykeyword = n_getParam("OVKEY"); 1170 1171 if ( buykeyword != "" ) { 1172 // ADD COOKIE (OVERTURE)
1173 n_SetCookie(_n_cookie_convtype, "OVERTURE", expiredDate, "/", domain); 1174 n_SetCookie(_n_cookie_convkwd, buykeyword, expiredDate, "/", domain); 1175 } 1176 1177 buykeyword = n_getParam("NVADKWD"); 1178 1179 if ( buykeyword != "") { 1180 nv_ar = n_getParam("NVAR"); 1181 1182 n_SetCookie(_n_cookie_convtype, "NAVER_" + nv_ar, expiredDate, "/", domain); 1183 n_SetCookie(_n_cookie_convkwd, buykeyword, expiredDate, "/", domain); 1184 1185 1186// if ( nv_ar == "PL" || nv_ar == "BZ" ) { 1187// // ADD COOKIE ( NAVER CPC ); 1188// n_SetCookie(_n_cookie_convtype, "NAVERCPC", expiredDate, "/", domain); 1189// n_SetCookie(_n_cookie_convkwd, buykeyword, expiredDate, "/", domain); 1190// } else if ( nv_ar == "PSLK" ) { 1191// // ADD COOKIE ( NAVER CPT ); 1192// n_SetCookie(_n_cookie_convtype, "NAVERCPT", expiredDate, "/", domain); 1193// n_SetCookie(_n_cookie_convkwd, buykeyword, expiredDate, "/", domain); 1194// } 1195 } 1196 1197 buykeyword = n_getParam("nkwd"); 1198 1199 if ( buykeyword != "") { 1200 cpc_src = n_getParam("nsrc"); 1201 1202 if ( cpc_src == "daum") { 1203 // ADD COOKIE ( DAUM ); 1204 n_SetCookie(_n_cookie_convtype, "DAUM", expiredDate, "/", domain); 1205 n_SetCookie(_n_cookie_convkwd, buykeyword, expiredDate, "/", domain); 1206 } else if ( cpc_src == "google") { 1207 // ADD COOKIE ( GOOGLE ); 1208 n_SetCookie(_n_cookie_convtype, "GOOGLE", expiredDate, "/", domain); 1209 n_SetCookie(_n_cookie_convkwd, buykeyword, expiredDate, "/", domain); 1210 } else if ( cpc_src == "nate") { 1211 // ADD COOKIE ( NATE ); 1212 n_SetCookie(_n_cookie_convtype, "NATE", expiredDate, "/", domain); 1213 n_SetCookie(_n_cookie_convkwd, buykeyword, expiredDate, "/", domain); 1214 } 1215 } 1216 } 1217} 1218 1219function n_isIpType(val) { 1220 if ( val.length != 4 ) return false; 1221 1222 for ( var i=0; i < 4; i++) { 1223 if ( !n_isInteger(val[i]) ) { 1224 return false; 1225 } 1226 } 1227 1228 return true; 1229} 1230/* @Deprecated 7.0.1.1 */ 1231function n_isInteger(val) { 1232 if (n_isBlank(val)) { 1233 return false; 1234 } 1235 1236 for ( var i=0; i < val.length;i++) { 1237 if ( !n_isDigit(val.charAt(i))) { 1238 return false; 1239 } 1240 } 1241 1242 return true; 1243} 1244/* @Deprecated 7.0.1.1 */ 1245function n_isDigit(num) { 1246 if ( num.length>1) { 1247 return false; 1248 } 1249 1250 var string="1234567890"; 1251 1252 if ( string.indexOf(num) != -1) { 1253 return true; 1254 } 1255 1256 return false; 1257} 1258/* @Deprecated 7.0.1.1 */ 1259function n_isBlank(val) { 1260 if (val == null) { 1261 return true; 1262 } 1263 1264 for (var i=0; i < val.length; i++) { 1265 if ( (val.charAt(i) != ' ') && (val.charAt(i) != "\t")&&(val.charAt(i) != "\n") && (val.charAt(i)!= "\r")) { 1266 return false; 1267 } 1268 } 1269 1270 return true; 1271}
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.