PageSourceSearch

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

js dig.ga collected 2026-10-06 13:43:17 UTC 2,004 bytes, 89 lines download raw bytes

1( function( $ ) {
2
3	/* TESTIMONIAL */
4	$(function(){
5
6		$(".testimonial-wrap").each(function() {
7
8			var id = this.id;
9			$('#'+id+' > .flexslider-testimonials').flexslider({
10				animation: "slide",
11				animationLoop: false,
12				slideshow: false,
13				controlNav: true,
14				useCSS: false,
15				directionNav: false,
16				smoothHeight: true,
17				touch: true
18
19			});			
20
21		});
22
23	});
24
25
26
27	/* FLEXSLIDER - Custom Post Types Carousel */
28	function supremeFlexslider() {
29
30		$(window).load(function() {
31
32			var windowWidth = $(window).width();
33
34			$(".flexslider-wrap").each(function() {
35
36				var id = this.id;
37				var flexSliderWrap = $("#"+id).width();
38
39				// tiny helper function to add breakpoints
40				function getGridSize() {
41
42					if(flexSliderWrap < 330){
43						return ($(window).innerWidth < 600) ? 2 : ($(window).innerWidth < 900) ? 3 : 1;
44					}else if(flexSliderWrap < 600){
45						return ($(window).innerWidth < 600) ? 2 : ($(window).innerWidth < 900) ? 3 : 2;
46					}else if(flexSliderWrap < 850){
47						return ($(window).innerWidth < 600) ? 2 : ($(window).innerWidth < 900) ? 3 : 3;
48					}else if(flexSliderWrap < 810){
49						return ($(window).innerWidth < 600) ? 2 : ($(window).innerWidth < 900) ? 3 : 3;
50					}else{
51						return ($(window).innerWidth < 600) ? 2 : ($(window).innerWidth < 900) ? 3 : 4;
52					};
53					
54				}
55
56				$('#'+id+' > .flexslider-posts').flexslider({
57					animation: "slide",
58					animationLoop: false,
59					itemWidth: 220,
60					itemMargin: 20,
61					slideshow: false,
62					controlNav: false,
63					useCSS: false,
64					touch: true,
65					minItems: getGridSize(),
66					maxItems: getGridSize(),
67					move: 1
68				});
69
70				$('.flex-direction-nav a.flex-next').html('<i class="fa fa-angle-right"></i>');
71				$('.flex-direction-nav a.flex-prev').html('<i class="fa fa-angle-left"></i>');
72
73			});
74
75
76			
77		});
78
79	 
80	};
81	supremeFlexslider();
82
83	$(function(){
84		$(window).resize(supremeFlexslider);
85		$(window).scroll(supremeFlexslider);
86		$(window).load(supremeFlexslider);
87	});
88
89} )( jQuery );

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.