PageSourceSearch

https://www.hiwin.cz/_ui/responsive/common/js/acc.minicart.js

js hiwin.cz collected 2026-10-09 01:10:59 UTC 1,308 bytes, 45 lines download raw bytes

1ACC.minicart = {
2	
3	_autoload: [
4		"bindMiniCart"
5	],
6
7	bindMiniCart: function(){
8
9		$(document).on("click",".js-mini-cart-link", function(e){
10			e.preventDefault();
11			var url = $(this).data("miniCartUrl");
12			var cartName = ($(this).find(".js-mini-cart-count").html() != 0) ? $(this).data("miniCartName"):$(this).data("miniCartEmptyName");
13
14			ACC.colorbox.open(ACC.common.encodeHtml(cartName),{
15				href: url,
16				maxWidth:"100%",
17				width:"380px",
18				initialWidth :"380px"
19			});
20		});
21
22		$(document).on("click",".js-mini-cart-close-button", function(e){
23			e.preventDefault();
24			ACC.colorbox.close();
25		});
26	},
27
28	updateMiniCartDisplay: function(){
29		var cartItems = $(".js-mini-cart-link").data("miniCartItemsText");
30		var miniCartRefreshUrl = $(".js-mini-cart-link").data("miniCartRefreshUrl");
31		$.ajax({
32			url: miniCartRefreshUrl,
33			cache: false,
34			type: 'GET',
35			dataType: 'json',
36			success: function(jsonData){
37				var $numberItem = $("<span>").addClass("nav-items-total").text(jsonData.miniCartCount).append($cartItems);
38				$(".js-mini-cart-link .js-mini-cart-count").empty();
39				$(".js-mini-cart-link .js-mini-cart-count").append($numberItem);
40				$(".js-mini-cart-link .js-mini-cart-price").text(jsonData.miniCartPrice);	
41			}
42		});
43	}
44
45};

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.