PageSourceSearch

https://dig.ga/wp-content/plugins/SupremeShortcodes/js/call-swiper.js?ver=7.1.2

js dig.ga collected 2026-10-06 13:43:14 UTC 1,364 bytes, 57 lines download raw bytes

1jQuery(document).ready(function(){
2
3	/* SWIPER SLIDER */
4	function supremeSwipeSlider() {
5
6
7		jQuery(".st-swiper-container").each(function() {
8
9			var swiperWidth = jQuery('.swiper-container').width();
10			var swiperParentID = jQuery(this).parent().attr('id');
11			var swiperWraperWidth = document.getElementById(swiperParentID).offsetWidth;
12
13
14			if(swiperWraperWidth < 330){
15				var slidesNumber = 1;
16			}else if(swiperWraperWidth < 600){
17				var slidesNumber = 2;
18			}else if(swiperWraperWidth < 850){
19				var slidesNumber = 3;
20			}else if(swiperWraperWidth < 810){
21				var slidesNumber = 4;
22			}else{
23				var slidesNumber = 5;
24			}
25
26			jQuery(this).swiper({
27				mode:'horizontal',
28			    slidesPerView: slidesNumber,
29			    calculateHeight : true
30			});
31
32		});
33
34
35		function piVertCenter() {
36			jQuery('.st-swiper-container.without-title').each(function(){
37				var $colHeight = jQuery(this).find('.swiper-slide').height();
38				var $infoHeight = jQuery(this).find('.swiper-slide h3').height();
39				
40				//30px away from being centered so we can transition to center point on hover
41				jQuery(this).find('.swiper-slide h3').css('margin-top', (($colHeight / 2) - ($infoHeight / 2 )) - 40 );
42			});	
43		}
44		
45		jQuery(window).load(function(){
46		 	 piVertCenter();
47		});
48		 
49		jQuery(window).resize(function(){
50			 piVertCenter();
51		});
52
53		
54	}
55	supremeSwipeSlider();
56
57});

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.