PageSourceSearch

https://melisheff.ru/bitrix/templates/aspro-priority/components/bitrix/menu/top/script.js

js melisheff.ru collected 2026-10-10 00:23:35 UTC 780 bytes, 27 lines download raw bytes

1$(document).ready(function(){
2	$(document).on('click', '.mega-menu table td.full_dropdown .dropdown-menu li.more_items>span', function(){
3		var _this = $(this),
4			openText = _this.data('open_text'),
5			closeText = _this.data('close_text');
6			
7		_this.toggleClass('opened');
8		
9		if(_this.hasClass('opened')){
10			_this.text(closeText);
11
12		}
13		else{
14			_this.text(openText);
15		}
16
17		_this.closest('ul').find('li.collapsed').slideToggle(200, function(){
18			if(_this.hasClass('opened')){
19				//_this.closest('ul').find('li').css('display', 'inline');
20				_this.closest('ul').find('li .separator').css('opacity', 1);
21			}
22			else{
23				_this.closest('ul').find('li:not(.more_items):visible').last().find('.separator').css('opacity', 0);
24			}			
25		});
26	});
27});

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.