1$(function(){ 2 if($(".menuCategory > li").length==0){ 3 $(".ec-base-tab.typeMenu").hide(); //ì¤ë¶ë¥ ìì¼ë©´ ìì ì¨ê¹ - ì í 4 }else { 5 $(".menuCategory li").each(function(i){ 6 var ulElChk = $(this).find('ul').length; 7 if(ulElChk == 0){ 8 $(this).find('.iconWrap').remove(); 9 } 10 }); 11 12 var domWidth = $(document).width(); 13 if(domWidth < 1024){ 14 if($(".display_tablet_only .menuCategory > li").length==0){ 15 $(".ec-base-tab.typeMenu").hide(); //Mobileìì ë§ì§ë§ë¶ë¥ ìì¼ë©´ ìì ì¨ê¹ - ì í 16 } 17 18 $(".menuCategory .iconWrap").on('click', function(e){ 19 var target = $(this).closest('li'); 20 var ulEl = returnTarget(target); 21 var ulElchk = ulEl.hasClass('active'); 22 23 if(ulElchk){ 24 var classChk = $(this).closest('ul').hasClass('active'); 25 if(!classChk){ heightCheck(ulEl, "out"); } 26 mouseEvent(target, "out"); 27 28 target.find('ul').removeClass('active'); 29 }else{ 30 heightCheck(ulEl, "hover"); 31 mouseEvent(target, "hover"); 32 } 33 target.siblings('li').find('ul').removeClass('active'); 34 35 }); 36 }else{ 37 $(".menuCategory li").hover(function() { 38 mouseEvent($(this), "hover"); 39 }, function(){ 40 mouseEvent($(this), "out"); 41 }); 42 } 43 }; 44 45 function mouseEvent(_this, str){ 46 var target = returnTarget(_this); 47 str == "hover" ? target.addClass('active') : target.removeClass('active'); 48 } 49 50 function returnTarget(_this){ 51 var target = _this.children('ul'); 52 var ulElChk = target.length; 53 if(ulElChk == 0){ target = _this.children('.button').children('ul') } 54 55 return target; 56 } 57 58 function heightCheck(ulEl, str){ 59 if(str == "out"){ 60 $('.menuCategory.menu').css({"height":""}); 61 }else{ 62 var height = ulEl.outerHeight(true); 63 var menuHeight = $('.menuCategory .menu li').outerHeight(true); 64 var cul = (menuHeight+height)+10; 65 66 $('.menuCategory.menu').css({"height":cul}); 67 } 68 }; 69 70}); 71 72document.addEventListener("DOMContentLoaded", function() { 73 try { 74 var currentUrl = window.location.href; 75 var matchCategory = currentUrl.match(/\/category\/(\d+)/); 76 var matchCateNo = currentUrl.match(/cate_no=(\d+)/); 77 var storedCode = localStorage.getItem("entryCode"); 78 var expectedCode = "260810"; // 8ì í¸ì ì½ëë¡ ê°±ì 79 80 if ((matchCategory && matchCategory[1] === '871') || (matchCateNo && matchCateNo[1] === '871')) { 81 // ì¤ì ë°°ë ì´ë¯¸ì§ ì리먼í¸ë¥¼ ëª ìì ì¼ë¡ ì í (id/classë ì¤ì íì´ì§ì ë§ê² íì¸ íì) 82 var introImg = document.getElementById("img"); 83 if (introImg) { 84 introImg.src = '/mu_img/pc/260810_family_sale/260810_pc_intro.jpg'; 85 } 86 87 var codeOk = false; 88 try { 89 codeOk = !!storedCode && storedCode.trim() !== "" && storedCode.toUpperCase() === expectedCode; 90 } catch (e) { 91 codeOk = false; 92 } 93 94 if (!codeOk) { 95 window.location.href = "https://medipeel.co.kr/familysales.html"; 96 } 97 } 98 } catch (e) { 99 console.warn("code_check.js ì¤í ì¤ ì¤ë¥:", e); 100 } 101}); 102/** 103 * ì¹´í ê³ ë¦¬ 리ì¤í¸ ìí ì ë ¬ 104 */ 105var aUrl = location.href.split('?'); 106var sQueryString = aUrl[1]; 107var orgHeaderHeight = 0; 108var selAdd = 0; 109var maxTime = 5; 110 111/** 112 * íë¼ë¯¸í°ê° ììê²½ì°ìë§ ì²ë¦¬ 113 */ 114$(function(){ 115 if (sQueryString && sQueryString.indexOf('sort_method') > -1) { 116 for (var i=0; i<$('#selArray option').length; i++) { 117 if ($('#selArray option').eq(i).val().indexOf(sQueryString) > -1) { 118 $('#selArray option').eq(i).prop("selected", true); 119 120 orgHeaderHeight = $('#header').outerHeight(true); 121 fixedClassCheck(); 122 } 123 } 124 } 125}); 126 127$('#selArray').on('change', function() { 128 if ($('#selArray').val()) { 129 location.href=$('#selArray').val(); 130 } 131}); 132 133function goThumg(url) { 134 location.href = url+'?'+sQueryString; 135} 136 137function fixedClassCheck(){ 138 var fixedBol = $('#header').hasClass('fixed'); 139 if(!fixedBol){ 140 if(selAdd < maxTime){ setTimeout(fixedClassCheck,100); } 141 selAdd++; 142 }else{ 143 var fixedHeader = $('#header').find('.navigation').outerHeight(true), 144 scrollValue = $(document).scrollTop(), 145 scrollTop = scrollValue - (orgHeaderHeight+fixedHeader); 146 147 if(scrollTop > 0){ $(document).scrollTop(scrollTop); } 148 } 149} 150 151 152/* 210910 ìì í */ 153jQuery(document).ready(function() { 154 /* ì¶ì²ìí ìíìì */ 155 jQuery('.xans-product-listrecommend ul .thumbnail .badge').each(function(index) { 156 jQuery(this).append('BEST'); 157 jQuery("span", this).append(index+1); 158 }); 159 160 /* ì ìí ìíìì */ 161 jQuery('.xans-product-listnew ul .thumbnail .badge').each(function(index) { 162 jQuery(this).append('NEW'); 163 jQuery("span", this).append(index+1); 164 }); 165 166 /* ìíë¶ë¥ ìëì¤í¬ë¡¤ ì¶ë ¥ */ 167 var product_scroll = jQuery('.xans-product-normalpackage').hasClass('product_scroll'); 168 if ( jQuery('.xans-product-listnormal').hasClass('ec-base-product') == true ) { // 리ì¤í¸ì ìíì´ ìë¤ë©´ 169 if(!product_scroll){ // product_scroll í´ëì¤ê° ìë¤ë©´ 170 } else { 171 jQuery('.xans-product-normalpackage .more').hide(); 172 jQuery('.xans-product-normalpackage .more').css('height','0px'); 173 jQuery('.xans-product-normalpackage .more').css('visibility','hidden'); 174 var product_stopping = false;
175 var product_end = false; 176 jQuery(window).scroll(function () { 177 var product_cst = jQuery(window).scrollTop(); 178 var product_csb = product_cst + jQuery(window).height(); 179 var product_hooker = jQuery('.xans-product-listmore').offset().top; 180 if(product_hooker <= product_csb) { 181 if(product_stopping === true || product_end === true) return false; 182 jQuery('.more .btnMore').trigger('click'); // ë보기 í´ë¦ 183 product_stopping = true; 184 } else { 185 product_stopping = false; 186 } 187 }); 188 } 189 } 190}); 191 192/** 193 * ì¡°ê±´ë³ ê²ì ê¸°ë¥ ì¤í¬ë¦½í¸ 194 */ 195$(function() { 196 var sParentElement = 'select.SecondSelect'; 197 $('select.FirstSelect').on('change', function() { 198 var iGroupNo = $(this).find('option:selected').val(); 199 if (iGroupNo > 0) { 200 $.ajax({ 201 url : '/product/provider/selectsearch.xml?GroupNo=' + iGroupNo, 202 dataType : 'text', 203 success : function(data){ 204 if ( window.DOMParser ) { 205 tmp = new DOMParser(); 206 xml = tmp.parseFromString( data , "text/xml" ); 207 } else { 208 xml = new ActiveXObject( "Microsoft.XMLDOM" ); 209 xml.async = "false"; 210 xml.loadXML( data ); 211 } 212 213 $(sParentElement).html(''); 214 getOptionElement('','-ì¸ë¶í목ì í-').appendTo(sParentElement); 215 var nodes = $(xml).find('searchkey'); 216 for ( var x = 0 ; x < nodes.length ; x++) { 217 getOptionElement($(nodes[x]).find('search_value').text(),$(nodes[x]).find('search_value').text()).appendTo(sParentElement); 218 } 219 } 220 }); 221 } 222 }); 223 $('a.SelectSearch').on('click', function() 224 { 225 var sGroup = $('select.FirstSelect').val(); 226 var sItem = $('select.SecondSelect').val(); 227 if (!sGroup) { 228 alert('ì¡°ê±´ì ì íí´ ì£¼ì¸ì.'); 229 return false; 230 } 231 if (!sItem) { 232 alert('ì¸ë¶ í목ì ì íí´ ì£¼ì¸ì.'); 233 return false; 234 } 235 location.href = document.location.href.split('?')[0].split(document.domain)[1] + '?' + sSSUrl + '&sGroup=' + sGroup + '&sItem=' + sItem; 236 }); 237 238 function getOptionElement(sVal, sTitle) 239 { 240 return $("<option value='" + sVal + "'>" + sTitle + "</option>"); 241 } 242}); 243// ì¸ë¤ì¼ ì´ë¯¸ì§ ìë°ì¼ê²½ì° ê¸°ë³¸ê° ì¤ì 244$(window).on('load', function() { 245 246 $(".thumbnail img, img.thumbImage, img.bigImage").each(function($i,$item){ 247 var $img = new Image(); 248 $img.onerror = function () { 249 $item.src="//img.echosting.cafe24.com/thumb/img_product_big.gif"; 250 } 251 $img.src = this.src; 252 }); 253 254}); 255 256$(function(){ 257 // í ê¸ 258 $('div.eToggle .title').off('click').on('click', function() { 259 var toggle = $(this).parent('.eToggle'); 260 if(toggle.hasClass('disable') == false){ 261 $(this).parent('.eToggle').toggleClass('selected') 262 } 263 }); 264 265 $('dl.eToggle dt').on('click', function() { 266 $(this).toggleClass('selected'); 267 $(this).next('dd').toggleClass('selected'); 268 }); 269 270 //ì¥ë°êµ¬ë íì´ì§ ìëí¼ Type ë³ê²½ 271 $('[id^="quantity"]').each(function() { 272 $(this).get(0).type = 'tel'; 273 }); 274 275 // 모ë°ì¼ìì ê³µê¸ì¬ í ì´ë¸ th ê°ì ì¡°ì 276 $('.xans-mall-supplyinfo, .supplyInfo').find('table > colgroup').find('col').eq(0).width(98); 277 $('.xans-mall-supplyinfo, .supplyInfo').find('th, td').css({padding:'13px 10px 12px'}); 278 279 /** 280 * ë©ì¸ì¹´í ê³ ë¦¬ toggle 281 */ 282 $('.xans-product-listmain h2').on('click', function() { 283 var bClosed = !!$(this).data('is_closed'); 284 var sUrl; 285 if (bClosed) { 286 sUrl = "//img.echosting.cafe24.com/skin/mobile_ko_KR/layout/bg_title_close.gif"; 287 } else { 288 sUrl = "//img.echosting.cafe24.com/skin/mobile_ko_KR/layout/bg_title_open.gif"; 289 } 290 $(this).css('background-image', 'url("'+ sUrl +'")'); 291 $(this).siblings().toggle(); 292 $(this).parent().find('div.ec-base-paginate').toggle(); 293 $(this).parent().next('div.xans-product-listmore').toggle(); 294 $(this).data('is_closed', !bClosed); 295 }); 296 297 /* base header ê²ì ë ì´ì´ */ 298 $('#layout .header').find('.search .btnSearch').on('click', function(){ 299 var $baseHeader = $('#layout .header'); 300 $baseHeader.addClass('open'); 301 $('#dimmedSlider').one('click', function(){ 302 $baseHeader.removeClass('open'); 303 }); 304 }); 305 306 /** 307 * ìë¨íë²í¼ 308 */ 309 var globalTopBtnScrollFunc = function() { 310 // íë²í¼ ê´ë ¨ë³ì 311 var $btnTop = $('#btnTop'); 312 313 $(window).scroll(function() { 314 try { 315 var iCurScrollPos = $(this).scrollTop(); 316 317 if (iCurScrollPos > ($(this).height() / 2)) { 318 $btnTop.fadeIn('fast'); 319 } else { 320 $btnTop.fadeOut('fast'); 321 } 322 } catch(e) { } 323 }); 324 }; 325 326 /** 327 * 구매ë²í¼ 328 */ 329 var globalBuyBtnScrollFunc = function() { 330 // 구매ë²í¼ ê´ë ¨ë³ì 331 var sFixId = $('#orderFixItem').length > 0 ? 'orderFixItem' : 'fixedActionButton', 332 $area = $('#orderFixArea'), 333 $item = $('#' + sFixId + '').not($area); 334 335 $(window).on('scroll', function() { 336 try { 337 // 구매ë²í¼ ê´ë ¨ë³ì
338 var iCurrentHeightPos = $(this).scrollTop() + $(this).height(), 339 iButtonHeightPos = $item.offset().top; 340 341 if (iCurrentHeightPos > iButtonHeightPos || iButtonHeightPos < $(this).scrollTop() + $item.height()) { 342 if (iButtonHeightPos < $(this).scrollTop() - $item.height()) { 343 $area.fadeIn('fast'); 344 } else { 345 $area.hide(); 346 } 347 } else { 348 $area.fadeIn('fast'); 349 } 350 } catch(e) { } 351 }); 352 }; 353 354 globalTopBtnScrollFunc(); 355 globalBuyBtnScrollFunc(); 356}); 357 358// ê³µíµë ì´ì´íì ì¤í 359var globalLayerOpenFunc = function(_this) { 360 this.id = $(_this).data('id'); 361 this.param = $(_this).data('param'); 362 this.basketType = $('#basket_type').val(); 363 this.url = $(_this).data('url'); 364 this.layerId = 'ec_temp_mobile_layer'; 365 this.layerIframeId = 'ec_temp_mobile_iframe_layer'; 366 367 var _this = this; 368 369 function paramSetUrl() { 370 if (this.param) { 371 // if isset param 372 } else { 373 this.url = this.basketType ? this.url + '?basket_type=' + this.basketType : this.url; 374 } 375 }; 376 377 if (this.url) { 378 window.ecScrollTop = $(window).scrollTop(); 379 $.ajax({ 380 url : this.url, 381 success : function (data) { 382 if (data.indexOf('404 íì´ì§ ìì') == -1) { 383 // ìë¤ë©´ ìì 384 try { $(_this).remove(); } catch ( e ) { } 385
386 var $layer = $('<div>', { 387 html: $("<iframe>", { src: _this.url, id: _this.layerIframeId, scrolling: 'auto', css: { width: '100%', height: '100%', overflowY: 'auto', border: 0 } } ), 388 id: _this.layerId, 389 css : { position: 'absolute', top: 0, left:0, width: '100%', height: $(window).height(), 'z-index': 9999 } 390 }); 391 392 $('body').append($layer); 393 $('html, body').css({'overflowY': 'hidden', height: '100%', width: '100%'}); 394 $('#' + this.layerId).show(); 395 } 396 } 397 }); 398 } 399}; 400 401// ê³µíµë ì´ì´íì ë«ê¸° 402var globalLayerCloseFunc = function() { 403 this.layerId = 'ec_temp_mobile_layer'; 404 405 if (window.parent === window) 406 self.close(); 407 else { 408 parent.$('html, body').css({'overflowY': 'auto', height: 'auto', width: '100%'}); 409 parent.$('html, body').scrollTop(parent.window.ecScrollTop); 410 parent.$('#' + this.layerId).remove(); 411 } 412}; 413 414/** 415 * document.location.href split 416 * return array Param 417 */ 418var getQueryString = function(sKey) 419{ 420 var sQueryString = document.location.search.substring(1); 421 var aParam = {}; 422 423 if (sQueryString) { 424 var aFields = sQueryString.split("&"); 425 var aField = []; 426 for (var i=0; i<aFields.length; i++) { 427 aField = aFields[i].split('='); 428 aParam[aField[0]] = aField[1]; 429 } 430 } 431 432 aParam.page = aParam.page ? aParam.page : 1; 433 return sKey ? aParam[sKey] : aParam; 434}; 435 436// PCë²ì ë°ë¡ ê°ê¸° 437var isPCver = function() { 438 var sUrl = window.location.hostname; 439 var aTemp = sUrl.split("."); 440 441 var pattern = /^(mobile[\-]{2}shop[0-9]+)$/; 442 443 if (aTemp[0] == 'm' || aTemp[0] == 'skin-mobile' || aTemp[0] == 'mobile') { 444 sUrl = sUrl.replace(aTemp[0]+'.', ''); 445 } else if (pattern.test(aTemp[0]) === true) { 446 var aExplode = aTemp[0].split('--'); 447 aTemp[0] = aExplode[1]; 448 sUrl = aTemp.join('.'); 449 } 450 window.location.href = '//'+sUrl+'/?is_pcver=T'; 451}; 452 453/* ëìë§ */ 454$('body').on('click', '.ec-base-tooltip-area .eTip', function(e){ 455 var findArea = $($(this).parents('.ec-base-tooltip-area')); 456 var findTarget = $($(this).siblings('.ec-base-tooltip')); 457 var findTooltip = $('.ec-base-tooltip'); 458 $('.ec-base-tooltip-area').removeClass('show'); 459 $(this).parents('.ec-base-tooltip-area').first().addClass('show'); 460 findTooltip.hide(); 461 findTarget.show(); 462 e.preventDefault(); 463}); 464 465$('body').on('click', '.ec-base-tooltip-area .eClose', function(e){ 466 var findTarget = $(this).parents('.ec-base-tooltip').first(); 467 $('.ec-base-tooltip-area').removeClass('show'); 468 findTarget.hide(); 469 e.preventDefault(); 470}); 471 472$('.ec-base-tooltip-area').find('input').on('focusout', function() { 473 var findTarget = $(this).parents('.ec-base-tooltip-area').find('.ec-base-tooltip'); 474 $('.ec-base-tooltip-area').removeClass('show'); 475 findTarget.hide(); 476}); 477 478/** 479 * íì ì°½ì 리ì¬ì´ì¦ ê´ë ¨ 480 */ 481 482function setResizePopup() { 483 484 if(!$('#popup').length) return; 485 486 var iWrapWidth = $('#popup').width(); 487 var iWrapHeight = $('#popup').height(); 488 489 var iWindowWidth = $(window).width(); 490 var iWindowHeight = $(window).height(); 491 492 window.resizeBy(iWrapWidth - iWindowWidth, iWrapHeight - iWindowHeight); 493} 494setResizePopup(); 495 496// íì íì´ì§ ë¡ëê° ìë£ë íì 리ì¬ì´ì§ í¨ì를 ë¤ì í¸ì¶ 497$( window ).on('load', function() { 498 setResizePopup(); 499}); 500$(document).ready(function(){ 501 502 /* ************************************* 503 ** ** 504 ** COMMON ** 505 ** ** 506 ************************************* */ 507 508 prdChk(); 509 prdNo(); 510 prdBtn(); 511 muTopBnFunc(); 512 attachReplace(); 513 searchLayer(); 514 required(); 515 516 let header = $('#header.header'); 517 let btnQuickTop = $('.muQuick .toTop'); 518 let btnQuickBot = $('.muQuick .toBot'); 519 520 $(window).scroll(function() { 521 // ** ì¤í¬ë¡¤ ì´ë²¤í¸ ** // 522 if ($(window).scrollTop() <= 300) { 523 btnQuickTop.removeClass('on'); 524 btnQuickBot.addClass('on'); 525 header.removeClass('on'); 526 } 527 if ($(window).scrollTop() > 300) { 528 btnQuickBot.removeClass('on'); 529 btnQuickTop.addClass('on'); 530 header.addClass('on'); 531 } 532 }); 533 534 // ** ë©ì¸ / ìë¸íì´ì§ ë¶ë¦¬ ** // 535 if( $('body').hasClass('muMain') ){ 536 $('body').removeClass('muSub'); 537 }else{ 538 $('body').addClass('muSub'); 539 } 540 541 // GNB - ì ì íì ë§í¬ ì ê±° 542 let gnb1Dep = $('#header').find('li.xans-record-'); 543 gnb1Dep.each(function(){ 544 let gnb2DepWr = $(this).find('ul.sub-category'); 545 if(gnb2DepWr.length > 0){ 546 gnb2DepWr.siblings('a').removeAttr('href'); 547 } 548 }); 549 550 // ì±ë¶ì¹´í ê³ ë¦¬ì ìíì ë¤ë¥¸ ìí리ì¤í¸ìì ë¯¸ë ¸ì¶ [ì±ë¶ì¹´í ê³ ë¦¬ = '721'] 551 let prdWr = $('.xans-product'); 552 if(prdWr.length > 0){ 553 prdWr.find('[cate_no]').filter(function() { 554 return $(this).attr('cate_no') == '721'; 555 }).each(function() { 556 $(this).hide(); 557 }); 558 } 559 560}); 561 562function prdChk(){ 563 // ìí ì²´í¬ - íì , ì¶ì², ì ìí ìì´ì½ ì 무ì ë°ë¥¸ í´ëì¤ ì¶ê° 564 let prdIcon = $('.icoBx span'); 565 prdIcon.each(function(prdIcoIdx, prdIcons){ 566 let icoImg = $(this).find('img'); 567 if (icoImg.length > 0) { 568 let icoVal = icoImg.attr('alt'); 569 $(prdIcons).addClass('on').addClass(icoVal); 570 $(prdIcons).closest('.thumbnail').attr('value',icoVal); 571 } 572 });
573} 574 575function prdNo(){ 576 // ìíë²í¸ ì²´í¬ ë° ìí ìë 먼í¸ì ìíë²í¸ ìì± ì¶ê° 577 let prdNoWr = $('.thumbnail a'); 578 if(prdNoWr.length > 0){ 579 prdNoWr.each(function(){ 580 let findNo = $(this).attr('href'); 581 let prdArray = findNo.split('product_no='); 582 let cateArray = findNo.split('cate_no='); 583 584 if (prdArray.length > 1) { 585 let prdNo = prdArray[1].split('&')[0]; 586 $(this).closest('.xans-record-').attr('product_no', prdNo); 587 } 588 589 if (cateArray.length > 1) { 590 let cateNo = cateArray[1].split('&')[0]; 591 $(this).closest('.xans-record-').attr('cate_no', cateNo); 592 } 593 }); 594 } 595} 596 597function prdBtn() { 598 // ìí ì°í기 ì¥ë°êµ¬ë ë²í¼ 커ì¤í ì¸í 599 $('.prdbtn li img').each(function() { 600 let imgAttr = this.attributes; 601 for (var i = 0; i < imgAttr.length; i++) { 602 var attrNm = imgAttr[i].name; 603 var attrVal = imgAttr[i].value; 604 $(this).closest('li').attr(attrNm, attrVal).removeAttr('src'); 605 } 606 $(this).hide(); 607 }); 608} 609 610var muTopBnFunc = function(){ 611 // ìë¨ ë°°ë 612 $('.muTopBn .topBnClose').bind("click", function(){ 613 $('.muTopBn').animate({height: 0}, 500); 614 }); 615}; 616 617function copyUrl(){ 618 // ê³µì ë²í¼ ê¸°ë¥ ìë íì´ì§ì urlë³µì¬ ê¸°ë¥ 619 var url = ''; 620 var textarea = document.createElement("textarea"); 621 document.body.appendChild(textarea); 622 url = window.document.location.href; 623 textarea.value = url; 624 textarea.select(); 625 document.execCommand("copy"); 626 document.body.removeChild(textarea); 627 alert("URLì´ ë³µì¬ëììµëë¤."); 628} 629 630function attachReplace(){ 631 // ê²ìí ìì¸ - 첨ë¶íì¼ ì¬ë¬ê° ì¼ ë ',' ì ê±° 632 let attachWr = $('.attach'); 633 if(attachWr){ 634 attachWr.contents().filter(function() { 635 return this.nodeType === 3; 636 }).each(function() { 637 this.nodeValue = this.nodeValue.replace(',', ''); 638 }); 639 } 640} 641 642function searchLayer() { 643 // ê²ì ë ì´ì´ 644 console.log('í ì¤í¸ì¤ì ëë¤.11') 645 var btnSearchs = document.querySelector('.eSearch2'); 646 var btnClose = document.querySelector('.xans-layout-searchheader .btnClose'); 647 btnSearchs.addEventListener('click', function(e){ 648 e.preventDefault() 649 console.log('í ì¤í¸ì¤ì ëë¤.22') 650 document.body.classList.add('searchExpand'); 651 // document.body.classList.add('test0206'); 652 document.body.classList.remove('hidden'); 653 var input = document.querySelector('#keyword'); 654 //input.focus(); 655 }); 656 // btnSearchs.forEach( function(btnSearch) { 657 // }); 658 if(btnClose){ 659 btnClose.addEventListener('click', function(){ 660 document.body.classList.remove('searchExpand'); 661 }); 662 } 663 var dimmed = document.querySelector('.muDim'); 664 if(dimmed){ 665 handleDimmed(dimmed, document.body, 'searchExpand'); 666 } 667} 668function handleDimmed(target, element, className){ 669 target.addEventListener('click', function(){ 670 element.classList.remove(className); 671 }); 672} 673 674function required() { 675 // íì ìì± íì 676 var imgRequired = $('img.icoRequired'); 677 if( imgRequired.length > 0){ 678 imgRequired.hide(); 679 imgRequired.parent().addClass('required'); 680 } 681} 682$(function(){ 683 if (typeof(EC_SHOP_MULTISHOP_SHIPPING) != "undefined") { 684 var sShippingCountryCode4Cookie = 'shippingCountryCode'; 685 var bShippingCountryProc = false; 686 687 // ë°°ì¡êµê° ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 688 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) { 689 $('.xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist').hide(); 690 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptioncountry').hide(); 691 } else { 692 $('.thumb .xans-layout-multishoplistitem').hide(); 693 var aShippingCountryCode = document.cookie.match('(^|;) ?'+sShippingCountryCode4Cookie+'=([^;]*)(;|$)'); 694 if (typeof(aShippingCountryCode) != 'undefined' && aS
694hippingCountryCode != null && aShippingCountryCode.length > 2) { 695 var sShippingCountryValue = aShippingCountryCode[2]; 696 } 697 698 // query stringì¼ë¡ ëì´ ì¨ ë°°ì¡êµê° ê°ì´ ìë¤ë©´, ê·¸ ê°ì ì ì©í¨ 699 var aHrefCountryValue = decodeURIComponent(location.href).split("/?country="); 700 701 if (aHrefCountryValue.length == 2) { 702 var sShippingCountryValue = aHrefCountryValue[1]; 703 } 704 705 // ë©ì¸ íì´ì§ìì êµê°ì íì ìí ê²½ì°, ê·¸ ì¸ì íì´ì§ìì ì í ë ê°ì´ ì ëì¤ë íì ì²ë¦¬ 706 if (location.href.split("/").length != 4 && $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()) { 707 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 708 709 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 710 $("#f_country").val($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 711 } 712 } 713 if (typeof(sShippingCountryValue) != "undefined" && sShippingCountryValue != "" && sShippingCountryValue != null) { 714 sShippingCountryValue = sShippingCountryValue.split("#")[0]; 715 var bShippingCountryProc = true; 716 717 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 718 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 719 var expires = new Date(); 720 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 721 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 722 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 723 $("#f_country").val(sShippingCountryValue).change(); 724 } 725 } 726 } 727 // ì¸ì´ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 728 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingLanguageSelection === false) { 729 $('.xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist').hide(); 730 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptionlanguage').hide(); 731 } else { 732 $('.thumb .xans-layout-multishoplistitem').hide(); 733 } 734 735 // ë°°ì¡êµê° ë° ì¸ì´ ì¤ì ì´ ë ë¤ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 736 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShipping === false) { 737 $(".xans-layout-multishopshipping").hide(); 738 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption').hide(); 739 } else if (bShippingCountryProc === false && location.href.split("/").length == 4) { // ë°°ì¡êµê° ê°ì ì²ë¦¬í ì ì´ ìê³ , ë©ì¸íë©´ì¼ ëë§ ì í ë ì´ì´ë¥¼ ëì 740 var sShippingCountryValue = $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(); 741 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 742 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 743 // ë°°ì¡êµê° ì íì ì¬ì©í´ì¼ ë ì´ì´ë¥¼ ë³´ì´ê² í¨ 744 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === true) { 745 $(".xans-layout-multishopshipping").show(); 746 } 747 } 748 749 $(".xans-layout-multishopshipping .btnClose").on("click", function() { 750 $(".xans-layout-multishopshipping").hide(); 751 }); 752 753 $(".xans-layout-multishopshipping .ec-base-button a").on("click", function() { 754 var expires = new Date(); 755 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 756 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 757 758 // ëë©ì¸ 문ì ë¡ ì¿ í¤ë¡ ë°°ì¡êµê° ì¤ì ì´ ì ëë ê²½ì°ë¥¼ ìí´ query stringì¼ë¡ ë°°ì¡êµê° ê°
758ì ëê¹ 759 var sQuerySting = (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) ? "" : "/?country="+encodeURIComponent($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 760 761 location.href = '//'+$(".xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist").val()+sQuerySting; 762 }); 763 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a").on("click", function() { 764 $(".xans-layout-multishopshipping").show(); 765 }); 766 } 767}); 768/** 769 * ì¹´í ê³ ë¦¬ ë§ì°ì¤ ì¤ë² ì´ë¯¸ì§ 770 * ì¹´í ê³ ë¦¬ ë,ì¤,ì,íìë¶ë¥ê¹ì§ ì¶ë ¥ - ì¸ë¡í 771 * 210827 ìì í ìì 772 * 773 * ì¹´í ê³ ë¦¬ íìë ¸ì¶ / ì ì²´ ë§í¬ì°ê²° í´ì 774 * 202312 ì¤íì ìì 775 */ 776 777$(document).ready(function(){ 778 779 var methods = { 780 aCategory : [], 781 aSubCategory : {}, 782 783 get: function() 784 { 785 $.ajax({ 786 url : '/exec/front/Product/SubCategory', 787 dataType: 'json', 788 success: function(aData) { 789 790 if (aData == null || aData == 'undefined') return; 791 for (var i=0; i<aData.length; i++) 792 { 793 var sParentCateNo = aData[i].parent_cate_no; 794 795 if (!methods.aSubCategory[sParentCateNo]) { 796 methods.aSubCategory[sParentCateNo] = []; 797 } 798 799 methods.aSubCategory[sParentCateNo].push( aData[i] ); 800 } 801 } 802 }); 803 }, 804 805 getParam: function(sUrl, sKey) { 806 807 var aUrl = sUrl.split('?'); 808 var sQueryString = aUrl[1]; 809 var aParam = {}; 810 811 if (sQueryString) { 812 var aFields = sQueryString.split("&"); 813 var aField = []; 814 for (var i=0; i<aFields.length; i++) { 815 aField = aFields[i].split('='); 816 aParam[aField[0]] = aField[1]; 817 } 818 } 819 return sKey ? aParam[sKey] : aParam; 820 }, 821 822 getParamSeo: function(sUrl) { 823 var aUrl = EC_ROUTE.getCleanUrl(sUrl).split('/'); 824 return aUrl[3] ? aUrl[3] : null; 825 }, 826 827 show: function(overNode, iCateNo) { 828 var oParentNode = overNode; 829 var aHtml = []; 830 var sMyCateList = localStorage.getItem("myCateList"); 831 if (methods.aSubCategory[iCateNo] != undefined) { 832 aHtml.push('<ul class="sub-category">'); 833 $(methods.aSubCategory[iCateNo]).each(function() { 834 var sNextParentNo = this.cate_no; 835 var sCateSelected = (checkInArray(sMyCateList, this.cate_no) == true) ? ' selected' : ''; 836 if (methods.aSubCategory[sNextParentNo] == undefined) { 837 aHtml.push('<li class="noChild" id="cate'+this.cate_no+'">'); 838 var sHref = '/product/list.html'+this.param; 839 } else { 840 aHtml.push('<li id="cate'+this.cate_no+'">'); 841 var sHref = '#none'; 842 } 843 aHtml.push('<a href="/product/list.html'+this.param+'" class="view" cate="'+this.param+'" data-i18n="LIST.PRD_CATE_NO_'+this.cate_no+'" onmouseover="subMenuon(this);" data-i18n-new value="' + this.name + '">'+this.name+'</a>'); 844 845 if (methods.aSubCategory[sNextParentNo] != undefined) { 846 aHtml.push('<ul class="sub-category-middle">'); 847 $(methods.aSubCategory[sNextParentNo]).each(function() { 848 var sNextParentNo2 = this.cate_no; 849 var sCateSelected = (checkInArray(sMyCateList, this.cate_no) == true) ? ' selected' : ''; 850 if (methods.aSubCategory[sNextParentNo2] == undefined) { 851 aHtml.push('<li class="noChild" id="cate'+this.cate_no+'">'); 852 var sHref = '/product/list.html'+this.param; 853 } else { 854 aHtml.push('<li id="cate'+this.cate_no+'">'); 855 var sHref = '#none'; 856 } 857 aHtml.push('<a href="/product/list.html'+this.param+'" class="view" cate="'+this.param+'" data-i18n="LIST.PRD_CATE_NO_'+this.cate_no+'" onmouseover="subMenuon(this);" data-i18n-new value="' + this.name + '">
857'+this.name+'</a>'); 858 859 if (methods.aSubCategory[sNextParentNo2] != undefined) { 860 aHtml.push('<ul class="sub-category-child">'); 861 862 $(methods.aSubCategory[sNextParentNo2]).each(function() { 863 aHtml.push('<li class="noChild" id="cate'+this.cate_no+'">'); 864 var sCateSelected = (checkInArray(sMyCateList, this.cate_no) == true) ? ' selected' : ''; 865 aHtml.push('<a href="/product/list.html'+this.param+'" class="view" cate="'+this.param+'" onmouseover="subMenuon(this);" data-i18n="LIST.PRD_CATE_NO_'+this.cate_no+'" data-i18n-new value="' + this.name + '">'+this.name+'</a>'); 866 aHtml.push('</li>'); 867 }); 868 aHtml.push('</ul>'); 869 } 870 871 aHtml.push('</li>'); 872 }); 873 aHtml.push('</ul>'); 874 } 875 aHtml.push('</li>'); 876 }); 877 aHtml.push('</ul>'); 878 } 879 $(oParentNode).append(aHtml.join('')); 880 if (window.i18nextCafe24) { 881 i18nextCafe24.translate('data-i18n-new'); 882 } 883 }, 884 885 close: function() { 886 $('.sub-category').remove(); 887 } 888 }; 889 890 methods.get(); 891 892 setTimeout(function(){ 893 $('#header .xans-layout-category li').each(function(e) { 894 var $this = $(this).addClass('on'), 895 iCateNo = Number(methods.getParam($this.find('a').attr('href'), 'cate_no')); 896 897 if (!iCateNo) { 898 iCateNo = Number(methods.getParamSeo($this.find('a').attr('href'))); 899 } 900 if (!iCateNo) { 901 return; 902 } 903 methods.show($this, iCateNo); 904 905 // gnb ì ì²´ ì¹´í ê³ ë¦¬ì ë§í¬ ì°ê²° í´ì 906 var allMenu = $('.xans-record- > a[value="ì ì²´"]'); 907 allMenu.removeAttr('href'); 908 }) 909 910 if($('.employees_only p span').text() !='ìì§ì' ){ 911 console.log('employees_only240618') 912 $('#cate794').addClass('test240618') 913 $('#cate794').hide() 914 915 } 916 }, 500); 917 918 $('.xans-record- > a[value="ì ì²´"]').click(function(){ 919 $(this).closest('#header').toggleClass('gnbOn'); 920 921 if( $('#header').hasClass('gnbOn') ){ 922 $(this).closest('.xans-record-').addClass('active'); 923 $('.muDim').addClass('on'); 924 }else{ 925 $(this).closest('.xans-record-').removeClass('active'); 926 $('.muDim').removeClass('on'); 927 } 928 }); 929 $('.muDim').click(function(){ 930 if($('#header').hasClass('gnbOn')){ 931 $('#header').removeClass('gnbOn'); 932 $('.xans-record-').removeClass('active'); 933 $('.muDim').removeClass('on'); 934 } 935 }); 936 937}); 938 939function subMenuon(obj) { 940 $(obj).parent().find('li').removeClass('on'); 941 $(obj).parent().addClass('on'); 942 $(obj).parent().siblings().removeClass("on"); 943} 944var aCategory = []; 945$(function(){ 946 var methods = { 947 aCategory : [], 948 aSubCategory : {}, 949 get: function() { 950 $.ajax({ 951 url : '/exec/front/Product/SubCategory', 952 dataType: 'json', 953 success: function(aData) { 954 if (aData == null || aData == 'undefined') { 955 methods.checkSub(); 956 return; 957 } 958 for (var i=0; i<aData.length; i++) 959 { 960 var sParentCateNo = aData[i].parent_cate_no; 961 var sCateNo = aData[i].cate_no; 962 if (!methods.aSubCategory[sParentCateNo]) { 963 methods.aSubCategory[sParentCateNo] = []; 964 } 965 if (!aCategory[sCateNo]) { 966 aCategory[sCateNo] = []; 967 } 968 methods.aSubCategory[sParentCateNo].push( aData[i] ); 969 aCategory[sCateNo] = aData[i]; 970 } 971 methods.checkSub(); 972 } 973 }); 974 }, 975 getParam: function(sUrl, sKey) { 976 if (typeof sUrl !== 'string') return; 977 var aUrl = sUrl.split('?'); 978 var sQueryString = aUrl[1]; 979 var aParam = {};
980 if (sQueryString) { 981 var aFields = sQueryString.split("&"); 982 var aField = []; 983 for (var i=0; i<aFields.length; i++) { 984 aField = aFields[i].split('='); 985 aParam[aField[0]] = aField[1]; 986 } 987 } 988 return sKey ? aParam[sKey] : aParam; 989 }, 990 991 show: function(overNode, iCateNo) { 992 var oParentNode = overNode; 993 var aHtml = []; 994 var sMyCateList = localStorage.getItem("myCateList"); 995 if (methods.aSubCategory[iCateNo] != undefined) { 996 aHtml.push('<ul class="slideSubMenu">'); 997 $(methods.aSubCategory[iCateNo]).each(function() { 998 var sNextParentNo = this.cate_no; 999 var sCateSelected = (checkInArray(sMyCateList, this.cate_no) == true) ? ' selected' : ''; 1000 if (methods.aSubCategory[sNextParentNo] == undefined) { 1001 aHtml.push('<li class="noChild" id="cate'+this.cate_no+'">'); 1002 var sHref = '/product/list.html'+this.param; 1003 } else { 1004 aHtml.push('<li id="cate'+this.cate_no+'">'); 1005 var sHref = '#none'; 1006 } 1007 aHtml.push('<a href="/product/list.html'+this.param+'" class="view" cate="'+this.param+'" data-i18n="LIST.PRD_CATE_NO_'+this.cate_no+'" data-i18n-new>'+this.name+'</a>'); 1008 if (methods.aSubCategory[sNextParentNo] != undefined) aHtml.push('<a href="'+sHref+'"'+this.param+'" onclick="subMenuEvent(this);" class="cate">ìí보기</a>'); 1009 1010 if (methods.aSubCategory[sNextParentNo] != undefined) { 1011 aHtml.push('<ul>'); 1012 $(methods.aSubCategory[sNextParentNo]).each(function() { 1013 var sNextParentNo2 = this.cate_no; 1014 var sCateSelected = (checkInArray(sMyCateList, this.cate_no) == true) ? ' selected' : ''; 1015 if (methods.aSubCategory[sNextParentNo2] == undefined) { 1016 aHtml.push('<li class="noChild" id="cate'+this.cate_no+'">'); 1017 var sHref = '/product/list.html'+this.param; 1018 } else { 1019 aHtml.push('<li id="cate'+this.cate_no+'">'); 1020 var sHref = '#none'; 1021 } 1022 aHtml.push('<a href="/product/list.html'+this.param+'" class="view" cate="'+this.param+'" data-i18n="LIST.PRD_CATE_NO_'+this.cate_no+'" data-i18n-new>'+this.name+'</a>'); 1023 if (methods.aSubCategory[sNextParentNo] != undefined) aHtml.push('<a href="'+sHref+'"'+this.param+'" onclick="subMenuEvent(this);" class="cate">ìí보기</a>'); 1024 1025 if (methods.aSubCategory[sNextParentNo2] != undefined) { 1026 aHtml.push('<ul>'); 1027 1028 $(methods.aSubCategory[sNextParentNo2]).each(function() { 1029 aHtml.push('<li class="noChild" id="cate'+this.cate_no+'">'); 1030 var sCateSelected = (checkInArray(sMyCateList, this.cate_no) == true) ? ' selected' : ''; 1031 aHtml.push('<a href="/product/list.html'+this.param+'" class="view" cate="'+this.param+'" onclick="subMenuEvent(this);" data-i18n="LIST.PRD_CATE_NO_'+this.cate_no+'" data-i18n-new>'+this.name+'</a>'); 1032 aHtml.push('</li>'); 1033 }); 1034 aHtml.push('</ul>'); 1035 } 1036 aHtml.push('</li>'); 1037 }); 1038 aHtml.push('</ul>'); 1039 } 1040 aHtml.push('</li>'); 1041 }); 1042 aHtml.push('</ul>'); 1043 } 1044 $(oParentNode).append(aHtml.join('')); 1045 if (window.i18nextCafe24) { 1046 i18nextCafe24.translate('data-i18n-new'); 1047 } 1048 }, 1049 close: function() { 1050 $('.slideSubMenu').remove(); 1051 }, 1052 checkSub: function() { 1053 $('.cate').each(function(){ 1054 var sParam = $(this).attr('cate'); 1055 if (!sParam) return; 1056 var iCateNo = Number(methods.getParam(sParam, 'cate_no')); 1057 var result = methods.aSubCategory[iCateNo]; 1058 if (result == undefined) { 1059 if ($(this).closest('#slideProjectList').length) { 1060 var sHref = '/product/project.html'+sParam; 1061 } else { 1062 var sHref = '/product/list.html'+sParam; 1063 } 1064 1065 $(this).attr('href', sHref); 1066 $(this).parent().attr('class', 'noChild'); 1067 } 1068 }); 1069 } 1070 }; 1071 1072 methods.get(); 1073 1074 $('#slideCateList li > a.cate').on('click', function(e) { 1075 var sParam = $(this).attr('cate'); 1076 if (!sParam) return; 1077 var iCateNo = Number(methods.getParam(sParam, 'cate_no')); 1078 var hasClass = $(this).parent().hasClass('selected'); 1079 1080 //if ($(this).parent().attr('class') == 'xans-record- selected') { 1081 if(hasClass) { 1082 methods.close(); 1083 } else { 1084 if (!iCateNo) return; 1085 $('#aside #slideCateList li').removeClass('selected'); 1086 methods.close(); 1087 methods.show(this.parentNode, iCateNo); 1088 } 1089 }); 1090 1091 /* 모ë°ì¼ ì¬ë¼ì´ëë° ì¹´í ê³ ë¦¬ ì¤ë¶ë¥ì²´í¬ */ 1092 jQuery('#slide_add_category li').each(function(){ 1093 if( jQuery(this).children('ul').length == 0 ){ 1094 jQuery(this).addClass('noChild'); 1095 } else { 1096 jQuery(this).append('<a href="#none" class="cate">ìí보기</a>'); 1097 } 1098 }); 1099 1100 /* 모ë°ì¼ ì¬ë¼ì´ëë° ì¹´í ê³ ë¦¬ */ 1101 $('#aside ul a.cate').on('click', function(e){ 1102 $(this).parent().find('li').removeClass('selected'); 1103 $('#slideCateList .categoryList li').removeClass('selected'); 1104 $(this).parent().toggleClass('selected'); 1105 if (!$(this).parent('li').hasClass('noChild')){ 1106 e.preventDefault(); 1107 } 1108 }); 1109 1110 /* ì¬ë¼ì´ë ê³ ê°ì¼í° í ê¸ */ 1111 jQuery('#aside .navigation-menu__board .icoCategory').click(function() { 1112 var target = jQuery(this).parents('#aside .navigation-menu__board'); 1113 if(target.find('.categoryList').css("display") == "none"){ 1114 target.find('.categoryList').show(); 1115 }else{ 1116 target.find('.categoryList').hide(); 1117 } 1118 1119 jQuery(this).parents('.title').toggleClass('selected'); 1120 }); 1121 1122 $('#slideCateList h2').on('click', function() { 1123 var oParentId = $(this).parent().attr('id'); 1124 if (oParentId == 'slideCateList' || oParentId == 'slideMultishopList' || oParentId == 'slideProjectList') { 1125 ($(this).attr('class') == 'selected') ? $(this).next().hide() : $(this).next().show(); 1126 } 1127 $(this).toggleClass('selected'); 1128 }); 1129
1130 $('#slideProjectList .icoCategory').on('click', function() { 1131 var target = $(this).parents('#slideProjectList'); 1132 if(target.find('.categoryList').css("display") == "none"){ 1133 target.find('.categoryList').show(); 1134 }else{ 1135 target.find('.categoryList').hide(); 1136 } 1137 1138 $(this).parents('.title').toggleClass('selected'); 1139 }); 1140 1141}); 1142function subMenuEvent(obj) { 1143 $(obj).parent().find('li').removeClass('selected'); 1144 $(obj).parent().toggleClass('selected'); 1145} 1146 1147function checkInArray(sBookmarkList, iCateNo) { 1148 if (sBookmarkList == null) return false; 1149 var aBookmarkList = sBookmarkList.split("|"); 1150 for (var i = 0; i < aBookmarkList.length; i++) { 1151 if (aBookmarkList[i] == iCateNo) { 1152 return true; 1153 } 1154 } 1155 return false; 1156}
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.