PageSourceSearch

https://1c.tj/local/templates/1c/js/main.js?14600355951603

js 1c.tj collected 2026-10-07 02:59:19 UTC 1,603 bytes, 75 lines download raw bytes

1function checkTableWidth()
2{		
3	var wraperWidth = $(".widebox").width();
4	
5	$(".widebox table").each(function(){
6				
7		if(wraperWidth >= $(this).width())
8		{
9			if($(this).parent().hasClass('table-resizable'))
10			{
11				$(this).parent().removeOverscroll();
12			}
13		}
14		
15		if(wraperWidth < $(this).width())
16		{
17			if(!$(this).parent().hasClass('table-resizable'))
18			{
19				$(this).wrap('<div class="table-resizable"></div>');
20			}
21				
22			$(this).parent().overscroll({
23				persistThumbs: true,
24				direction: 'horizontal',
25				captureWheel: false			
26			})
27		}
28	});			
29}
30
31$(document).ready(function(){
32	$('.showMore').click(function() {
33		$(this).parents('tr').hide();
34		$(this).parents('tbody').next('tbody').show();
35	});
36	
37	checkTableWidth();	
38});
39
40$(window).resize(function(){		
41	checkTableWidth();
42});
43
44function infoBlockSimilarHeight()
45{
46	var $block = $('#infoblocksList');
47	var $elements = $block.find('.infoblockElem');
48	$elements.find('.infoblockContent').css('height', '');
49	
50	var cols = Math.floor($block.width() / $elements.eq(0).width());
51	console.log(cols);
52	
53	var count = 0;
54	var elements = [];
55	var maxHeight = 0;
56	$elements.each(function() {
57		if (count == cols) {
58			for (var i = 0, l = elements.length; i < l; i++) {
59				var $element = elements[i];
60				$element.find('.infoblockContentBody').css('height', maxHeight);
61			}
62			count = 0;
63			maxHeight = 0;
64			elements = [];
65		}
66		
67		var height = $(this).height();
68		if (height > maxHeight) {
69			maxHeight = height;
70		}
71		elements.push($(this));
72		
73		count++;
74	});
75}

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.