PageSourceSearch

https://krtcartshop.com/wp-content/plugins/pisol-mmq/public/js/pisol-mmq-public.js?ver=1.0.0

js krtcartshop.com collected 2026-10-05 01:15:25 UTC 2,498 bytes, 105 lines download raw bytes

1(function ($) {
2	'use strict';
3
4	jQuery(function ($) {
5
6		var message = {
7			fadeInTime: 600,
8			fadeOuttime: 600,
9			howLongToShow: pisol_mmq.howLongToShow,
10			showContinues: pisol_mmq.showContinues,
11			show: function () {
12				if(!pisol_mmq.show_amount_bar) return;
13
14				var bar_content = jQuery('.pisol-mmq-bar-message').html();
15				if (bar_content == '') {
16					message.hide();
17					return;
18				}
19
20				message.hide_progress();
21				jQuery('.pisol-mmq-bar-container').fadeIn(message.fadeInTime);
22				if (!message.showContinues) {
23					setTimeout(function () { message.hide(); }, message.howLongToShow);
24				}
25			},
26
27			hide: function () {
28				message.show_progress();
29				jQuery('.pisol-mmq-bar-container').fadeOut(message.fadeOuttime);
30			},
31
32			close_button: function () {
33				jQuery('.pisol-mmq-close').click(function () {
34					message.hide();
35				});
36			},
37
38			hide_progress: function () {
39				jQuery('#pi-mmq-progress-circle').fadeOut();
40			},
41
42			show_progress: function () {
43				jQuery('#pi-mmq-progress-circle').fadeIn();
44			},
45
46			close_progress: function () {
47				jQuery('#pi-mmq-progress-circle').on('click', function () {
48					message.hide_progress();
49					message.show();
50				});
51			},
52
53
54			update_cart: function () {
55				jQuery(document).on('added_to_cart updated_wc_div updated_checkout', function (event) {
56					message.amount_progress();
57				});
58			},
59
60			amount_progress: function () {
61				jQuery.ajax({
62					url: pisol_mmq.ajax_url,
63					cache: false,
64					type: 'POST',
65					dataType: 'json',
66					data: {
67						action: 'get_cart_mmq'
68					},
69					success: function (response) {
70
71						var percent = response.percent > 100 ? 1 : (parseFloat(response.percent) / 100);
72
73						if (jQuery('#pi-mmq-progress-circle').length !== 0) {
74							if (jQuery().circleProgress) {
75								jQuery('#pi-mmq-progress-circle').circleProgress('value', percent);
76							}
77						}
78
79						jQuery(".pisol-mmq-bar-message").html(response.message_bar);
80						message.show();
81
82					}
83				});
84			}
85		};
86		message.show();
87		message.update_cart();
88		message.close_button();
89		message.amount_progress();
90		message.close_progress();
91	});
92
93	jQuery(function () {
94		var percent = pisol_mmq.percent > 100 ? 1 : (parseFloat(pisol_mmq.percent) / 100);
95		jQuery('#pi-mmq-progress-circle').circleProgress({
96			value: percent,
97			size: 70,
98			fill: {
99				gradient: ["red", "orange"]
100			}
101		});
102	});
103
104})(jQuery);
105

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.