PageSourceSearch

https://pixaero.pro/bitrix/templates/aspro_next/components/bitrix/catalog/main/script.js

js pixaero.pro collected 2026-10-06 13:29:34 UTC 1,755 bytes, 52 lines download raw bytes

1$(document).on('click', '#headerfixed .buy.btn', function(){
2	if ($('.catalog_detail .buy_block .offer_buy_block .to-cart').length) {
3		if ($('.catalog_detail .buy_block .offer_buy_block .to-cart').is(':visible')) {
4			$('.catalog_detail .buy_block .offer_buy_block .to-cart').trigger('click');
5		} else {
6			location.href = arNextOptions['PAGES']['BASKET_PAGE_URL'];
7		}
8	} else if ($('.catalog_detail .buy_block .offer_buy_block .btn').length) {
9		$('.catalog_detail .buy_block .offer_buy_block .btn').trigger('click')
10	}
11})
12
13$(document).on('click', '#headerfixed .bx_catalog_item_scu', function(){
14	var offset = 0;
15	offset = $('.catalog_detail .sku_props .bx_catalog_item_scu').offset().top;
16		
17	$('body, html').animate({scrollTop: offset-150}, 500);
18})
19
20$(document).on('click', ".stores-title .stores-title__list", function(){
21	var _this = $(this);
22	_this.siblings().removeClass('stores-title--active');
23	_this.addClass('stores-title--active');
24
25	$('.stores_block_wrap .stores-amount-list').hide(100).removeClass('stores-amount-list--active');
26	$('.stores_block_wrap .stores-amount-list:eq('+_this.index()+')').show(100, function(){
27		if(_this.hasClass('stores-title--map'))
28		{
29			if(typeof map !== 'undefined')
30			{
31				if (typeof map.container !== 'undefined'){
32					map.container.fitToViewport();
33				} else if(typeof window.google !== 'undefined' && typeof bounds !== 'undefined') {
34					map.fitBounds(bounds);
35				}
36				
37				if(typeof clusterer !== 'undefined' && !$(this).find('.detail_items').is(':visible'))
38				{
39					map.setBounds(clusterer.getBounds(), {
40						zoomMargin: 40,
41						// checkZoomRange: true
42					});
43				}
44			}
45		}
46	}).addClass('stores-amount-list--active');
47
48})
49
50$(document).ready(function(){
51    lazyLoadPagenBlock();
52});

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.