PageSourceSearch

https://lab-term.ru/bitrix/templates/aspro-priority/components/aspro/tabs.priority/main/script.js

js lab-term.ru collected 2026-10-08 09:13:01 UTC 1,637 bytes, 70 lines download raw bytes

1$(document).ready(function(){
2	var tabs = $('.tabs_ajax__top-block .tabs');
3	//InitScrollBar(tabs);
4
5	$('.tabs_ajax__head-block').scrollTab({
6		tabs_wrapper: '.scroll-tabs-wrapper',
7		arrows_css: {
8			'top': '-1px',
9		},
10		width_grow: 3,
11		onResize: function(options) {
12			var top_wrapper = options.scrollTab.closest('.tabs_ajax__top-block');
13			if(top_wrapper.length) {
14				var tabs_wrapper = top_wrapper.find('.tabs_ajax__head-block');
15
16				if(window.matchMedia('(max-width: 767px)').matches){
17					tabs_wrapper.css({
18						'width': '100%',
19						'max-width': '',
20					});
21					return true;
22				}
23
24				var title = top_wrapper.find('h2');
25				var right_link = top_wrapper.find('a.show_all');
26				var all_width = top_wrapper[0].getBoundingClientRect().width;
27
28				if(title.length) {
29					all_width -= title.outerWidth(true);
30				}
31
32				if(right_link.length) {
33					all_width -= right_link.outerWidth(true);
34				}
35
36				all_width -= Number.parseInt(tabs_wrapper.css('margin-right'));
37
38				tabs_wrapper.css({
39					'max-width': all_width,
40					'width': '',
41				});
42			}
43			options.width = all_width;
44		}
45	});
46
47
48
49	/*if(tabs.length) {
50		BX.addCustomEvent('onWindowResize', function(eventdata){
51			try{
52				if(window.matchMedia('(min-width: 768px)').matches) {
53					var title_width = $('.tabs_ajax__top-block h2').outerWidth(true);
54					var show_all_width = $('.tabs_ajax__top-block .show_all').outerWidth(true);
55		
56					tabs.css({
57						left: title_width,
58						right: show_all_width,
59					});
60					tabs.show();
61				}
62				
63			}
64			catch(e){console.log(e);}
65		});
66	}*/
67
68
69
70});

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.