1/** 2 * 3 */ 4 5/* ì¸ë¤ì¼ URL ì ì¤ì ìì² ì£¼ìë¡ ë°ê¾¼ë¤ (ê²½ë¡ ì ê·í + 리ì¬ì´ì + ìì ë°°ì§). 6 â loadLazyImage ì hideImage ê° í¨ê» ì´ë¤ â ê·ì¹ì í ê³³ìë§ ëë¤. */ 7function ibResolveThumb(el, src){ 8 if(!src) return src; 9 if(/^\.?\/?files[0-9]*\/attach\//i.test(src)){ 10 src = "https://ncache.ilbe.com/" + src.replace(/^\.?\//, ""); 11 } 12 if(/\.mp4$/i.test(src)){ src = src.replace(/\.mp4$/i, "_poster.jpg"); } 13 /* ìììì ë½ì ì¸ë¤ì¼ì´ë©´ â¶ ë°°ì§ */ 14 if(/^https?:\/\/img\.youtube\.com\/vi\//i.test(src) || /_poster\.jpg$/i.test(src)){ 15 $(el).addClass("thumb-video").parent().addClass("thumb-video-wrap"); 16 } 17 var mt = src.match(/^https?:\/\/ncache\.ilbe\.com\/(files[0-9]?\/attach\/[^?#]+\.(?:jpg|jpeg|png|gif|webp))$/i); 18 if(mt){ $(el).attr("data-orig", src); return "/t/320/" + mt[1]; } 19 $(el).removeAttr("data-orig"); 20 return src; 21} 22function loadLazyImage(){ 23 $(".lazy_thumbnail").each(function(){ 24 if($(this).css("visibility")=="hidden" && !$(this).attr("src")){ 25 var winHeight=$(window).height(); 26 var scrollTop=$(window).scrollTop(); 27 var pos=$(this).offset(); 28 var height=$(this).parent().height(); 29 if( (scrollTop <=pos.top && winHeight+scrollTop >=pos.top) || 30 (scrollTop <=pos.top+height && winHeight+scrollTop >=pos.top+height) ){ 31 var lazySrc = ibResolveThumb(this, $(this).attr("data")); 32 $(this).attr("src",lazySrc).attr("onload","showImage(this)").attr("onerror","hideImage(this)"); 33 } 34 } 35 }); 36} 37function hideImage(img){ 38 /* â /t/320 리ì¬ì´ì ê° ì¤í¨íë©´ ì본ì¼ë¡ í ë² ë */ 39 var orig=$(img).attr("data-orig"); 40 if(orig && String($(img).attr("src")).indexOf("/t/")===0){ 41 $(img).removeAttr("data-orig").attr("src", orig); 42 return; 43 } 44 /* â¡ ê·¸ëë ì ëë©´ ë¤ì íë³´ë¡ â ìë²ê° data-alts ì ììëë¡ ë£ì´ì¤ë¤. 45 â ì´ê² ìë ìì ì 첫 íë³´ê° ì£½ì¼ë©´ ê·¸ë¥ ë¹ì¹¸ì´ìë¤. 본문ì ì íë¸ê° ìì´ë 46 ì°ì§ ììë¤(2026-09-25 ì¬ì¥ë ì ê³ : img ë ìëë° íì¼ì´ ì§ìì§ ê¸). */ 47 var alts=$(img).attr("data-alts"); 48 if(alts){ 49 var list=alts.split("|"); 50 var idx=parseInt($(img).attr("data-altidx")||"0", 10); 51 while(idx < list.length){ 52 var cand=list[idx]; idx++; 53 if(cand){ 54 $(img).attr("data-altidx", idx); 55 $(img).attr("src", ibResolveThumb(img, cand)); 56 return; 57 } 58 } 59 } 60 /* ⢠íë³´ê° ë°ë¥ëë©´ 칸ì ë¹ì´ë¤(ì리ë ë¨ê¸´ë¤ â ìì ë©´ ì ëª©ì´ ì¼ìª½ì¼ë¡ ë¶ëë¤). */ 61 var rmId=$(img).attr("data-remove"); 62 if(rmId && document.getElementById(rmId)){ $("#"+rmId).empty(); return; } 63 var box=$(img).closest("a.thumb"); 64 if(box.length){ box.remove(); return; } 65 $(img).parent().remove(); 66} 67function showImage(img){ 68 /* ì¸ë¤ì¼ í¬ê¸°Â·ì ë ¬ì CSS(.type-webzine / .type-gallery ì object-fit)ê° ë§¡ëë¤. 69 ì¢ ì ì ì¬ê¸°ì .img-portrait/.img-landscape 를 ë¶ìëë°, ì¹ì§ììë CSS ì°ì ììì 70 ë°ë ¤ ë¬´ë ¥ì´ìê³ ê°¤ë¬ë¦¬ììë§ ë¨¹ì´ ê¸´ ì¬ì§ì ê°ì´ë° í ë§ë§ ë³´ì´ê² íë¤. 71 2026-09-25 ê°¤ë¬ë¦¬ì object-fit ê·ì¹ì ë£ì¼ë©´ì í¨ê» ì ê±°. */ 72 $(img).css("visibility","visible"); 73} 74$(document).ready(function(){ 75 if(!document.getElementById("thumb-video-style")){ 76 $("head").append('<style id="thumb-video-style">.thumb-video-wrap{position:relative}.thumb-video-wrap:before{content:"";position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;background:rgba(0,0,0,.55);box-shadow:0 0 0 1px rgba(255,255,255,.35);pointer-events:none;z-index:2}.thumb-video-wrap:after{content:"";position:absolute;left:50%;top:50%;width:0;height:0;margin:-4px 0 0 -2px;border-style:solid;border-width:4px 0 4px 7px;border-color:transparent transparent transparent #fff;pointer-events:none;z-index:3}</style>'); 77 } 78 79 loadLazyImage(); 80 $(window).on("scroll",loadLazyImage); 81 $(window).on("resize",loadLazyImage); 82}); 83
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.