PageSourceSearch

https://www.imichile.cl/wp-content/themes/uncode/library/js/woocommerce-wishlist.js?ver=313040710

js imichile.cl collected 2026-10-06 02:27:29 UTC 1,423 bytes, 46 lines download raw bytes

1(function($) {
2	"use strict";
3
4	function refresh_wishlist_count() {
5		if (window.wc_add_to_cart_params != undefined) {
6			$.post({
7				url: wc_add_to_cart_params.ajax_url,
8				dataType: 'JSON',
9				data: {
10					action: 'get_wishlist_count_ajax'
11				},
12				success: function(data, textStatus, XMLHttpRequest) {
13					if (data != '') {
14						if ($('.uncode-wishlist .badge, .mobile-wishlist-icon .badge').length) {
15							if (data.count > 0) {
16								$('.uncode-wishlist .badge, .mobile-wishlist-icon .badge').html(data.count);
17								$('.uncode-wishlist .badge, .mobile-wishlist-icon .badge').show();
18							} else {
19								$('.uncode-wishlist .badge, .mobile-wishlist-icon .badge').hide();
20							}
21						} else {
22							$('.uncode-wishlist .wishlist-icon-container').append('<span class="badge">' + data.count + '</span>'); //
23						}
24					}
25				}
26			});
27		}
28	}
29
30	function append_skin_to_popup() {
31		if ($('.pp_pic_holder').length) {
32			$('.pp_pic_holder').addClass('style-light');
33		}
34	}
35
36	$(document).ready(function() {
37		$(document).bind("yith_wcwl_init_after_ajax", refresh_wishlist_count);
38		$(document).on("yith_wcwl_popup_opened", append_skin_to_popup);
39	});
40
41	$(document).on('uncode-ajax-filtered more-items-loaded', function () {
42		if (window.UncodeWCParameters != undefined && window.UncodeWCParameters.yith_ajax_wishlist === '1') {
43			$(document).trigger( 'yith_wcwl_reload_fragments' );
44		}
45	});
46})(jQuery);

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.