PageSourceSearch

https://www.autostat.ru/application/includes/js/main/index.js?_=1649057014

js autostat.ru collected 2026-10-01 08:41:29 UTC 2,336 bytes, 78 lines download raw bytes

1(function($) {
2	
3	$(document).ready(function() {
4		
5		/**
6		 * Иницализация баннеров на главной странице
7		 */
8		$('.mainBannerBlockCenter').each(function() {
9			
10			subitems = $(this).find('.banner_content');
11			if (subitems.length < 1) {
12				$(this).css('display', 'none');
13			}
14			
15		});
16		
17		
18		/**
19		 * Обработчик кнопки (влево) слайдера в блоках на главной странице
20		 */
21		$('#mainResearchLeft').live('click', function() {
22			
23			if ($('#researchMainList').data('animate')) {
24				return false;
25			}
26			
27			$('#researchMainList').data('animate', true);
28			index	= $('#researchMainList li').index($('#researchMainList li.lastLeft'));
29			c		= $('<li ' + ($('#researchMainList li:first').hasClass('dark')	? ''	: 'class="dark"') + '>' + $('#researchMainList li:eq(' + index + ')').html() + '</li>')
30				.prependTo($('#researchMainList'))
31				.css('marginLeft', '-196px').animate({
32					marginLeft:	'2px'
33				}, 'slow', function() {
34					$('#researchMainList').data('animate', false);
35				});
36			
37			$('#researchMainList li.lastLeft').removeClass('lastLeft');
38			$('#researchMainList li:eq('+(index)+')').addClass('lastLeft');
39			
40			return false;
41			
42		});
43		
44		
45		/**
46		 * Обработчик кнопки (вправо) слайдера в блоках на главной странице
47		 */
48		$('#mainResearchRight').live('click', function() {
49			
50			if ($('#researchMainList').data('animate')) {
51				return false;
52			}
53			
54			$('#researchMainList').data('animate', true);
55			
56			index	= $('#researchMainList li').index($('#researchMainList li.lastRight'));
57			shift	= $('#researchMainList li.lastRight').outerWidth(true);
58			left	= parseInt($('#researchMainList').css('marginLeft')) - shift;
59			
60			$('#researchMainList').append('<li ' + ($('#researchMainList li:last').hasClass('dark')	? ''	: 'class="dark"') + '>' + $('#researchMainList li:eq(' + index + ')').html() + '</li>');
61			
62			$('#researchMainList li.lastRight').removeClass('lastRight');
63			
64			$('#researchMainList li:eq(' + (index + 1) + ')').addClass('lastRight');
65			
66			$('#researchMainList').animate({
67				marginLeft:	left + 'px'
68			}, 'slow', function() {
69				$('#researchMainList').data('animate', false);
70			});
71			
72			return false;
73			
74		});
75		
76	});
77	
78})(jQuery);

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.