PageSourceSearch

https://gilar.ir/wp-content/themes/ouioui/js/file.js

js gilar.ir collected 2026-09-27 21:15:14 UTC 2,202 bytes, 50 lines download raw bytes

1jQuery(function($) {
2    $("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('<input type="button" value="+" class="plus" />').prepend('<input type="button" value="-" class="minus" />'), $(document).on("click", ".plus, .minus", function() {
3        var t = $(this).closest(".quantity").find(".qty"),
4            a = parseFloat(t.val()),
5            n = parseFloat(t.attr("max")),
6            s = parseFloat(t.attr("min")),
7            e = t.attr("step");
8        a && "" !== a && "NaN" !== a || (a = 0), ("" === n || "NaN" === n) && (n = ""), ("" === s || "NaN" === s) && (s = 0), ("any" === e || "" === e || void 0 === e || "NaN" === parseFloat(e)) && (e = 1), $(this).is(".plus") ? t.val(n && (n == a || a > n) ? n : a + parseFloat(e)) : s && (s == a || s > a) ? t.val(s) : a > 0 && t.val(a - parseFloat(e)), t.trigger("change")
9    })
10});
11
12
13
14jQuery.cookie = function(e, t, n) {
15    if (typeof t != "undefined") {
16        n = n || {};
17        if (t === null) {
18            t = "";
19            n.expires = -1
20        }
21        var r = "";
22        if (n.expires && (typeof n.expires == "number" || n.expires.toUTCString)) {
23            var i;
24            if (typeof n.expires == "number") {
25                i = new Date;
26                i.setTime(i.getTime() + n.expires * 24 * 60 * 60 * 1e3)
27            } else {
28                i = n.expires
29            }
30            r = "; expires=" + i.toUTCString()
31        }
32        var s = n.path ? "; path=" + n.path : "";
33        var o = n.domain ? "; domain=" + n.domain : "";
34        var u = n.secure ? "; secure" : "";
35        document.cookie = [e, "=", encodeURIComponent(t), r, s, o, u].join("")
36    } else {
37        var a = null;
38        if (document.cookie && document.cookie != "") {
39            var f = document.cookie.split(";");
40            for (var l = 0; l < f.length; l++) {
41                var c = jQuery.trim(f[l]);
42                if (c.substring(0, e.length + 1) == e + "=") {
43                    a = decodeURIComponent(c.substring(e.length + 1));
44                    break
45                }
46            }
47        }
48        return a
49    }
50}

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.