1$(function(){ 2 3 //ìíëì¤íë ì´ì ëììí´ë¦ì -> ëìììëì¤íì¤ì ëì´ìì´ì¼í¨ 4 $(".goodsDisplayVideoWrap").live("click",function(e){ 5 $(this).find("img").addClass("hide"); 6 $(this).find(".thumbnailvideo").hide(); 7 $(this).find(".mobilethumbnailvideo").hide(); 8 $(this).find("iframe").removeClass("hide"); 9 $(this).find("embed").removeClass("hide"); 10 }); 11 12 //ëììë£ê¸°ì ëììí´ë¦ì-> ëìììëì¤íì¤ì ëì´ìì´ì¼í¨ 13 $(".DisplayVideoWrap").live("click",function(e){ 14 $(this).find("img").addClass("hide"); 15 $(this).find(".thumbnailvideo").hide(); 16 $(this).find(".mobilethumbnailvideo").hide(); 17 $(this).find("iframe").removeClass("hide"); 18 $(this).find("embed").removeClass("hide"); 19 }); 20 21 /* ëììë£ê¸°/ìíëì¤íë ì´ ëììì´ë¯¸ì§ì²´í¬ */ 22 $(".thumbnailvideo").each(function(){ 23 var width = ($(this).attr("width"))?$(this).attr("width"):400; 24 var height = ($(this).attr("height"))?$(this).attr("height"):200; 25 $(this).css({'width':width}); 26 $(this).css({'height':height}); 27 }); 28 29 $(".mobilethumbnailvideo").each(function(){ 30 var width = ($(this).attr("width"))?$(this).attr("width"):150; 31 var height = ($(this).attr("height"))?$(this).attr("height"):50; 32 $(this).css({'width':width}); 33 $(this).css({'height':height}); 34 }); 35 36 $(".datepicker").datepicker("option",{ 37 showOn: "focus", 38 buttonImage: null, 39 buttonImageOnly: false 40 }); 41 42 /* ajaxë¡ ì»¨í ì¸ ë¡ë(ë§ì´íì´ì§,ê³ ê°ì¼í°ìì ì¬ì©) */ 43 $("a[mobileAjaxCall]").live('click',function(){ 44 var mobileAjaxCall = $(this).attr('mobileAjaxCall'); 45 var url = $(this).attr('href'); 46 var contentsObj = $("div[mobileAjaxCall='"+mobileAjaxCall+"']"); 47 var that = this; 48 49 $("div[mobileAjaxCall]").not(contentsObj).slideUp(); 50 51 if($(document).data('mobileAjaxCallIng')=='1') { 52 alert('ì¤íì¤ì ëë¤.'); 53 return; 54 }else{ 55 $(document).data('mobileAjaxCallIng','1'); 56 loadingStart(that,{segments: 12, steps: 3, width:2, space: 1, length: 3, color: '#030303', speed: 1.5}); 57 } 58 59 mobileAjaxContentsLoad(url,mobileAjaxCall,function(){ 60 contentsObj.slideDown(); 61 loadingStop(that,true); 62 $(document).data('mobileAjaxCallIng',''); 63 }); 64 65 return false; 66 }); 67 68 $(window).load(function(){ 69 //window.scrollTo(0,1); 70 }); 71}); 72 73/* ajaxë¡ ì»¨í ì¸ ë¡ë(ë§ì´íì´ì§,ê³ ê°ì¼í°ìì ì¬ì©) */ 74function mobileAjaxContentsLoad(url,mobileAjaxCall,callbackFunction){ 75 var contentsObj = $("div[mobileAjaxCall='"+mobileAjaxCall+"']"); 76 var urlLeft = url.split('?').length>1 ? url.split('?')[0] : url; 77 var urlRight = url.split('?').length>1 ? "?"+url.split('?')[1]+"&mobileAjaxCall="+mobileAjaxCall : "?mobileAjaxCall="+mobileAjaxCall; 78 79 contentsObj.load(urlLeft+urlRight,function(){ 80 if(callbackFunction) callbackFunction(); 81 }); 82} 83 84function openDialogAlert(msg,width,height,callback){ 85 msg = msg.replaceAll("<br \\/>","\n"); 86 msg = msg.replaceAll("<br\\/>","\n"); 87 msg = msg.replaceAll("<br>","\n"); 88 msg = strip_tags(msg); 89 alert(decodeEntities(msg)); 90 if(callback) callback(); 91} 92 93function openDialogConfirm(msg,width,height,yesCallback,noCallback){ 94 msg = msg.replaceAll("<br \\/>","\n"); 95 msg = msg.replaceAll("<br\\/>","\n"); 96 msg = msg.replaceAll("<br>","\n"); 97 msg = strip_tags(msg); 98 99 if(confirm(decodeEntities(msg))){ 100 if(yesCallback) yesCallback(); 101 }else{ 102 if(noCallback) noCallback(); 103 } 104} 105 106function openDialogAlertmobile(msg,width,height,callback){ 107 msg = msg.replaceAll("<br \\/>","\n"); 108 msg = msg.replaceAll("<br\\/>","\n"); 109 msg = msg.replaceAll("<br>","\n"); 110 msg = strip_tags(msg); 111 alert(decodeEntities(msg)); 112 if(callback) callback(); 113} 114 115function openDialogConfirmmobile(msg,width,height,yesCallback,noCallback){ 116 msg = msg.replaceAll("<br \\/>","\n"); 117 msg = msg.replaceAll("<br\\/>","\n"); 118 msg = msg.replaceAll("<br>","\n"); 119 msg = strip_tags(msg); 120 if(confirm(decodeEntities(msg))){ 121 if(yesCallback) yesCallback(); 122 }else{ 123 if(noCallback) noCallback(); 124 } 125} 126 127function openDialog2(title, layerId, customOptions, callback){ 128 129 if((typeof layerId) != 'string') var layerSelector = layerId; 130 else if(layerId.substring(0,1)=='#' || layerId.substring(0,1)=='.' || (typeof layerId) != 'string') var layerSelector = layerId; 131 else var layerSelector = "#"+layerId; 132 133 var options = { 134 "zIndex" : 10000, 135// "show" : "fade",
136// "hide" : "fade", 137 "modal" : true, 138 "resizable" : false, 139 "draggable" : false, 140 "noClose" : false, 141 "top" : -500 142 }; 143 144 if(customOptions != undefined){ 145 for(var i in customOptions){ 146 options[i] = customOptions[i]; 147 } 148 } 149 150 options['title'] = title; 151 152 if(callback){ 153 $(layerSelector).dialog({ 154 "modal" : options['modal'], 155 "close" : function(){ 156 callback(); 157 } 158 }); 159 } 160 161 $(function(){ 162 if(customOptions['autoOpen']==false){ 163 164 $(layerSelector) 165 .dialog({"autoOpen" : false}) 166 .dialog("option", options); 167 168 }else{ 169 $(layerSelector) 170 .dialog({"autoOpen" : false}) 171 .dialog("option", options) 172 .dialog("open") 173 .focus(); 174 } 175 176 if(options['noClose']==false){ 177 $(".ui-dialog-titlebar-close",$(layerSelector).closest(".ui-dialog")).show(); 178 $(".ui-dialog-titlebar-close").bind("click",function(){ 179 if(layerId=='recommendDisplayGoodsSelect'){ 180 parent.$("body").css("overflow-y","auto"); 181 $(this).dialog("close"); 182 }else{ 183 $("body").css("overflow-y","auto"); 184 $(this).dialog("close"); 185 } 186 }); 187 }else{ 188 $(".ui-dialog-titlebar-close",$(layerSelector).closest(".ui-dialog")).hide(); 189 $(layerSelector).dialog("option","close",function(){ 190 if(options['noClose']) $(layerSelector).dialog("open").focus(); 191 }); 192 } 193 }); 194 195} 196 197/* ë¤ì´ì¼ë¡ê·¸ ëì°ê¸° (íì´í, ë ì´ì´ìì´ë, ìµì ) */ 198function openDialog(title, layerId, customOptions){ 199 200 if((typeof layerId) != 'string') var layerSelector = layerId; 201 else if(layerId.substring(0,1)=='#' || layerId.substring(0,1)=='.' || (typeof layerId) != 'string') var layerSelector = layerId; 202 else var layerSelector = "#"+layerId; 203 204 var options = { 205 "zIndex" : 10000, 206// "show" : "fade", 207// "hide" : "fade", 208 "modal" : true, 209 "resizable" : false, 210 "draggable" : false 211 }; 212 213 if(customOptions != undefined){ 214 for(var i in customOptions){ 215 options[i] = customOptions[i]; 216 } 217 } 218 219 options['modal'] = true; 220 options['title'] = title; 221 options['width'] = "93%"; 222 if(options['height'] != undefined){ 223 options['height'] = options['height'] && options['height'] > $(window).height() ? $(window).height() : options['height']; 224 } 225 226 if( layerId == "couponDownloadDialog" ) {//ì¿ í°ë ì´ì°½ ì ê² 227 var sheight = $('body').prop("scrollHeight"); 228 var layerheight = $(layerSelector).attr("height"); 229 if( layerheight != undefined) { 230 options['height'] = layerheight; 231 }else{ 232 options['height'] = sheight; 233 } 234 } 235 236 $(function(){ 237 if(customOptions['autoOpen']==false){ 238 $(layerSelector) 239 .dialog({"autoOpen" : false}) 240 .dialog("option", options); 241 }else{ 242 $(layerSelector) 243 .dialog({"autoOpen" : false}) 244 .dialog("option", options) 245 .dialog("open"); 246 247 } 248 249 $(".ui-dialog-titlebar-close").bind("click",function(){ 250 if(layerId=='recommendDisplayGoodsSelect'){ 251 parent.$("body").css("overflow-y","auto"); 252 $(this).dialog("close"); 253 }else{ 254 $("body").css("overflow-y","auto"); 255 $(this).dialog("close"); 256 } 257 }); 258 }); 259 260} 261 262//ì ì ì¤íê·¸ë¼í¼>ë°ë¡êµ¬ë§¤ì ì ì© 263function getfbopengraph(gdseq, type, urldomain, id) 264{ 265 266 if (document.location.protocol == "https:") { 267 var url = 'https://'+urldomain+'/sns_process/fbopengraph'; 268 }else{ 269 var url = 'http://'+urldomain+'/sns_process/fbopengraph'; 270 } 271 $.getJSON(url + "?no="+gdseq+"&id="+id+"&type="+type+"&jsoncallback=?"); 272} 273 274//íì´ì¤ë¶>me/feed ê¸ë¨ê¸°ê¸° 275function getfbmefeed(boardseq, type, urldomain, boardid) 276{ 277 if (document.location.protocol == "https:") { 278 var url = 'https://'+urldomain+'/sns_process/fbmefeed'; 279 }else{ 280 var url = 'http://'+urldomain+'/sns_process/fbmefeed'; 281 } 282 $.getJSON(url + "?no="+boardseq+"&id="+boardid+"&type="+type+"&jsoncallback=?"); 283} 284 285/* 286 * html ìí°í° ëì½ë© 287 * openDialog ì ê²½ì° ëª¨ë°ì¼ìì ë¨ì alertë comfirmì¼ë¡ ì¬ì©ëë ê²½ì°ê° ìëë° 288 * ì´ ë html ìí°í°ë¥¼ ì ìì ì¼ë¡ ì¶ë ¥íì§ ëª» íì¬ ëì½ë©íì¬ ì¶ë ¥í¨. 289 */ 290var decodeEntities = (function(){ 291 var cache = {}, 292 character, 293 e = document.createElement('div'); 294 295 return function(html){ 296 return html.replace(/([&][^&; ]+[;])/g, function(entity){ 297 character = cache[entity]; 298 if (!character) { 299 e.innerHTML = entity; 300 if (e.childNodes[0]){ 301 character = cache[entity] = e.childNodes[0].nodeValue; 302 } else { 303 character = ''; 304 } 305 } 306 return character; 307 }); 308 }; 309})();
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.