1$(document).ready(function () { 2 // ææaæ ç¾ ç»å®äºä»¶ 3 $("a").click(function () { 4 let imgUrl = $(this).attr('href'); 5 let reg = RegExp(/show_img=1/); 6 if (imgUrl.match(reg)) { 7 $("#imgLayer").show(); 8 $("#imgBoxl").css('display', 'flex'); 9 imgShow(imgUrl); 10 return false; 11 } 12 }); 13 14 // éèå¾ç 15 $("#imgLayer").click(function () { 16 $("#imgLayer").hide(); 17 $("#imgBoxl").hide(); 18 }); 19 $("#imgBoxl").click(function () { 20 $("#imgLayer").hide(); 21 $("#imgBoxl").hide(); 22 }); 23 24 function imgShow(imgUrl) { 25 var img = document.getElementById("bigimg") 26 img.setAttribute('src', imgUrl); 27 // var imgw = img.naturalWidth 28 // var imgh = img.naturalHeight //è·åå¾ççåå§å®½é« 29 // var userw = document.body.clientWidth 30 // var userh = document.body.clientHeight //è·åç¨æ·æ¸¸è§å¨çå®½é« 31 32 // if (imgw >= (userw * 0.8) && imgh <= (userh * 0.8)) { //夿å¾ç大尿¯å¦è¶ è¿ç¨æ·æ¸¸è§å¨å®½é«ç80%ï¼ä»¥å®ä¹å¾çå¤§å° 33 // img.style.height = "auto"; 34 // } else if (imgh >= (userh * 0.8)) { 35 // img.style.width = "auto"; 36 // } else { 37 // img.style.width = "auto"; 38 // img.style.height = "auto"; 39 // } 40 } 41});
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.