PageSourceSearch

https://www.mayihr.com/blog/wp-content/themes/justnews/js/wp-show-img.js?t=1791176680

js mayihr.com collected 2026-10-05 05:05:47 UTC 1,378 bytes, 41 lines download raw bytes

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.