PageSourceSearch

https://xn--80abzoet.xn--p1ai/local/templates/aspro_max/components…/top_big_banner_3_2/script.js

js xn--80abzoet.xn--p1ai collected 2026-09-26 12:37:27 UTC 3,073 bytes, 87 lines download raw bytes

1function checkNavColor(slider){
2	var nav_color_flex = slider.find('.flex-active-slide').data('nav_color'),
3		menu_color = slider.find('.flex-active-slide').data('text_color');
4	if(nav_color_flex == 'dark')
5		slider.find('.flex-control-nav').addClass('flex-dark');
6	else
7		slider.find('.flex-control-nav').removeClass('flex-dark');
8
9	var eventdata = {slider: slider};
10	BX.onCustomEvent('onSlide', [eventdata]);
11}
12function checkHeight(){}
13$(document).ready(function(){
14	if($('.top_slider_wrapp .flexslider').length){
15		var config = {"controlNav": true, "animationLoop": true, "pauseOnHover" : true, "simulateTouch" : true, 'autoHeight': true};
16		if(typeof(arMaxOptions['THEME']) != 'undefined'){
17			var slideshowSpeed = Math.abs(parseInt(arMaxOptions['THEME']['BIGBANNER_SLIDESSHOWSPEED']));
18			var animationSpeed = Math.abs(parseInt(arMaxOptions['THEME']['BIGBANNER_ANIMATIONSPEED']));
19			var currentBannerIndex = 0;
20			config["slideshow"] = (slideshowSpeed && arMaxOptions['THEME']['BIGBANNER_ANIMATIONTYPE'].length ? true : false);
21			config["animation"] = (arMaxOptions['THEME']['BIGBANNER_ANIMATIONTYPE'] === 'FADE' ? 'fade' : 'slide');
22			if(animationSpeed >= 0){
23				config["animationSpeed"] = animationSpeed;
24			}
25			if(slideshowSpeed >= 0){
26				config["slideshowSpeed"] = slideshowSpeed;
27			}
28			if(arMaxOptions['THEME']['BIGBANNER_ANIMATIONTYPE'] !== 'FADE'){
29				config["direction"] = (arMaxOptions['THEME']['BIGBANNER_ANIMATIONTYPE'] === 'SLIDE_VERTICAL' ? 'vertical' : 'horizontal');
30			}
31			if($('.top_slider_wrapp .flexslider').find('ul.slides li.box').length < 2) {
32				config['animationLoop'] = false;
33			}
34
35			if ('CURRENT_BANNER_INDEX' in arMaxOptions && arMaxOptions['CURRENT_BANNER_INDEX']) {
36				currentBannerIndex = arMaxOptions['CURRENT_BANNER_INDEX'] - 1;
37				if (currentBannerIndex < $('.top_slider_wrapp .flexslider .slides > li').length) {
38					config['startAt'] = currentBannerIndex;
39					config["slideshow"] = false;
40				}
41			}
42			
43			config.start = function(slider){
44				checkNavColor(slider);
45				var activeVideo = slider.find('.box.wvideo.flex-active-slide');
46				if(activeVideo.length) {
47					if(activeVideo.data('video_autoplay') == '1') {
48						BX.onCustomEvent('onSlide', [{slider: slider}] );
49					}
50				}
51				if(slider.count <= 1){
52					slider.find('.flex-direction-nav li').addClass('flex-disabled');
53				}
54				$(slider).find('.flex-control-nav').css('opacity',1);
55			}
56			config.after = function(slider){
57				// checkNavColor(slider);
58				InitLazyLoad();
59			}
60			config.before = function(slider){
61				setTimeout(function(){
62					checkNavColor(slider);
63					InitLazyLoad();
64				}, 100);
65			}
66		}
67
68		$(".top_slider_wrapp .flexslider").appear(function(){
69			var $this = $(this);
70			$this.flexslider(config);
71		}, {accX: 0, accY: 150})
72	}
73	
74	checkHeight();
75
76	BX.addCustomEvent('onWindowResize', function(eventdata){
77		try{
78			ignoreResize.push(true);
79			checkHeight();
80			CoverPlayerHtml()
81		}
82		catch(e){}
83		finally{
84			ignoreResize.pop();
85		}
86	})
87});

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.