PageSourceSearch

https://korshop.ru/bitrix/templates/profood_new/components/bitrix/news.list/banners/script.js?17451718164024

js korshop.ru collected 2026-10-02 05:01:13 UTC 4,024 bytes, 71 lines download raw bytes

1$(document).ready(function(){
2	if(parseInt(RSGOPRO_change_speed)<1)
3		RSGOPRO_change_speed = 2000;
4	if(parseInt(RSGOPRO_change_delay)<0)
5		RSGOPRO_change_delay = 8000;
6	
7	if($('#jssor_slider1').find('.item').length>0)
8	{
9		var options = {
10			$AutoPlay: 1,										//[Optional] Whether to auto play, to enable slideshow, this option must be set to true
11			$DragOrientation: 1,                                //[Optional] Orientation to drag slide, 0 no drag, 1 horizental, 2 vertical, 3 either, default value is 1 (Note that the $DragOrientation should be the same as $PlayOrientation when $DisplayPieces is greater than 1, or parking position is not 0)
12			$AutoPlayInterval: RSGOPRO_change_delay,			//[Optional] Interval (in milliseconds) to go for next slide since the previous stopped if the slider is auto playing
13			$SlideDuration: RSGOPRO_change_speed,               //[Optional] Specifies default duration (swipe) for slide in milliseconds, default value is 500
14
15			$ArrowNavigatorOptions: {                       //[Optional] Options to specify and enable arrow navigator or not
16				$Class: $JssorArrowNavigator$,              //[Requried] Class to create arrow navigator instance
17				$ChanceToShow: 2,                               //[Required] 0 Never, 1 Mouse Over, 2 Always
18				$Steps: 1                                       //[Optional] Steps to go for each navigation request, default value is 1
19			},
20			/*$DirectionNavigatorOptions: {                       //[Optional] Options to specify and enable direction navigator or not
21				$Class: $JssorDirectionNavigator$,              //[Requried] Class to create direction navigator instance
22				$ChanceToShow: 2,                               //[Required] 0 Never, 1 Mouse Over, 2 Always
23				$AutoCenter: 2,                                 //[Optional] Auto center arrows in parent container, 0 No, 1 Horizontal, 2 Vertical, 3 Both, default value is 0
24				$Steps: 1                                       //[Optional] Steps to go for each navigation request, default value is 1
25			},*/
26			
27			/*$NavigatorOptions: {                                //[Optional] Options to specify and enable navigator or not
28				$Class: $JssorNavigator$,                       //[Required] Class to create navigator instance
29				$ChanceToShow: 2,                               //[Required] 0 Never, 1 Mouse Over, 2 Always
30				$Steps: 1,                                      //[Optional] Steps to go for each navigation request, default value is 1
31				$Lanes: 1,                                      //[Optional] Specify lanes to arrange items, default value is 1
32				$SpacingX: 13,                                  //[Optional] Horizontal space between each item in pixel, default value is 0
33				$SpacingY: 13,                                  //[Optional] Vertical space between each item in pixel, default value is 0
34				$Orientation: 1                                 //[Optional] The orientation of the navigator, 1 horizontal, 2 vertical, default value is 1
35			}*/
36		};
37		var jssor_slider1 = new $JssorSlider$("jssor_slider1", options);
38		// responsive code begin
39		function RSGOPRO_ScaleSlider() 
40		{
41			var parentWidth = $('#jssor_slider1').parent().width();
42			var conteinerWidth = $('#jssor_slider1').parent().parent().width();
43			if (parentWidth) {
44				if( parentWidth<988 ) {
45					if( parentWidth+252 != conteinerWidth && conteinerWidth>990)
46						jssor_slider1.$ScaleWidth(conteinerWidth-252);
47					else
48						jssor_slider1.$ScaleWidth(parentWidth);
49				} else {
50					if( parentWidth+252 != conteinerWidth && conteinerWidth>990)
51						jssor_slider1.$ScaleWidth(conteinerWidth-252);
52					else
53						jssor_slider1.$ScaleWidth(990);
54				}
55			} else {
56				window.setTimeout(RSGOPRO_ScaleSlider, 30);
57			}
58		}
59		RSGOPRO_ScaleSlider();
60		$(window).bind('resize', RSGOPRO_ScaleSlider);
61		// responsive code end
62	}
63	
64	// play video
65	$('.aroundjssorslider1').find('video').each(function(){
66		if( $(this).attr('autoplay')=='autoplay' ) {
67			$(this).get(0).play();
68		}
69	});
70	
71});

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.