PageSourceSearch

https://hivetasks.com/res/js/manual_vote.js

js hivetasks.com collected 2026-10-08 01:56:36 UTC 2,792 bytes, 71 lines download raw bytes

1var fZ = function (a) {
2    this.AJ(a)
3};
4fZ.ct = function (a, b, c, d) {
5    a.bA(bD);
6    b = a.d1("ManualVote", "Manual Vote").aI();
7    var e = new fZ(b);
8    a.aN(c + "Manual Vote");
9    a.ak(function () {
10        Pa([
11            [D.C, "AG"],
12            [D.C, "AF"],
13            [D.C, "Bs"]
14        ], function () {
15            d(function () {
16                return e.AH()
17            })
18        })
19    });
20    a.al();
21    return e
22};
23fZ.prototype.AJ = function (a) {
24    var b = this;
25    Fs.lY(a, "#manualVoteAuthor,#manualVoteType{width:42%}#manualVoteExecute{width:17%}#manualVoteSlider{width:252px}");
26    a.append('<table class="dataTable smallSize"><tr><td>Post Link</td><td><input type="text" id="manualVoteLink"></td></tr><tr><td>Author</td><td><input type="text" id="manualVoteAuthor" class="inputAccountName"></td></tr><tr><td>Type</td><td><select id="manualVoteType"><option value="1" selected>Upvote</option><option value="-1">Downvote (Flag)</option></select></td></tr><tr><td>Weight</td><td><span id="manualVoteSliderValue" class="voteSliderValue" data-slider="manualVoteSlider"> $ 0.00 </span><div id="manualVoteSlider" class="voteSlider"></div></td></tr><tr><td></td><td><button id="manualVoteExecute">Vote</button></td></tr></table> ');
27    this.jT =
28            gL.gQ(a.find("#manualVoteType"), {
29                dj: function () {
30                    b.AH()
31                }
32            });
33    this.gg = a.find("#manualVoteExecute").button().on("click", function () {
34        if (D.t.am(!0)) {
35            b.gd = ga("#manualVoteSlider .hSlider");
36            var a = b.ge.val(),
37                    d = b.gf.val(),
38                    e = parseInt(b.jT.bO()),
39                    f = 100 * Math.ceil(b.gd.bO()) * e;
40            if (a && d) {
41                var g = function (a) {
42                    Zn.Ms(b.gg, !0);
43                    a && (D6.EA("Done!"), b.gf.val(""), D.s.JX(!0, function () {
44                        return b.AH()
45                    }))
46                };
47                D.t.DO(F2, !1, !1, function (c) {
48                    Zn.Ms(b.gg, !1);
49                    D.S.FV(c, D.l, a, d, f, g)
50                })
51            } else
52                D6.EA(fN("fill_required_fields_hint"))
53        }
54    });
55    this.ge = a.find("#manualVoteAuthor");
56    this.gf = a.find("#manualVoteLink").on("input", function () {
57        var a = b.gf.val(),
58                d = a.indexOf("@");
59        if (-1 < d && (a = a.substring(d, a.length), d = a.indexOf("/"), -1 < d)) {
60            var e = a.substring(0, d);
61            a = a.substring(d + 1, a.length);
62            b.ge.val(e.replace("@", ""));
63            b.gf.val(a)
64        }
65    })
66};
67fZ.prototype.AH = function () {
68    D.p.YU(20);
69    var a = D.p.VJ("Upvote");
70    D.U.AH(".voteSlider", a)
71};

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.