PageSourceSearch

https://bbs.pinggu.org/static_pgc/js/comment.js?20210120

js pinggu.org collected 2026-09-24 09:16:13 UTC 1,814 bytes, 65 lines download raw bytes

1$(function () {
2    //评论点赞
3    $(".click-like-comment").click(function(){
4        if(!'{$isLogin}'){
5            sso.goLogin();
6            return;
7        }
8        var commentId=$(this).data("id");
9        var self = $(this);
10        $.post(
11            "/blog/comment/index/postLike", {
12                commentId: commentId
13            },
14            function(data) {
15                //$.toast( data.msg);
16                if(data.code==0){
17                    pgc_layer_alert(data.msg);
18
19                    var spanId="#comment_like_"+commentId;
20                    var num=parseInt($(spanId).html());
21                    $(spanId).html(num+1);
22                    self.children().attr("src","/static_pgc/image/zan-like.png");
23
24                    window.location.reload();
25                }else{
26
27                    pgc_layer_alert_error(data.msg);
28
29                }
30            }
31        );
32    });
33    //评论踩
34    $(".click-step-comment").click(function(){
35        if(!'{$isLogin}'){
36            sso.goLogin();
37            return;
38        }
39        var commentId=$(this).data("id");
40        var self = $(this);
41        $.post(
42            "/blog/comment/index/postStep", {
43                commentId: commentId
44            },
45            function(data) {
46                //$.toast( data.msg);
47                if(data.code==0){
48                    pgc_layer_alert(data.msg);
49
50                    var spanId="#comment_step_"+commentId;
51                    var num=parseInt($(spanId).html());
52                    $(spanId).html(num+1);
53                    self.children().attr("src","/static_pgc/image/cai-like.png");
54
55                    window.location.reload();
56                }else{
57
58                    pgc_layer_alert_error(data.msg);
59
60                }
61            }
62        );
63    });
64
65})

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.