PageSourceSearch

https://www.hostnamaste.com/blog/wp-content/plugins/wp-responsive-…/assets/js/wppsac-public.js?ver=3.7.1

js hostnamaste.com collected 2026-09-28 07:22:37 UTC 10,381 bytes, 304 lines download raw bytes

1/* Define global Variable */
2var wprpsp_next_arrow = '<span class="slick-next slick-arrow" data-role="none" tabindex="0" role="button"><svg fill="currentColor" viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg"><title/><path d="M69.8437,43.3876,33.8422,13.3863a6.0035,6.0035,0,0,0-7.6878,9.223l30.47,25.39-30.47,25.39a6.0035,6.0035,0,0,0,7.6878,9.2231L69.8437,52.6106a6.0091,6.0091,0,0,0,0-9.223Z"/></svg></span>';
3var wprpsp_prev_arrow = '<span class="slick-prev slick-arrow" data-role="none" tabindex="0" role="button"><svg fill="currentColor" viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg"><title/><path d="M39.3756,48.0022l30.47-25.39a6.0035,6.0035,0,0,0-7.6878-9.223L26.1563,43.3906a6.0092,6.0092,0,0,0,0,9.2231L62.1578,82.615a6.0035,6.0035,0,0,0,7.6878-9.2231Z"/></svg></span>';
4
5( function( $ ) {
6
7	"use strict";
8
9	/* Post Slider Initialize */
10	wppsac_post_slider_init();
11
12	/* Post Carousel Slider Initialize */
13	wppsac_post_carousel_slider_init();
14
15	/* Elementor Compatibility */
16	/***** Elementor Compatibility Start *****/
17	if( Wppsac.elementor_preview == 0 ) {
18
19		$(window).on('elementor/frontend/init', function() {
20
21			/* Tweak for Slick Slider */
22			$('.wppsac-post-slider-init').each(function( index ) {
23
24				/* Tweak for Vertical Tab */
25				$(this).closest('.elementor-tabs-content-wrapper').addClass('wppsac-elementor-tab-wrap');
26
27				var slider_id = $(this).attr('id');
28				$('#'+slider_id).css({'visibility': 'hidden', 'opacity': 0});
29
30				setTimeout(function() {
31					if( typeof(slider_id) !== 'undefined' && slider_id != '' ) {
32						$('#'+slider_id).slick( 'setPosition' );
33						$('#'+slider_id).css({'visibility': 'visible', 'opacity': 1});
34					}
35				}, 350);
36			});
37		});
38	}
39
40	$(document).on('click', '.elementor-tab-title', function() {
41
42		var ele_control	= $(this).attr('aria-controls');
43		var slider_wrap	= $('#'+ele_control).find('.wppsac-post-slider-init');
44
45		/* Tweak for slick slider */
46		$( slider_wrap ).each(function( index ) {
47			var slider_id = $(this).attr('id');
48			$('#'+slider_id).css({'visibility': 'hidden', 'opacity': 0});
49
50			setTimeout(function() {
51				if( typeof(slider_id) !== 'undefined' && slider_id != '' ) {
52					$('#'+slider_id).slick( 'setPosition' );
53					$('#'+slider_id).css({'visibility': 'visible', 'opacity': 1});
54				}
55			}, 350);
56		});
57	});
58
59	/* SiteOrigin Compatibility For Accordion Panel */
60	$(document).on('click', '.sow-accordion-panel', function() {
61
62		var ele_control	= $(this).attr('data-anchor');
63		var slider_wrap	= $('#accordion-content-'+ele_control).find('.wppsac-post-slider-init');
64
65		/* Tweak for slick slider */
66		$( slider_wrap ).each(function( index ) {
67			var slider_id = $(this).attr('id');
68
69			if( typeof(slider_id) !== 'undefined' && slider_id != '' ) {
70				$('#'+slider_id).slick( 'setPosition' );
71			}
72		});
73	});
74
75	/* SiteOrigin Compatibility for Tab Panel */
76	$(document).on('click focus', '.sow-tabs-tab', function() {
77		var sel_index	= $(this).index();
78		var cls_ele		= $(this).closest('.sow-tabs');
79		var tab_cnt		= cls_ele.find('.sow-tabs-panel').eq( sel_index );
80		var slider_wrap	= tab_cnt.find('.wppsac-post-slider-init');
81
82		/* Tweak for slick slider */
83		$( slider_wrap ).each(function( index ) {
84			var slider_id = $(this).attr('id');
85			$('#'+slider_id).css({'visibility': 'hidden', 'opacity': 0});
86
87			setTimeout(function() {
88				if( typeof(slider_id) !== 'undefined' && slider_id != '' ) {
89					$('#'+slider_id).slick( 'setPosition' );
90					$('#'+slider_id).css({'visibility': 'visible', 'opacity': 1});
91				}
92			}, 300);
93		});
94	});
95
96	/* Beaver Builder Compatibility for Accordion and Tabs */
97	$(document).on('click', '.fl-accordion-button, .fl-tabs-label', function() {
98
99		var ele_control	= $(this).attr('aria-controls');
100		var slider_wrap	= $('#'+ele_control).find('.wppsac-post-slider-init');
101
102		/* Tweak for slick slider */
103		$( slider_wrap ).each(function( index ) {
104			var slider_id = $(this).attr('id');
105			$('#'+slider_id).css({'visibility': 'hidden', 'opacity': 0});
106
107			setTimeout(function() {
108				if( typeof(slider_id) !== 'undefined' && slider_id != '' ) {
109					$('#'+slider_id).slick( 'setPosition' );
110					$('#'+slider_id).css({'visibility': 'visible', 'opacity': 1});
111				}
112			}, 300);
113		});
114	});
115
116	/* Divi Builder Compatibility for Accordion & Toggle */
117	$(document).on('click', '.et_pb_toggle', function() {
118
119		var acc_cont	= $(this).find('.et_pb_toggle_content');
120		var slider_wrap	= acc_cont.find('.wppsac-post-slider-init');
121
122		/* Tweak for slick slider */
123		$( slider_wrap ).each(function( index ) {
124
125			var slider_id = $(this).attr('id');
126
127			if( typeof(slider_id) !== 'undefined' && slider_id != '' ) {
128				$('#'+slider_id).slick( 'setPosition' );
129			}
130		});
131	});
132
133	/* Divi Builder Compatibility for Tabs */
134	$('.et_pb_tabs_controls li a').on('click', function() {
135		var cls_ele		= $(this).closest('.et_pb_tabs');
136		var tab_cls		= $(this).closest('li').attr('class');
137		var tab_cont	= cls_ele.find('.et_pb_all_tabs .'+tab_cls);
138		var slider_wrap	= tab_cont.find('.wppsac-post-slider-init');
139
140		setTimeout(function() {
141
142			/* Tweak for slick slider */
143			$( slider_wrap ).each(function( index ) {
144				var slider_id = $(this).attr('id');
145				$('#'+slider_id).css({'visibility': 'hidden', 'opacity': 0});
146
147				if( typeof(slider_id) !== 'undefined' && slider_id != '' ) {
148					$('#'+slider_id).slick( 'setPosition' );
149					$('#'+slider_id).css({'visibility': 'visible', 'opacity': 1});
150				}
151			});
152		}, 550);
153	});
154
155	/* Fusion Builder Compatibility for Tabs */
156	$(document).on('click', '.fusion-tabs li .tab-link', function() {
157		var cls_ele		= $(this).closest('.fusion-tabs');
158		var tab_id		= $(this).attr('href');
159		var tab_cont	= cls_ele.find(tab_id);
160		var slider_wrap	= tab_cont.find('.wppsac-post-slider-init');
161
162		/* Tweak for slick slider */
163		$( slider_wrap ).each(function( index ) {
164			var slider_id = $(this).attr('id');
165			$('#'+slider_id).css({'visibility': 'hidden', 'opacity': 0});
166
167			setTimeout(function() {
168				if( typeof(slider_id) !== 'undefined' && slider_id != '' ) {
169					$('#'+slider_id).slick( 'setPosition' );
170					$('#'+slider_id).css({'visibility': 'visible', 'opacity': 1});
171					$('#'+slider_id).slick( 'setPosition' );
172				}
173			}, 200);
174		});
175	});
176
177	/* Fusion Builder Compatibility for Toggles */
178	$(document).on('click', '.fusion-accordian .panel-heading a', function() {
179		var cls_ele		= $(this).closest('.fusion-accordian');
180		var tab_id		= $(this).attr('href');
181		var tab_cont	= cls_ele.find(tab_id);
182		var slider_wrap	= tab_cont.find('.wppsac-post-slider-init');
183
184		/* Tweak for slick slider */
185		$( slider_wrap ).each(function( index ) {
186			var slider_id = $(this).attr('id');
187			$('#'+slider_id).css({'visibility': 'hidden', 'opacity': 0});
188
189			setTimeout(function() {
190				if( typeof(slider_id) !== 'undefined' && slider_id != '' ) {
191					$('#'+slider_id).slick( 'setPosition' );
192					$('#'+slider_id).css({'visibility': 'visible', 'opacity': 1});
193					$('#'+slider_id).slick( 'setPosition' );
194				}
195			}, 200);
196		});
197	});
198
199})( jQuery );
200
201/* Function to initialize post slider */
202function wppsac_post_slider_init() {
203
204	/* For Slider */
205	jQuery( '.wppsac-post-slider' ).each(function( index ) {
206
207		if( jQuery(this).hasClass('slick-initialized') ) {
208			return;
209		}
210
211		/* flex Condition */
212		if(Wppsac.is_avada == 1) {
213			jQuery(this).closest('.fusion-flex-container').addClass('wppsac-fusion-flex');
214		}
215
216		var slider_id   	= jQuery(this).attr('id');
217		var slider_conf		= JSON.parse( jQuery(this).closest('.wppsac-slick-slider-wrp').attr('data-conf'));
218
219		if( typeof(slider_id) != 'undefined' && slider_id != '' ) {
220			jQuery('#'+slider_id).slick({
221				slidesToShow	: 1,
222				slidesToScroll	: 1,
223				infinite		: true,
224				lazyLoad        : slider_conf.lazyload,
225				speed			: parseInt( slider_conf.speed ),
226				autoplaySpeed	: parseInt( slider_conf.autoplay_interval ),
227				dots			: ( slider_conf.dots == "true" )		? true : false,
228				arrows			: ( slider_conf.arrows == "true" )		? true : false,
229				autoplay		: ( slider_conf.autoplay == "true" )	? true : false,
230				rtl             : ( slider_conf.rtl == "true" )			? true : false,
231				nextArrow		: wprpsp_next_arrow,
232				prevArrow		: wprpsp_prev_arrow,
233			});
234		}
235	});
236}
237
238/* Function to initialize post slider */
239function wppsac_post_carousel_slider_init() {
240
241	/* For Carousel */
242	jQuery( '.wppsac-post-carousel' ).each(function( index ) {
243
244		if( jQuery(this).hasClass('slick-initialized') ) {
245			return;
246		}
247
248		/* flex Condition */
249		if(Wppsac.is_avada == 1) {
250			jQuery(this).closest('.fusion-flex-container').addClass('wppsac-fusion-flex');
251		}
252
253		var carousel_id   	= jQuery(this).attr('id');
254		var carousel_conf	= JSON.parse( jQuery(this).closest('.wppsac-slick-carousel-wrp').attr('data-conf'));
255
256		if( typeof(carousel_id) != 'undefined' && carousel_id != '' ) {
257			jQuery('#'+carousel_id).slick({
258				infinite		: true,
259				lazyLoad		: carousel_conf.lazyload,
260				speed			: parseInt( carousel_conf.speed ),
261				autoplaySpeed	: parseInt( carousel_conf.autoplay_interval ),
262				slidesToShow	: parseInt( carousel_conf.slides_to_show ),
263				slidesToScroll	: parseInt( carousel_conf.slides_to_scroll ),
264				dots			: ( carousel_conf.dots == "true" )		? true : false,
265				arrows			: ( carousel_conf.arrows == "true" )	? true : false,
266				autoplay		: ( carousel_conf.autoplay == "true" )	? true : false,
267				rtl				: ( carousel_conf.rtl == "true" )		? true : false,
268				nextArrow		: wprpsp_next_arrow,
269				prevArrow		: wprpsp_prev_arrow,
270				responsive 		: [{
271									breakpoint	: 1023,
272									settings	: {
273													slidesToShow	: ( parseInt( carousel_conf.slides_to_show ) > 3 ) ? 3 : parseInt( carousel_conf.slides_to_show ),
274													slidesToScroll	: 1,
275												}
276								},{
277									breakpoint	: 767,
278									settings	: {
279													slidesToShow	: ( parseInt( carousel_conf.slides_to_show ) > 2 ) ? 2 : parseInt( carousel_conf.slides_to_show ),
280													slidesToScroll	: 1,
281												}
282								},{
283									breakpoint	: 639,
284									settings	: {
285													slidesToShow	: 1,
286													slidesToScroll	: 1,
287												}
288								},{
289									breakpoint	: 479,
290									settings	: {
291													slidesToShow	: 1,
292													slidesToScroll	: 1,
293												}
294								},{
295									breakpoint	: 319,
296									settings	: {
297													slidesToShow	: 1,
298													slidesToScroll	: 1,
299												}
300								}]
301			}); 
302		}
303	});
304}

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.