1var ProductFunction = (function(fn) { 2 fn.getProductImgList = function(type, callback) { 3 if (!type) 4 type='list'; 5 6 var imgSel ='img[data-prdt-img]'; 7 if ($(imgSel).length==0) 8 return; 9 10 var prodIdUniq = []; 11 $(imgSel).each(function(){ 12 var prodId = $(this).data('prdt-img'); 13 if (prodIdUniq.indexOf(prodId) < 0) { 14 prodIdUniq.push(prodId); 15 } 16 }); 17 18 // $.ajax({ 19 // url: '/wp/wp-admin/admin-ajax.php', 20 // dataType : 'json', 21 // data : { 22 // action: 'get_product', 23 // type: 'jsonProductImgByProduct', 24 // prodId : prodIdUniq, 25 // sort : (type=='list'?1:null), 26 // }, 27 // method : 'POST', 28 // success: function(response) 29 // { 30 // var json = response.data; 31 // $.each(json, function(k,v){ 32 // if (type=='list' || (type=='detail' && v.sort==1)) { 33 // $('img[data-prdt-img="'+v.id+'"]').attr('src',encodeURI(v.img_url)); 34 // $('meta[property="og:image"]').attr('content', encodeURI(v.img_url)); 35 // // íë² ë¡ë©ë ë°ì´í°ë ì¬ë¡ë© ëì§ ìëë¡ ì²ë¦¬ 36 // $('img[data-prdt-img="'+v.id+'"]').attr('data-prdt-img',''); 37 // } 38 // }); 39 // 40 // if (typeof(callback)=='function') 41 // callback(json); 42 // } 43 // }); 44 }; 45 fn.downloadProdInfoAgree = function(prodId){ 46 var saleCd = sessionStorage.getItem('saleCd'); 47 var html 48 if (saleCd) { 49 html = '<article id="agreeDown" class="pop_wrap" popup-prod-info-download>\n' + 50 '\t\t\t\t<i class="pop_bg"></i>\n' + 51 '\t\t\t\t<div class="pop_cont">\n' + 52 '\t\t\t\t\t<form name="frmProdInfoDownload">\n' + 53 '\t\t\t\t \n' + 54 '\t\t\t\t\t\t\t<!-- agree down -->\n' + 55 '\t\t\t\t\t\t\t<h2>ë¼ì´ì ì¤ ì¬ì©ìë´ ë° ì´ì©ì í</h2>\n' + 56 '\t\t\t\t\t\t\t<button type="button" class="pop_close" onclick="ProductFunction.downloadProdInfoAgreeClose()">íì ë«ê¸°</button>\n' + 57 '\t\t\t\t\t\t\t<div class="agree_text">\n' + 58 '\t\t\t\t\t\t\t\t본 ìë£ì ìì ê¶ì ìì¤í¼ì¼í(주)ì ìì¼ë©°, í´ë¹ìë£ë \n' + 59 '\t\t\t\t\t\t\t\tìì¤í¼ì¼í ì í ì ë³´ 기ì ì(ì¨ë¼ì¸ì¼í몰 ìì¸íì´ì§) ì©ëë¡ë§ \n' + 60 '\t\t\t\t\t\t\t\tì¬ì© ê°ë¥í©ëë¤.<br><br>\n' + 61 '\t\t\t\t\t\t\t\t\n' + 62 '\t\t\t\t\t\t\t\tí´ë¹ìë£ë¥¼ ë³µì , ì¬ê°ê³µ, ì¶í, ì¸ì ë± ê¸°í ë°©ë²ì ìíì¬ \n' + 63 '\t\t\t\t\t\t\t\tì리목ì ì¼ë¡ ì´ì©íê±°ë, 무ë¨ì¬ì©, ì 3ììê² ë°°í¬í ê²½ì°\n' + 64 '\t\t\t\t\t\t\t\tì ìê¶ ë²ì ë°ë¼ ë²ì ì¸ ì± ìì ì§ ì ììµëë¤.\n' + 65 '\t\t\t\t\t\t\t</div>\n' + 66 '\t\t\t\t\t\t\t<div class="agree_chk">\n' + 67 '\t\t\t\t\t\t\t\t<label class="checkbox">\n' + 68 '\t\t\t\t\t\t\t\t\t<input type="checkbox" name="prodInfoDownAgree" />\n' + 69 '\t\t\t\t\t\t\t\t\t<i class="lbl"></i>\n' + 70 '\t\t\t\t\t\t\t\t\tì ë´ì©ì íì¸íììµëë¤.\n' + 71 '\t\t\t\t\t\t\t\t</label>\n' + 72 '\t\t\t\t\t\t\t\t<label class="checkbox">\n' + 73 '\t\t\t\t\t\t\t\t\t<input type="checkbox" name="prodInfoDownAgree" />\n' + 74 '\t\t\t\t\t\t\t\t\t<i class="lbl"></i>\n' + 75 '\t\t\t\t\t\t\t\t\të¼ì´ì ì¤ ì¬ì©ìë´ ë° ì´ì©ì íì ëìí©ëë¤.\n' + 76 '\t\t\t\t\t\t\t\t</label>\n' + 77 '\t\t\t\t\t\t\t</div>\n' + 78 '\t\t\t\t\t\t\t<a href="javascript:ProductFunction.downloadProdInfo();" class="button btn_download">ë¤ì´ë¡ë</a>\n' + 79 '\t\t\t\t\t\t\n' + 80 '\t\t\t\t\t\n' + 81 '\t \t\t\n' + 82 '\t\t\t\t\t</form>\n' + 83 '\t\t\t\t</div>\n' + 84 '\t\t\t</article>'; 85 } else { 86 html = '<article id="storeConfirm" class="pop_wrap" popup-prod-info-download>\n' + 87 '\t\t\t\t<i class="pop_bg"></i>\n' + 88 '\t\t\t\t<div class="pop_cont">\n' + 89 '\t\t\t\t\t<form name="frmProdInfoDownload">\n' + 90 '\t\t\t\t \n' + 91 '\t\t\t\t\t\n' + 92 '\t \t\t\n' + 93 '\t\t\t\t\t\t\t<!-- íë§¤ì² ì¸ì¦ -->\n' + 94 '\t\t\t\t\t\t\t<h2>íë§¤ì² ì¸ì¦</h2>\n' + 95 '\t\t\t\t\t\t\t<button type="button" class="pop_close" onclick="ProductFunction.downloadProdInfoAgreeClose()">íì ë«ê¸°</button>\n' + 96 '\t\t\t\t\t\t\t<div class="store_number">\n' + 97 '\t\t\t\t\t\t\t\t<h5>ì¬ì ìë²í¸, íë§¤ì² ì½ë를 ì ë ¥íë©´ ì¸ì¦ì´ ìë£ë©ëë¤.</h5>\n' + 98 '\t\t\t\t\t\t\t\t<dl>\n' + 99 '\t\t\t\t\t\t\t\t <dt>ì¬ì ìë²í¸</dt>\n' + 100 '\t\t\t\t\t\t\t\t <dd><input type="text" name="agencyBizNo" placeholder="ì¬ì ìë²í¸ë¥¼ ì ë ¥í´ì£¼ì¸ì" onkeyup="onlyNumber(this)"/></dd>\n' + 101 '\t\t\t\t\t\t\t\t</dl>\n' + 102 '\t\t\t\t\t\t\t\t<dl>\n' + 103 '\t\t\t\t\t\t\t\t\t<dt>í매ì²ì½ë</dt>\n' + 104 '\t\t\t\t\t\t\t\t\t<dd><input type="text" name="agencyId" placeholder="í매ì²ì½ë를 ì ë ¥í´ì£¼ì¸ì" /></dd>\n' + 105 '\t\t\t\t\t\t\t\t</dl>\n' + 106 '\t\t\t\t\t\t\t\t<p>\n' + 107 '\t\t\t\t\t\t\t\t\tíë§¤ì² ì¸ì¦ê³¼ ê´ë ¨ë 문ìì¬íì´ ìì¼ì ê²½ì°, ë´ë¹ ë¹ì¦ëì¤ì¼í°ì\n' + 108 '\t\t\t\t\t\t\t\t\t문ìí´ ì£¼ì¸ì.\n' + 109 '\t\t\t\t\t\t\t\t</p>\n' + 110 '\t\t\t\t\t\t\t</div>\n' + 111 '\t\t\t\t\t\t\t\n' + 112 '\t\t\t\t\t\t\t<a href="javascript:ProductFunction.authAgency();" class="button btn_confirm">íë§¤ì² ì¸ì¦</a>\n' + 113 '\t\t\t\t\t\t\n' + 114 '\t\t\t\t\t</form>\n' + 115 '\t\t\t\t</div>\n' + 116 '\t\t\t</article>'; 117 } 118 // ìì¸ íì´ì§ ë¤ì´ë¡ë ì¸ì¦ 119 // ëì ì íì´ ì¬ë¬ê°ì¼ ê²½ì° ì½¤ë§ë¡ êµ¬ë¶ 120 sessionStorage.setItem('downloadProdInfo', prodId); 121 $('[popup-prod-info-download]').remove(); 122 $('body').append(html); 123 } 124 fn.downloadProdInfo = function(){ 125 var frm = $('[name="frmProdInfoDownload"]'); 126 if (frm.find('[name="prodInfoDownAgree"]:checked').length!=2){ 127 alert("ë¼ì´ì ì¤ ì¬ì©ìë´ íì¸ ë° ëì를 í´ì£¼ì¸ì"); 128 return; 129 } 130 fn.downloadProdInfoAgreeClose(); 131 window.location.href="/wp/wp-admin/admin-ajax.php?action=product_download&prodId="+sessionStorage.getItem('downloadProdInfo')+"&saleCd="+sessionStorage.getItem('saleCd'); 132 } 133 fn.authAgency = function(){ 134 var frm = $('[name="frmProdInfoDownload"]'); 135 var bizNo = frm.find('[name="agencyBizNo"]'); 136 var id = frm.find('[name="agencyId"]'); 137 138 if (!bizNo.val()){ 139 alert(bizNo.attr("placeholder")); 140 bizNo.focus(); 141 return; 142 } 143 if (!id.val()){ 144 alert(id.attr("placeholder")); 145 id.focus(); 146 return; 147 } 148 $.ajax({ 149 url: '/wp/wp-admin/admin-ajax.php', 150 dataType : 'json', 151 async: false, 152 data : { 153 action: 'auth_agency', 154 bizNo : bizNo.val(), 155 id : id.val() 156 }, 157 method : 'POST', 158 success: function(response) 159 { 160 if (response.data==0) { 161 alert("ë리ì ì ë³´ê° ì¼ì¹íì§ ììµëë¤."); 162 } else { 163 sessionStorage.setItem('saleCd', id.val()); 164 // ë¼ì´ì ì¤ ì¬ì©ìë´ íì´ì§ ì´ë 165 fn.downloadProdInfoAgree(sessionStorage.getItem('downloadProdInfo')); 166 } 167 } 168 }); 169 } 170 fn.downloadProdInfoAgreeClose = function(){ 171 $('[popup-prod-info-download]').remove(); 172 } 173 return fn; 174}(window.ProductCategory || {}));
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.