PageSourceSearch

http://malyar.kz/local/templates/aspro_max/components/bitrix/news.list/landings_list/script.js?17114458362787

js malyar.kz collected 2026-09-28 22:58:18 UTC 2,787 bytes, 103 lines download raw bytes

1$(document).ready(function(){
2	$(document).on('click', '.landings-list__item--js-more', function(){
3		if($(this).closest('.from_smartseo').length){
4			return;
5		}
6
7		var $this = $(this),
8			block = $this.find('> span'),
9			dataOpened = $this.data('opened'),
10			thisText = block.text()
11			dataText = block.data('text'),
12			showCount = $this.data('visible')
13			item = $this.closest('.landings-list__info').find('.landings-list__item.hidden').get();
14
15		var items = item.filter(function(item1, index){
16			return ++index <= showCount
17		})
18		if (items) {
19			items.forEach(function(item, index){
20				$(item).removeClass('hidden');
21			})
22		}
23		if (!item.length) {
24			$this.closest('.landings-list__info').find('.landings-list__item.js-hidden').addClass('hidden');
25			block.data('text', thisText).text(dataText);
26			$this.removeClass('opened').data('opened', 'N');
27		} else if (item.length <= showCount) {
28			block.data('text', thisText).text(dataText);
29			$this.addClass('opened').data('opened', 'Y');
30		}
31	});
32
33	$(document).on('click', '.landings-list__clear-filter', function(){
34		if($(this).closest('.from_smartseo').length){
35			return;
36		}
37
38		$('.bx_filter_search_reset').trigger('click');
39	})
40
41	$(document).on('click', 'a.landings-list__name', function(e){
42		if($(this).closest('.from_smartseo').length){
43			return;
44		}
45
46		var _this = $(this);
47
48		if(_this.closest('.no_ajax.landings_list_wrapper').length) {
49			return true;
50		}
51
52		e.preventDefault();
53
54		if(_this.attr('href'))
55		{
56			$.ajax({
57				url:_this.attr('href'),
58				type: "GET",
59				data: {'ajax_get':'Y', 'ajax_get_filter':'Y'},
60				success: function(html){
61					// $('#right_block_ajax').html($(html).find('#right_block_ajax').html());
62					// $('.top-content-block').html($(html).find('.top-content-block').html());
63
64					var ajaxBreadCrumb = $('.ajax_breadcrumb .breadcrumbs', html);
65					if(ajaxBreadCrumb.length){
66						$('#navigation').html(ajaxBreadCrumb);
67					}
68
69					$('.right_block.catalog_page .container').html(html);
70
71					$('.ajax_breadcrumb').remove();
72
73					CheckTopMenuFullCatalogSubmenu();
74
75					BX.onCustomEvent('onAjaxSuccessFilter');
76
77					checkFilterLandgings()
78
79					var eventdata = {action:'jsLoadBlock'};
80					BX.onCustomEvent('onCompleteAction', [eventdata, this]);
81
82					InitScrollBar();
83
84					if(window.History.enabled || window.history.pushState != null)
85						window.History.replaceState( null, document.title, decodeURIComponent(_this.attr('href')) );
86					else
87						location.href = _this.attr('href');
88					
89					if(typeof Ya !== 'undefined' && typeof Ya.share2 === 'function'){
90						let myShare = document.querySelector('.ya-share2');
91						if (myShare) {
92							Ya.share2(myShare, {
93								content: {
94									url: location.href    
95								}
96							});
97						}
98					}
99				}
100			})
101		}
102	})
103});

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.