PageSourceSearch

https://thestudentsvisa.com/wp-content/plugins/classic-elementor-addons-pro/assets/js/custom.js?ver=1.0

js thestudentsvisa.com collected 2026-10-08 02:52:27 UTC 5,855 bytes, 208 lines download raw bytes

1/*
2 * Classic Addons for Elementor Scripts
3 * Description: Classic addons plugin have 20+ massive widgets for Elementor page builder.
4 * Version: 1.0
5 * Author: zozothemes
6 */
7 
8(function( $ ) {
9	
10	"use strict";
11	
12	$(document).ready(function() {
13		// Initialize isotope layout on document ready
14		initCEAIsotopeLayout();
15	
16		// Other document ready initializations
17		/* Shortcode CSS Append */
18		var css_out = '';
19		$(".cea-inline-css").each(function() {
20			var shortcode = $(this);
21			var shortcode_css = shortcode.attr("data-css");
22			css_out += ($).parseJSON(shortcode_css);
23			shortcode.removeAttr("data-css");
24		});
25		if (css_out != '') {
26			$('head').append('<style id="cea-shortcode-styles">' + css_out + '</style>');
27		}
28	
29		if ($('#cea-panorama').length) {
30			console.log("test");
31			var img_src = $('#cea-panorama').attr("data-src");
32			pannellum.viewer('cea-panorama', {
33				"type": "equirectangular",
34				"panorama": img_src
35			});
36			$(".pnlm-load-button").trigger("click");
37		}
38	});
39	
40	$(window).on('load', function() {
41		// Theme Owl Carousel Code
42		$('.cea-related-slider').each(function(index, value) {
43			if ($(value).length) {
44				cea_owl_carousel($(value));
45			}
46		});
47	});
48	
49	function initCEAIsotopeLayout() {
50		$(".cea-archive-template > .isotope").each(function(index, value) {
51			ceaArchiveIsotopeLayout(value);
52		});
53	}
54	
55	function ceaArchiveIsotopeLayout(c_elem) {
56		var $c_elem = $(c_elem);
57		var parent_width = $c_elem.width();
58		var gutter_size = $c_elem.data("gutter") || 10;
59		var grid_cols = $c_elem.data("cols") || 4;
60		var filter = '';
61		var layoutmode = $c_elem.data("layout") || 'masonry';
62		var lazyload = $c_elem.data("lazyload") ? '0s' : '0.4s';
63	
64		if ($(window).width() < 768) grid_cols = 1;
65	
66		var net_width = Math.floor((parent_width - (gutter_size * (grid_cols - 1))) / grid_cols);
67		$c_elem.find(".isotope-item").css({'width': net_width + 'px', 'margin-bottom': gutter_size + 'px !important'});
68	
69		var cur_isotope;
70	
71		// Call isotope after images loaded
72		$c_elem.imagesLoaded(function() {
73			cur_isotope = $c_elem.isotope({
74				itemSelector: '.isotope-item',
75				layoutMode: layoutmode,
76				filter: filter,
77				transitionDuration: lazyload,
78				masonry: {
79					gutter: gutter_size
80				},
81				fitRows: {
82					gutter: gutter_size
83				}
84			});
85		});
86	
87		// Isotope filter item
88		$c_elem.prev(".isotope-filter").find(".isotope-filter-item").on('click', function() {
89			$(this).parents("ul.nav").find("li").removeClass("active");
90			$(this).parent("li").addClass("active");
91			filter = $(this).attr("data-filter");
92			if ($c_elem.find(".isotope-item" + filter).hasClass("cea-animate")) {
93				if (filter) {
94					$c_elem.find(".isotope-item" + filter).removeClass("run-animate");
95				} else {
96					$c_elem.find(".isotope-item").removeClass("run-animate");
97				}
98				cea_scroll_animation($c_elem);
99			}
100			cur_isotope.isotope({
101				filter: filter
102			});
103	
104			return false;
105		});
106	
107		// Animate isotope items
108		if ($c_elem.find(".isotope-item").hasClass("cea-animate")) {
109			cea_scroll_animation($c_elem);
110			$(window).on('scroll', function() {
111				cea_scroll_animation($c_elem);
112			});
113		} else {
114			$c_elem.children(".isotope-item").addClass("item-visible");
115		}
116	
117		// Isotope infinite scroll
118		if ($c_elem.data("infinite") == 1 && $("ul.post-pagination").length) {
119			var loadmsg = $c_elem.data("loadmsg");
120			var loadend = $c_elem.data("loadend");
121			var loadimg = $c_elem.data("loadimg");
122	
123			$c_elem.infinitescroll({
124				navSelector: '.post-pagination',
125				nextSelector: 'a.next-page',
126				itemSelector: '.isotope-item',
127				loading: {
128					msgText: loadmsg,
129					finishedMsg: loadend,
130					img: loadimg
131				}
132			},
133			function(newElements) {
134				var elems = $(newElements);
135				var net_width = Math.floor((parent_width - (gutter_size * (grid_cols - 1))) / grid_cols);
136				$c_elem.find(".isotope-item").css({'width': net_width + 'px', 'margin-bottom': gutter_size + 'px'});
137				elems.imagesLoaded(function() {
138					$c_elem.isotope('appended', elems);
139				});
140	
141				if ($c_elem.find(".isotope-item").hasClass("cea-animate")) {
142					cea_scroll_animation($c_elem);
143				} else {
144					$c_elem.children(".isotope-item").addClass("item-visible");
145				}
146			});
147		}
148	
149		// Isotope resize
150		$(window).resize(function() {
151			setTimeout(function() {
152				grid_cols = $c_elem.data("cols") || 4;
153				if ($(window).width() < 768) grid_cols = 1;
154	
155				parent_width = $c_elem.width();
156				net_width = Math.floor((parent_width - (gutter_size * (grid_cols - 1))) / grid_cols);
157				$c_elem.find(".isotope-item").css({'width': net_width + 'px'});
158				$c_elem.imagesLoaded(function() {
159					$c_elem.isotope('layout');
160				});
161			}, 200);
162		});
163	}
164	
165	function cea_owl_carousel( c_owlCarousel ){
166		// Data Properties
167		var loop = c_owlCarousel.data( "loop" );
168		var margin = c_owlCarousel.data( "margin" );
169		var center = c_owlCarousel.data( "center" );
170		var nav = c_owlCarousel.data( "nav" );
171		var dots_ = c_owlCarousel.data( "dots" );
172		var items = c_owlCarousel.data( "items" );
173		var items_tab = c_owlCarousel.data( "items-tab" );
174		var items_mob = c_owlCarousel.data( "items-mob" );
175		var duration = c_owlCarousel.data( "duration" );
176		var smartspeed = c_owlCarousel.data( "smartspeed" );
177		var scrollby = c_owlCarousel.data( "scrollby" );
178		var autoheight = c_owlCarousel.data( "autoheight" );
179		var autoplay = c_owlCarousel.data( "autoplay" );
180		var rtl = $( "body.rtl" ).length ? true : false;
181
182		$( c_owlCarousel ).owlCarousel({
183			rtl : rtl,
184			loop	: loop,
185			autoplayTimeout	: duration,
186			smartSpeed	: smartspeed,
187			center: center,
188			margin	: margin,
189			nav		: nav,
190			dots	: dots_,
191			autoplay	: autoplay,
192			autoheight	: autoheight,
193			slideBy		: scrollby,
194			responsive:{
195				0:{
196					items: items_mob
197				},
198				544:{
199					items: items_tab
200				},
201				992:{
202					items: items
203				}
204			}
205		});
206	}
207})( jQuery );
208

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.