PageSourceSearch

https://white-mall.ru/js/site.js?1790855511cef96671365d8e75044ee627b3f93783

js white-mall.ru collected 2026-10-05 00:36:46 UTC 1,314 bytes, 26 lines download raw bytes

1function headerBasketUpdaterCallbackScript() {
2	if (window.headerBasketUpdaterCallbackScriptIncluded) {
3		// защита от подключения скрипта дважды,
4		// ибо по умолчанию он подключался в поле "код в теге head"
5		// на странице для вставки, потом был вынесен в код
6		return;
7	}
8	window.headerBasketUpdaterCallbackScriptIncluded = true;
9
10	window['emarket.updateCart.url'] = '/udata/emarket/getOrderWithConvertedTotal/.json';
11	window['emarket.updateCart.dataType'] = 'json';
12	window['emarket.updateCart.callback'] = function(data) {
13		var totalPrice = data.summary.amount == 0 ? "Ваша корзина пуста" : data.summary['total-price'];
14		if (data.summary.amount > 0) {
15			$('#header_basket .cart_items').removeClass('hidden');
16			$('#header_basket .header_card_currency').show();
17		} else {
18			$('#header_basket .cart_items').addClass('hidden');
19			$('#header_basket .header_card_currency').hide();
20		}
21		$('#header_basket .cart_items').text(data.summary.amount);
22		$('#header_basket .cart_price').text((typeof totalPrice === 'string') ? totalPrice : parseFloat(totalPrice).toFixed(2) + ' ');
23		$('.sticker_cart .cart_items').text(data.summary.amount);
24	};
25}
26headerBasketUpdaterCallbackScript();

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.