PageSourceSearch

https://www.museunauticodabahia.org.br/wp-content/plugins/woolementor/assets/js/front.js?ver=4.31

js museunauticodabahia.org.br collected 2026-10-02 18:28:00 UTC 2,604 bytes, 88 lines download raw bytes

1let codesigner_modal = (show = true) => {
2    if (show) {
3        jQuery("#codesigner-modal").show();
4    } else {
5        jQuery("#codesigner-modal").hide();
6    }
7};
8
9jQuery(function ($) {
10    // add to wishlist
11    $(document).on("click", ".ajax_add_to_wish", function (e) {
12        e.preventDefault();
13        var $this = $(this);
14        var $product_id = $this.data("product_id");
15
16        $.ajax({
17            url: CODESIGNER.ajaxurl,
18            data: {
19                action: "add-to-wish",
20                _wpnonce: CODESIGNER._wpnonce,
21                product_id: $product_id,
22            },
23            type: "POST",
24            dataType: "JSON",
25            success: function (resp) {
26                if (resp.action == "added") {
27                    $this.addClass("fav-item");
28                } else {
29                    $this.removeClass("fav-item");
30                }
31            },
32            error: function (resp) {
33                console.log(resp);
34            },
35        });
36    });
37
38    // remove from wishlist
39    $(document).on("click", ".ajax_remove_from_wish", function (e) {
40        e.preventDefault();
41        var $this = $(this);
42        var $product_id = $this.data("product_id");
43
44        $.ajax({
45            url: CODESIGNER.ajaxurl,
46            data: {
47                action: "add-to-wish",
48                _wpnonce: CODESIGNER._wpnonce,
49                product_id: $product_id,
50            },
51            type: "POST",
52            dataType: "JSON",
53            success: function (resp) {
54                if (resp.action == "removed") {
55                    $this.closest("tr").remove();
56                }
57            },
58            error: function (resp) {
59                console.log(resp);
60            },
61        });
62    });
63
64    // multiple-product-add-to-cart
65    $(".multiple-product-add-to-cart").on("submit", function (e) {
66        e.preventDefault();
67        var $formData = $(this).serializeArray();
68        $.ajax({
69            url: CODESIGNER.ajaxurl,
70            data: $formData,
71            type: "POST",
72            dataType: "JSON",
73            success: function (resp) {
74                if (resp.status == 1) {
75                    $(".multiselect-view-cart").show();
76                }
77            },
78            error: function (resp) {
79                console.log(resp);
80            },
81        });
82    });
83
84    // Add this code to remove the disable attribute issue
85    $('form.variations_form').on('found_variation', function(event, variation) {
86        $('.single_add_to_cart_button').prop('disabled', false).removeClass('disabled');
87    });
88});

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.