PageSourceSearch

https://dk-service.ru/bitrix/templates/eshop_adapt_blue/script.js

js dk-service.ru collected 2026-10-08 14:12:12 UTC 1,119 bytes, 42 lines download raw bytes

1function eshopOpenNativeMenu()
2{
3	var native_menu = BX("bx_native_menu");
4	var is_menu_active = BX.hasClass(native_menu, "active");
5
6	if (is_menu_active)
7	{
8		BX.removeClass(native_menu, "active");
9		BX.removeClass(BX('bx_menu_bg'), "active");
10		BX("bx_eshop_wrap").style.position = "";
11		BX("bx_eshop_wrap").style.top = "";
12		BX("bx_eshop_wrap").style.overflow = "";
13	}
14	else
15	{
16		BX.addClass(native_menu, "active");
17		BX.addClass(BX('bx_menu_bg'), "active");
18		var topHeight = document.body.scrollTop;
19		BX("bx_eshop_wrap").style.position = "fixed";
20		BX("bx_eshop_wrap").style.top = -topHeight+"px";
21		BX("bx_eshop_wrap").style.overflow = "hidden";
22	}
23
24	var easing = new BX.easing({
25		duration : 300,
26		start : { left : (is_menu_active) ? 0 : -100 },
27		finish : { left : (is_menu_active) ? -100 : 0 },
28		transition : BX.easing.transitions.quart,
29		step : function(state){
30			native_menu.style.left = state.left + "%";
31		}
32	});
33	easing.animate();
34}
35
36window.addEventListener('resize',
37	function() {
38		if (window.innerWidth >= 640 && BX.hasClass(BX("bx_native_menu"), "active"))
39			eshopOpenNativeMenu();
40	},
41	false
42);

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.