PageSourceSearch

https://komplektadr.ru/bitrix/templates/aspro_max/js/section_filter.js

js komplektadr.ru collected 2026-10-08 15:21:02 UTC 1,004 bytes, 30 lines download raw bytes

1$(document).ready(function(){ 
2	InitScrollBar();
3    
4	$('.select_head_wrap .menu_item_selected span').text($('.select_head_wrap .head-block .item-link.active').text());
5	$('.select_head_wrap .menu_item_selected').on('click', function(){ 
6		if(window.matchMedia('(max-width: 767px)').matches){ 
7			$(this).toggleClass('opened'); 
8			$(this).closest('.select_head_wrap').find('.head-block').slideToggle(200); 
9		} 
10	}); 
11
12	$('.select_head_wrap .btn-inline').on('click', function(){ 
13		var text = $(this).text(); 
14		var head_wrap = $(this).closest('.select_head_wrap');
15
16		head_wrap.find('.menu_item_selected span').text(text);
17		head_wrap.find('.menu_item_selected').removeClass('opened'); 
18		if(window.matchMedia('(max-width: 767px)').matches){ 
19			head_wrap.find('.head-block').slideUp(200); 
20		} 
21	}); 
22	
23	// close select
24	$("html, body").on('mousedown', function(e){
25		if(!$(e.target).closest('.select_head_wrap').length)
26		{
27			$('.select_head_wrap .menu_item_selected.opened').click();
28		}
29	});
30}); 

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.