1jQuery(function () { 2 3 var jQuerytarget_set; 4 var imgind; 5 jQuery(".js-imgSet a:not(.not)").hover( 6 function () { 7 jQuerytarget_set = jQuery(this).parents(".js-imgSet"); 8 imgind = jQuerytarget_set.find('a').index(this); 9 var photo = jQuery(this).find("img").attr("src"); 10 var phototitle = jQuery(this).find("img").attr("alt"); 11 var photorel = jQuery(this).find("img").attr("title"); 12 var href = jQuery(this).attr("href"); 13 var cap = jQuery(this).find("img").attr("alt"); 14 jQuery(this).parents(".js-imgLay").find(".mainImg").find("img").attr({ src: photo }).attr({ alt: phototitle }).attr({ title: photorel }); 15 jQuery(this).parents(".js-imgLay").find(".mainImg").find("a").attr({ href: href }); 16 jQuery(this).parents(".js-imgLay").find(".mainImg").find(".imgCom").html(cap); 17 }, 18 function () { 19 } 20 ); 21 22 /*--åä¸ç»åãããã¢ãã---*/ 23 24 var imgtitle; 25 var imgrel; 26 var dlt_poptxt; 27 jQuery("a:not(.js-imgSet a):not(.bindzoom)[href $= 'jpg'], a:not(.js-imgSet a):not(.bindzoom)[href $= 'gif'], a:not(.js-imgSet a):not(.bindzoom)[href $= 'png'], a:not(.js-imgSet a):not(.bindzoom)[href $= 'jpeg']").on( 28 'click', function () { 29 var newimg = new Image(); 30 imgtitle = imgrel = ''; 31 if (jQuery(this).find('img').attr("alt")) { 32 imgtitle = jQuery(this).find('img').attr("alt"); 33 } 34 if (jQuery(this).find('img').attr("title")) { 35 imgrel = jQuery(this).find('img').attr("title"); 36 } 37 jQuery(newimg).on('load', function () { 38 jQuery('body').append('<div class="dlt_shade"><div id="dlt_imgloader"></div><div class="dlt_popimg"><img src="' + newimg.src + '"></div><div class="dlt_poptxt"><p class="dlt_poptitle">' + imgtitle + '</p><p>' + imgrel + '</p></div><span class="dlt_close"><a href="#">Ã</a></span></div>'); 39 jQuery('.dlt_shade').css({ opacity: 0 }).stop().animate({ opacity: 1 }, 400, 'easeInOutCubic'); 40 if (jQuery('.dlt_popimg img').height() >= jQuery(window).height() * 0.8) { 41 jQuery('.dlt_popimg img').css({ height: jQuery(window).height() * 0.8, width: 'auto' }); 42 } 43 if (jQuery('.dlt_popimg img').width() >= jQuery(window).width() * 0.8) { 44 jQuery('.dlt_popimg img').css({ width: jQuery(window).width() * 0.8, height: 'auto' }); 45 } 46 jQuery('.dlt_poptxt').css({ width: jQuery('.dlt_popimg img').width() }); 47 jQuery('.dlt_popimg img').css({ left: '50%', margin: 0, marginLeft: jQuery('.dlt_popimg img').width() * -0.5, marginTop: jQuery('.dlt_popimg img').height() * -0.5 - jQuery('.dlt_poptxt').height() * 0.5 }); 48 jQuery('.dlt_poptxt').css({ marginLeft: jQuery('.dlt_poptxt').width() * -0.5, marginTop: jQuery('.dlt_popimg img').height() * 0.5 - jQuery('.dlt_poptxt').height() * 0.5 }); 49 jQuery('.dlt_shade .dlt_close').css({ marginLeft: jQuery('.dlt_popimg img').width() / 2 - 17, marginTop: jQuery('.dlt_popimg img').height() / -2 - 17 - jQuery('.dlt_poptxt').height() * 0.5 }); 50 jQuery('#dlt_imgloader').stop().animate({ opacity: 'hide', }, { duration: 400, easing: 'linear', }); 51 }); 52 newimg.src = jQuery(this).attr("href") 53 return false; 54 } 55 ); 56 jQuery(document).on('click', '.dlt_shade .dlt_close a', function () { 57 jQuery('.dlt_shade').stop().animate({ opacity: 0 }, 400, 'easeInOutCubic', function () { 58 jQuery('.dlt_shade').remove(); 59 }); 60 return false; 61 }); 62 jQuery(document).on('click', '.dlt_shade', function () { 63 jQuery('.dlt_shade').stop().animate({ opacity: 0 }, 400, 'easeInOutCubic', function () { 64 jQuery('.dlt_shade').remove(); 65 }); 66 return false; 67 }); 68 jQuery(document).on('click', '.dlt_popimg img', function () { 69 return false; 70 }); 71 72 /*--è¤æ°ç»åãããã¢ãã---*/ 73 74 var imgset; 75 var imgnum; 76 jQuery(".js-imgSet a[href $= 'jpg'], .js-imgSet a[href $= 'gif'], .js-imgSet a[href $= 'png'], .js-imgSet a[href $= 'jpeg']").on( 77 'click', function () { 78 imgset = jQuery('body *').children('.js-imgSet').index(jQuery(this).parents('.js-imgSet'));//ä½åç®ã®.js-imgSetãåå¾ 79 jQuerytarget_set = jQuery(this).parents(".js-imgSet"); 80 imgnum = jQuerytarget_set.find('a').size(); 81 imgtitle = imgrel = ''; 82 if (jQuery(this).find('img').attr("alt")) { 83 imgtitle = jQuery(this).find('img').attr("alt"); 84 } 85 if (jQuery(this).find('img').attr("title")) { 86 imgrel = jQuery(this).find('img').attr("title"); 87 } 88 var newimg = new Image(); 89 jQuery(newimg).on('load', function () { 90 jQuery('body').append('<div class="dlt_shade"><div id="dlt_imgloader"></div><div class="dlt_popimg"><img src="' + newimg.src + '"></div><div class="dlt_poptxt"><p class="dlt_poptitle">' + imgtitle + '</p><p>' + imgrel + '</p></div><span class="dlt_close"><a href="#">Ã</a></span><span class="dlt_bprev"><a href="#">Prev</a></span><span class="dlt_bnext"><a href="#">Next</a></span></div>'); 91 if (imgnum > 1) { 92 jQuery('.dlt_bprev, .dlt_bnext').css({ display: 'block' }); 93 } else { 94 jQuery('.dlt_bprev, .dlt_bnext').css({ display: 'none' }); 95 } 96 jQuery('.dlt_shade').css({ opacity: 0 }).stop().animate({ opacity: 1 }, 400, 'easeInOutCubic'); 97 var imgW = jQuery('.dlt_popimg img').width(); 98 var imgH = jQuery('.dlt_popimg img').height(); 99 var windowW = jQuery(window).width(); 100 var windowH = jQuery(window).height(); 101 jQuery('.dlt_popimg img').css({ height: imgH, width: imgW }); 102 if( imgH >= windowH * 0.8 || imgW >= windowW * 0.8 ){ 103 if (imgH >= imgW) { 104 var RatioImgW = imgW / imgH; 105 var RatioWindowW = imgW / windowH; 106 if (RatioImgW > RatioWindowW) { 107 jQuery('.dlt_popimg img').css({ width: imgW * 0.8, height: 'auto' }); 108 } else { 109 jQuery('.dlt_popimg img').css({ width: 'auto', height: windowH * 0.8 }); 110 } 111 } 112 if (imgW >= imgH) { 113 var RatioImgH = imgH / imgW; 114 var RatioWindowH = windowH / windowW; 115 if (RatioImgH > RatioWindowH) { 116 jQuery('.dlt_popimg img').css({ width: 'auto', height: windowH * 0.8 }); 117 } else { 118 jQuery('.dlt_popimg img').css({ width: windowW * 0.8, height: 'auto' }); 119 } 120 } 121 } 122 jQuery('.dlt_poptxt').css({ width: jQuery('.dlt_popimg img').width() }); 123 jQuery('.dlt_popimg img').css({ left: '50%', margin: 0, marginLeft: jQuery('.dlt_popimg img').width() * -0.5, marginTop: jQuery('.dlt_popimg img').height() * -0.5 - jQuery('.dlt_poptxt').height() * 0.5 }); 124 jQuery('.dlt_poptxt').css({ marginLeft: jQuery('.dlt_poptxt').width() * -0.5, marginTop: jQuery('.dlt_popimg img').height() * 0.5 - jQuery('.dlt_poptxt').height() * 0.5 }); 125 jQuery('.dlt_shade .dlt_close').css({ marginLeft: jQuery('.dlt_popimg img').width() / 2 - 17, marginTop: jQuery('.dlt_shade img').height() / -2 - 17 - jQuery('.dlt_poptxt').height() * 0.5 }); 126 jQuery('#dlt_imgloader').stop().animate({ opacity: 'hide', }, { duration: 400, easing: 'linear', }); 127 }); 128 newimg.src = jQuery(this).attr("href"); 129 return false;
130 } 131 ); 132 jQuery(document).on('click', '.dlt_shade .dlt_close a', function () { 133 jQuery('.dlt_shade').stop().animate({ opacity: 0 }, 400, 'easeInOutCubic', function () { 134 jQuery('.dlt_shade').remove(); 135 }); 136 return false; 137 }); 138 jQuery(document).on('click', '.dlt_shade', function () { 139 jQuery('.dlt_shade').stop().animate({ opacity: 0 }, 400, 'easeInOutCubic', function () { 140 jQuery('.dlt_shade').remove(); 141 }); 142 return false; 143 }); 144 jQuery(document).on('click', '.dlt_popimg img', function () { 145 return false; 146 }); 147 148 /*-*/ 149 150 jQuery(document).on('click', '.dlt_shade span.dlt_bnext a', function () { 151 if (imgind === imgnum - 1) { 152 if (jQuerytarget_set.children().is('.mainImg')) { 153 imgind = 1;//.mainImgãããã¨ãã¯éè¤åé¿ 154 } else { 155 imgind = 0; 156 } 157 } else if (imgind === 0) { 158 if (jQuerytarget_set.children().is('.mainImg')) { 159 imgind = 2;//.mainImgãããã¨ãã¯éè¤åé¿ 160 } else { 161 imgind = 1; 162 } 163 } else { 164 imgind++; 165 } 166 jQuery('#dlt_imgloader').css({ display: 'block' }); 167 jQuery('.dlt_close').stop().animate({ opacity: 0 }, 400, 'easeInOutCubic'); 168 jQuery('.dlt_poptxt').stop().animate({ opacity: 0 }, 400, 'easeInOutCubic'); 169 jQuery('.dlt_popimg img').stop().animate({ opacity: 0 }, 400, 'easeInOutCubic', function () { 170 changeImg(imgind); 171 jQuery('#dlt_imgloader').stop().animate({ opacity: 'hide', }, { duration: 400, easing: 'linear', }); 172 }); 173 return false; 174 }); 175 jQuery(document).on('click', '.dlt_shade span.dlt_bprev a', function () { 176 if (imgind === 0) { 177 imgind = imgnum - 1; 178 } else { 179 imgind--; 180 if (jQuerytarget_set.children().is('.mainImg') && imgind === 0) { 181 imgind = imgnum - 1; 182 } 183 } 184 jQuery('#dlt_imgloader').css({ display: 'block' }); 185 jQuery('.dlt_close').stop().animate({ opacity: 0 }, 400, 'easeInOutCubic'); 186 jQuery('.dlt_poptxt').stop().animate({ opacity: 0 }, 400, 'easeInOutCubic'); 187 jQuery('.dlt_popimg img').stop().animate({ opacity: 0 }, 400, 'easeInOutCubic', function () { 188 changeImg(imgind); 189 jQuery('#dlt_imgloader').stop().animate({ opacity: 'hide', }, { duration: 400, easing: 'linear', }); 190 }); 191 return false; 192 }); 193 var newimg2W = 0; 194 var newimg2H = 0; 195 function changeImg(g) { 196 jQuery('.dlt_popimg img').attr('src', '').attr('alt', '').attr('title', '').css({ marginLeft: 0, marginTop: 0, height: 0, width: 0 }); 197 jQuery('.dlt_poptxt p').html(''); 198 jQuery('.dlt_poptxt p.dlt_poptitle').html(''); 199 jQuery('.dlt_poptxt').css({ opacity: 0, height: 0, width: 0, marginLeft: 0, marginTop: 0 }); 200 jQuery('.dlt_shade .dlt_close').css({ marginLeft: 0, marginTop: 0 }); 201 var newimg2 = new Image(); 202 newimg2.src = jQuery('.js-imgSet:eq(' + imgset + ') a:eq(' + g + ')').attr("href"); 203 imgtitle = imgrel = ''; 204 if (jQuery('.js-imgSet:eq(' + imgset + ') a:eq(' + g + ') img').attr("alt")) { 205 imgtitle = jQuery('.js-imgSet:eq(' + imgset + ') a:eq(' + g + ') img').attr("alt"); 206 } 207 if (jQuery('.js-imgSet:eq(' + imgset + ') a:eq(' + g + ') img').attr("title")) { 208 imgrel = jQuery('.js-imgSet:eq(' + imgset + ') a:eq(' + g + ') img').attr("title"); 209 } 210 jQuery(newimg2).on('load', function () { 211 var newimg2W = newimg2.width; 212 var newimg2H = newimg2.height; 213 var windowW = jQuery(window).width(); 214 var windowH = jQuery(window).height(); 215 jQuery('.dlt_popimg img').css({ height: newimg2H, width: newimg2W }); 216 //jQuery('.dlt_popimg img').height(newimg2H).width(newimg2W); 217 if( newimg2H >= windowH*0.8 || newimg2W >= windowW*0.8 ) { 218 if (newimg2H >= newimg2W) { 219 var RatioNewimg2W = newimg2W / newimg2H; 220 var RatioWindow2W = windowW / windowH; 221 if (RatioNewimg2W > RatioWindow2W) { 222 jQuery('.dlt_popimg img').css({ width: windowW * 0.8, height: 'auto' }); 223 } else { 224 jQuery('.dlt_popimg img').css({ width: 'auto', height: windowH * 0.8 }); 225 } 226 } 227 if (newimg2W >= newimg2H) { 228 var RatioNewimg2H = newimg2H / newimg2W; 229 var RatioWindow2H = windowH / windowW; 230 if (RatioNewimg2H > RatioWindow2H) { 231 jQuery('.dlt_popimg img').css({ width: 'auto', height: windowH * 0.8 }); 232 } else { 233 jQuery('.dlt_popimg img').css({ width: windowW * 0.8, height: 'auto' }); 234 } 235 } 236 } 237 jQuery('.dlt_popimg img').attr('src', newimg2.src).attr('title', imgtitle).attr('alt', imgrel).css({ opacity: 0, marginLeft: jQuery('.dlt_popimg img').width() * -0.5, marginTop: jQuery('.dlt_popimg img').height() * -0.5 - jQuery('.dlt_poptxt').height() * 0.5 }).stop().animate({ opacity: 1 }, 400, 'easeInOutCubic'); 238 jQuery('.dlt_poptxt p').html(imgrel); 239 jQuery('.dlt_poptxt p.dlt_poptitle').html(imgtitle); 240 jQuery('.dlt_poptxt').css({ opacity: 0, width: jQuery('.dlt_popimg img').width(), marginLeft: jQuery('.dlt_popimg img').width() * -0.5, marginTop: jQuery('.dlt_popimg img').height() * 0.5 - jQuery(this).height() * 0.5 }).stop().animate({ opacity: 1 }, 400, 'easeInOutCubic'); 241 jQuery('.dlt_shade .dlt_close').css({ marginLeft: jQuery('.dlt_popimg img').width() / 2 - 17, marginTop: jQuery('.dlt_popimg img').height() / -2 - 17 - jQuery('.dlt_poptxt').height() * 0.5 }).stop().animate({ opacity: 1 }, 400, 'easeInOutCubic'); 242 }); 243 return false;
244 } 245 jQuery('head link:last').after('<link rel="stylesheet" href="/wp-content/themes/cmn/css.css">'); 246 247 /*-----*/ 248 249 jQuery('a.dlt_pagelink[href^="#"]').click(function () { 250 var speed = 500; // ããªç§ 251 var href = jQuery(this).attr("href"); 252 var target = jQuery(href == "#" || href == "" ? 'html' : href); 253 var position = target.offset().top; 254 jQuery('body,html').animate({ scrollTop: position }, speed, 'easeInOutCubic'); 255 return false; 256 }); 257 258});
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.