PageSourceSearch

https://www.almustafatrust.org/wp-content/plugins/pillar-cause-cus…//assets/js/i3-ccf-frontend.js?ver=0.1

js almustafatrust.org collected 2026-09-24 08:44:58 UTC 1,654 bytes, 59 lines download raw bytes

1(function($){
2    $.unserialize = function(serializedString){
3        var str = decodeURI(serializedString);
4        var pairs = str.split('&');
5        var obj = {}, p, idx, val;
6        for (var i=0, n=pairs.length; i < n; i++) {
7            p = pairs[i].split('=');
8            idx = p[0];
9
10            if (idx.indexOf("[]") == (idx.length - 2)) {
11                // Eh um vetor
12                var ind = idx.substring(0, idx.length-2)
13                if (obj[ind] === undefined) {
14                    obj[ind] = [];
15                }
16                obj[ind].push(p[1]);
17            }
18            else {
19                obj[idx] = p[1];
20            }
21        }
22        return obj;
23    };
24})(jQuery);
25
26jQuery(document).ready(function($) {
27
28    $('.i3d.df').on("submit", ".i3ccf-form", function(e) {
29        e.preventDefault();
30        $(this).find(".i3ccf-form-submit").attr("disabled", "disabled"); 
31        
32        var values = $.unserialize($(this).serialize());
33
34        var field_name = values.field_name;
35
36        params = {state: "cart", data: {
37            'hash': values.hash,
38            'args': {}
39        }};
40
41        params.data.args[field_name] = values[field_name];
42
43        params.data.action = "i3dAddItemArgsToCart";
44
45        params.success = function(response) {
46            if(response.errors == 0)
47            {
48               //mimic this event to do something;
49               $(window).trigger("i3dItemAddedToCart", {item: params.data, cart: response.cart, state: params.state});
50            }
51            else
52            {
53                alert(response.errors);
54            }
55        }
56
57        i3d.ajax(params);
58    });
59});

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.