PageSourceSearch

https://iums2024.com/wp-content/themes/sway/core/assets/js/woocommerce-keydesign.js

js iums2024.com collected 2026-09-30 22:48:55 UTC 1,130 bytes, 39 lines download raw bytes

1(function($){
2	"use strict";
3
4	function get_cart(){
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: 'woomenucart_ajax'
11				},
12				success: function(data, textStatus, XMLHttpRequest) {
13					$('.keydesign-cart-dropdown').html(data.cart);
14					if(data != '') {
15						if($('.keydesign-cart .badge, .mobile-shopping-cart .badge').length){
16							if(data.articles>0){
17								$('.keydesign-cart .badge, .mobile-shopping-cart .badge').html(data.articles);
18								$('.keydesign-cart .badge, .mobile-shopping-cart .badge').show();
19							} else {
20								$('.keydesign-cart .badge, .mobile-shopping-cart .badge').hide();
21							}
22						} else $('.keydesign-cart .cart-icon-container').append('<span class="badge">'+data.articles+'</span>');
23					}
24				}
25			});
26		}
27	}
28
29	$(document).ready(function(){
30		$('body').bind("added_to_cart", get_cart);
31		$('body').bind("wc_fragments_refreshed", get_cart);
32
33		if ($('body.yith-request-a-quote-page').length > 0) {
34            $('body').addClass('woocommerce-cart');
35        }
36
37	});
38
39})(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.