PageSourceSearch

https://mobilchips.by/bitrix/templates/aspro_next/components/bitrix/news.list/news-blog2/script.js

js mobilchips.by collected 2026-10-02 00:31:11 UTC 2,095 bytes, 76 lines download raw bytes

1equalWideBlockHeight = function(){
2	if($('.wide-block').length) //sliceheight for wide block
3	{
4		if(window.matchMedia('(min-width: 768px)').matches)
5		{
6			$('.wide-block').each(function(){
7				$(this).css('height', '');
8				var _this = $(this),
9					parent_block = _this.closest('.items'),
10					block_height = _this.actual('outerHeight', { includeMargin : true })-1,
11					margin = parseInt($('.wide-block').css('margin-bottom')),
12					equal_height = 0;
13
14				if(parent_block.find('.col-item').length)
15				{
16					parent_block.find('.col-item .item').css('height', '');
17					parent_block.find('.col-item').each(function(){
18						equal_height += $(this).find('.item').actual('outerHeight', { includeMargin : true });
19					})
20
21					if(equal_height)
22					{
23						equal_height -= margin;
24						if(equal_height >= block_height)
25							_this.css('height', equal_height);
26						else
27						{
28							equal_height += margin;
29							var last_item = parent_block.find('.col-item:last-child .item');
30							last_item.css('height', (last_item.actual('outerHeight') + (block_height - equal_height)));
31						}
32					}
33				}
34			})
35		}
36		else
37		{
38			$('.wide-block').css('height', '');
39			$('.col-item .item').css('height', '');
40		}
41	}	
42}
43$(document).ready(function(){
44	BX.onCustomEvent('onWindowResize', false);
45	equalWideBlockHeight();
46	$('.banners-small.blog img').on('load', function(){
47		equalWideBlockHeight();
48		$('.banners-small .item.normal-block').sliceHeight();
49	});
50})
51
52
53BX.addCustomEvent('onWindowResize', function(eventdata) {
54	try{
55		ignoreResize.push(true);
56		equalWideBlockHeight();
57	}
58	catch(e){}
59	finally{
60		ignoreResize.pop();
61	}
62});
63BX.addCustomEvent('onCompleteAction', function(eventdata){
64	if(eventdata.action === 'ajaxContentLoaded')
65	{
66		$(eventdata.content).find('.item').each(function(){
67			$('.banners-small.blog img').on('load', function(){
68				equalWideBlockHeight();
69				$('.banners-small .item.normal-block').sliceHeight();
70			});
71		})
72		setTimeout(function(){
73			equalWideBlockHeight();
74		}, 350);
75	}
76});

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.