1// ëë©ì¸ ì ì¸ 2const current_domain = window.location.hostname; 3 4 5/** 6 * ê³µíµ ê´ê³ HTML ìì± í¨ì 7 * @adScript : (Array) ê´ê³ ì¤í¬ë¦½í¸ 8 * @height : (String) ê´ê³ ëì´ 9 * @type : (String) ê´ê³ íì 10 * @wrapClass : (String) ê´ê³ ììì ì¶ê°í í´ëì¤ëª 11 */ 12const adCommonHtml = (adScript, height, type, wrapClass="") => { 13 let adHtml = ""; 14 switch(type) { 15 // 1ë¨ ê´ê³ 16 case 'one-column': 17 adHtml = `<div class="ad-area-wrap bg ${wrapClass}"> 18 <p class="ad-label">ADVERTISEMENT</p> 19 <div class="ad-wrap" style="min-height:${height}px"> 20 <div class="ad-box">${adScript[0]}</div> 21 </div> 22 </div>`; 23 break; 24 // 2ë¨ ê´ê³ 25 case 'two-column': 26 adHtml = `<div class="ad-area-wrap bg ${wrapClass}"> 27 <p class="ad-label">ADVERTISEMENT</p> 28 <div class="ad-wrap" style="min-height:${height}px"> 29 <div class="ad-box"> 30 ${adScript[0]} 31 </div> 32 <div class="ad-box"> 33 ${adScript[1]} 34 </div> 35 </div> 36 </div>`; 37 break; 38 // ì°ì¸¡ 모ë ê´ê³ 39 case 'right-module': 40 adHtml = `<div class="aside-module ad-module ad-area-wrap ${wrapClass}"> 41 <p class="ad-label">ADVERTISEMENT</p> 42 <div class="ad-wrap" style="min-height:${height}px"> 43 ${adScript[0]} 44 </div> 45 </div>` 46 } 47 48 return adHtml; 49} 50 51$(document).ready(function(){ 52 // ê°ë°ìë² ëë©ì¸ ì¹í 53 if(current_domain == 'stg-www.tenasia.co.kr'){ 54 const html_now = document.documentElement.innerHTML; 55 const html_new = html_now.replace(/https:\/\/www.tenasia.co.kr/g, "https://stg-www.tenasia.co.kr"); 56 document.documentElement.innerHTML = html_new; 57 } 58 59 // íµí©ê²ì ë ì´ì´ 60 $('.btn-search-open, .btn-search-close').click(function(){ 61 $('.layer-search').slideToggle('fast'); 62 }); 63 64 // ê²ì ë보기 í´ë¦ ì í¬ì»¤ì¤ 65 $('.btn-search-open').click(function(){ 66 $('.layer-search input[name=query]').focus(); 67 }); 68 69 // ì°ì¸¡ëª¨ë í ì¤í ì¬ë¼ì´ë 70 $('.slide-tenstar .slide-list').slick({ 71 prevArrow:'.slide-tenstar .btn-prev', 72 nextArrow:'.slide-tenstar .btn-next' 73 }).on("afterChange", function (event, slick, currentSlide, nextSlide) { 74 $(".slide-control strong").text(currentSlide +1); 75 }); 76 77 // ë¤ë¥¸ ìì í´ë¦ ì ê²ìì°½ ì¨ê¸°ê¸° 78 $('#wrap').click(function(e){ 79 if ($(e.target).hasClass('icon-search-open') || $(e.target).hasClass('btn-search-open')) { 80 return; 81 } 82 83 if (!$('.layer-search').has(e.target).length) { 84 $('.layer-search').hide(); 85 return; 86 } 87 }); 88 89 // ì°ì¸¡ëª¨ë fixed 90 // if($('.aside-inner').length > 0){ 91 // var asideTop = $('.aside').offset().top; 92 // var contTop = $('.contents-wrap').offset().top; 93 94 // $(window).on("scroll", function () { 95 // var asideHeight = $(".aside-inner").outerHeight(); 96 // if($('.contents').outerHeight() >= asideHeight){ 97 // var contHeight = $('.contents-wrap').outerHeight(); 98 // var stopPos = contTop + contHeight; 99 100 // var asideBottom = asideHeight + asideTop; 101 // var standard = $(window).scrollTop() + $(window).height(); 102 // var asideTop2 = $('.aside-inner').offset().top; 103 104 // if(standard >= asideBottom && stopPos > standard){ 105 // $('.aside-inner').css({'position':'fixed','bottom':'0'}); 106 // }else if(standard >= stopPos){ 107 // $('.aside-inner').css({'position':'absolute','bottom':'60px'}); 108 // }else if(asideTop > asideTop2){ 109 // $('.aside-inner').css({'position':'static','bottom':'auto'}); 110 // } 111 // } 112 // }); 113 // } 114 115 // TOP ë²í¼ 116 $('.btn-top').click(function(){ 117 $('html, body').animate( { scrollTop : 0 }, 300 ); 118 return false; 119 });
120 121 // IE9 ì´í ë¸ë¼ì°ì ìë´ ë ì´ì´ ë«ê¸° 122 $('.btn-close-layer').click(function() { 123 $(this).parents('.layer-pop').hide(); 124 }); 125});
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.