PageSourceSearch

https://enabled.vip/wp-content/themes/savior-pro/assets/js/savior-pro-scripts.js?ver=1791477965

js enabled.vip collected 2026-10-08 16:50:06 UTC 10,257 bytes, 301 lines download raw bytes

1/*** Activate Preloader **/
2jQuery(window).load(function(){
3	//jQuery('body').css('opacity', '1');					
4});
5
6/* Home Testimonial Slider Js Starts Here */
7/*--------------------------------
8	Testimonial Slick Carousel .testimonial-text-slider .testimonial-image-slider
9-----------------------------------*/
10jQuery(document).ready(function(){
11	jQuery('.logged-out-users a').on('click', function(e){
12// 		alert('Enabled.vip advises This content is for Members only. Email [email protected] for assistance.');
13		var ask = window.confirm("Enabled.vip advises This content is for Members only. Email [email protected] for assistance.");
14		if (ask) {
15			window.location.href = "https://enabled.vip/login-register/";
16		}
17	}); 
18	jQuery('.user-no-membership a').on('click', function(e){
19		alert('Enabled.vip advises This content is for Members only. Email [email protected] for assistance.');
20	}); 
21	jQuery('.membership-target-blank a').each(function(e){
22		jQuery(this).attr('target','_blank');
23	}); 
24	jQuery('.not-access-membership a').on('click', function(e){
25		e.preventDefault();
26		alert('Enabled.vip advises This content is for Paid Members only. Email [email protected] for assistance.');
27	});
28	
29	if(jQuery.fn.slick){
30		jQuery('.slider-for').slick({
31			slidesToShow: 1,
32			slidesToScroll: 1,
33			arrows: false,
34			draggable: false,
35			fade: true,
36			asNavFor: '.slider-nav'
37		});
38	}
39});
40
41/*------------------------------------
42	Testimonial Slick Carousel as Nav
43--------------------------------------*/
44jQuery(document).ready(function(){
45	if(jQuery.fn.slick){
46		jQuery('.slider-nav').slick({
47			slidesToShow: 3,
48			slidesToScroll: 1,
49			asNavFor: '.slider-for',
50			dots: false,
51			arrows: true,
52			centerMode: false,
53			focusOnSelect: false,
54			centerPadding: '10px',
55			responsive: [
56				{
57					breakpoint: 450,
58					settings: {
59						dots: false,
60						slidesToShow: 3,  
61						centerPadding: '0px',
62					}
63				},
64				{
65					breakpoint: 420,
66					settings: {
67						autoplay: true,
68						dots: false,
69						slidesToShow: 3,
70						centerMode: false,
71					}
72				},
73				{
74					breakpoint: 430,
75					settings: {
76						autoplay: true,
77						dots: true,
78						slidesToShow: 3,
79						centerMode: false,
80					}
81				}
82
83			]
84		});
85	}
86	/****************/
87	/** POST SINGLE PAGE EMPTYAUTHOR FIELDS HIDE **/
88	jQuery('.post-author-icons .elementor-grid-item a').each(function() {
89		// this.attributes is not a plain object, but an array
90		// of attribute nodes, which contain both the name and value
91		if(!jQuery(this).attr('href')) {
92			jQuery(this).addClass('hide-link');
93			// 			console.log('no href');
94		}
95	});
96	/********************/
97	/** POST SINGLE AUTHOR BIO SHOW MORE / LESS **/	
98	var bio_half = jQuery('.author-bio-half .elementor-text-editor').text();
99	if(bio_half.length > 10){
100		jQuery('.author-bio-half .elementor-text-editor').text(bio_half.substring(0, 30) ).append('<a href="#" class="trigger-bio-popup"> (...)</a>');
101	}
102	jQuery('.trigger-bio-popup').on('click', function(e){
103		e.preventDefault();
104		jQuery('.author-bio-half .elementor-text-editor').text(bio_half);
105	});
106	var expand_author_ = '';
107	jQuery('body').find('.moreText').hide()
108	jQuery.each(jQuery('.author-info'), function(index, value) {
109
110		this["expand_author_" + index]  = jQuery(this).find('.other-author-bio-half .elementor-text-editor').text();
111		// 		console.log(other_author_bio_half);
112		if(this["expand_author_" + index].length > 10){
113			jQuery(this).find('.other-author-bio-half .elementor-text-editor').text(this["expand_author_" + index].substring(0, 30) ).append(`<span class="ellipsis">...</span><span class="moreText" style="display:none;">${this["expand_author_" + index].substring(30)}</span> <a class="more" href="javascript:void(0);">(...)</a>`);
114		}
115	});
116
117	jQuery('.other-author-detail-container .author-details a.more').on('click', function(){
118		var $parent = jQuery('body').find(this).parent();
119		if($parent.data('visible')) {
120			$parent.data('visible', false).find('.ellipsis').show()
121				.end().find('.moreText').hide();
122			// 			.end().find('a.more').text('(...)');
123		} else {
124			$parent.data('visible', true).find('.ellipsis').hide()
125				.end().find('.moreText').show();
126			// 			.end().find('a.more').text('(...)');
127		}
128	});
129
130	/***************/
131});
132/* Home Testimoniial Slider Js Ends Here */ 
133/* Terms and Condition Smooth Scroll with active link */
134// smoothscroll
135jQuery(".main_section_for_content a[href^='#']").on('click', function (e) {
136	e.preventDefault();
137	var hash = this.hash;
138	jQuery("a[href^='#']").removeClass('active');
139	jQuery(this).addClass('active');
140	jQuery('html, body').animate({
141		scrollTop: (jQuery(hash).offset().top - 60)
142	}, 500, function () {
143		window.location.hash = hash;
144	});
145});
146/* Terms and Condition Smooth Scroll With Active Link */ 
147/* Create One Registeration Link Tab Trigger */
148jQuery(document).ready(function(){
149	jQuery('.trigger_link_effects_uae').on('click',function(e){
150		e.preventDefault();
151		jQuery(this).closest('.login_signup_cls_tabs').find('#pp-advanced-tabs-title-2412').click();
152	});
153	jQuery('.post_excerpt_cls').on('click','.more_link',function(){
154		jQuery(this).closest('.template_col_cls').find('.trigger_post_link a')[0].click();
155	});
156});
157/* Create One Registration Link Tab Trigger */ 
158/* Prepend cancel button before save button */
159jQuery(document).ready(function(){
160	jQuery('.edit_profile_form .gform_footer').prepend('<div class="cancel_button"><a href="https://enabled.vip/dashboard/" class="link_cls_btn">Cancel</a></div>');
161	//jQuery(".edit_profile_form :input").prop("disabled", true);
162	jQuery('.disable_true_button_show').on('click',function(e){
163		e.preventDefault();
164		jQuery(this).closest('.main_section_forms_edit').find('.elementor-element-4b1afea').children('.gform_footer.top_label').slideToggle().show();
165		jQuery(this).closest('.main_section_forms_edit').find(".edit_profile_form :input").prop("disabled", false);
166	});
167	jQuery('.sin-testiText p').mCustomScrollbar({ 
168		theme:"minimal"        
169	});
170
171});
172/* Prepend cancel button before save button */ 
173jQuery('#container1').mCustomScrollbar({ 
174	theme:"dark-3"        
175});
176
177/*** FAQ search functionality ***/
178
179jQuery(document).ready(function(){
180
181	jQuery('.page-id-21 .elementor-field-type-submit').remove();
182
183	jQuery('#faq_search_form').on('keyup keypress', function(e) {
184		var keyCode = e.keyCode || e.which;
185		if (keyCode === 13) { 
186			e.preventDefault();
187			return false;
188		}
189	});
190
191	jQuery("#form-field-search_field").on("keyup", function(ev){
192		var texto = jQuery(this).val();
193		filtro(texto);
194	});
195
196	function filtro(texto) {
197		var lista = jQuery(".faq_main_cls_icon .pp-accordion-item").hide()
198		.filter(function(){
199			var item = jQuery(this).find('.pp-accordion-title-text').text();
200			var padrao = new RegExp(texto, "i");
201
202			return padrao.test(item);
203		}).closest(".pp-accordion-item").show();
204	}
205});
206/* JQuery To Show The Selected Hours Value in the Input Field */
207jQuery(document).ready(function(){
208	jQuery('#input_7_1').on('change',function(){
209		var totalcost = jQuery('#input_7_1 option:selected').val();
210		jQuery('li#field_7_2 input').val('$'+totalcost);
211	});
212	jQuery(document.links) .filter(function() { return this.hostname != window.location.hostname; }) .attr('target', '_blank');
213});
214/* JQuery To show the selected Hours value in the input field */ 
215/* Jquery to add attr blank in a visual preview link */
216jQuery(document).ready(function(){
217	jQuery('.vlp-link-container a').attr('target','__blank');
218	jQuery('.max-upload-size').text('Maximum upload file size: 1 MB.');
219	jQuery('body').on('click','.upload_new_pic',function(){
220		jQuery('.max-upload-size').text('Maximum upload file size: 1 MB.');
221	});
222	jQuery('body').on('click','.rcp-login-form-cls .toggle-password',function(){
223		if( jQuery('#rcp_user_pass').attr('type') == 'text' ){
224			jQuery('#rcp_user_pass').attr('type','password');			
225		}else{
226			jQuery('#rcp_user_pass').attr('type','text');	
227		}
228	});
229});
230/********Load More************/
231jQuery(document).ready(function ($) {
232	jQuery('.resources_related_reading .elementor-location-archive').hide();
233	if(!$('body').hasClass('elementor-editor-active')){
234		var size_li = jQuery('.resources_related_reading .elementor-location-archive').size();
235		var x=8;
236		if(size_li < x){$('#pp-post-load-more').parents('.pp-posts-pagination-wrap').hide();}
237		$('.resources_related_reading .elementor-location-archive:lt('+x+')').show();
238		$('#pp-post-load-more').click(function () {
239			x= (x+8 <= size_li) ? x+8 : size_li;
240			$('.resources_related_reading .elementor-location-archive:lt('+x+')').slideDown('slow');
241			if(x == size_li){$('#pp-post-load-more').parents('.pp-posts-pagination-wrap').hide();}
242		});
243	}
244});
245
246/* Jquery to ad attr blank in a visual preview link */ 
247/*Jquery Hide Other forums */
248// jQuery(document).ready(function(){
249// 	jQuery('.main-list-container').each(function(){
250// 		var current_forums = jQuery(this).find('.current_forum').val();
251// 		var $this = jQuery(this);
252// 		$this.find(".bbp-topics").each(function(){
253// 			var current_split = jQuery(this).attr('id');
254// 			var class_name_split = current_split.split("-");
255// 			var final_code = class_name_split[2];
256// 			if(final_code == current_forums){
257// 				$this.addClass('only_show');
258// 			}
259// 		});
260// 	});
261
262// });
263/* JQuery Hide Other Forums */ 
264
265// On selection change another dropdown selection
266jQuery('body').on('change','.industry_list_acf select',function(){
267	var acf_selected = jQuery(this).find("option:selected").text(); 
268	// 	console.log(acf_selected);
269	jQuery(".taxonomy_selection_list select > option").each(function() {
270		var taxonomy_select = jQuery(this).text();
271		if(acf_selected == taxonomy_select){
272			// 			console.log(taxonomy_select);
273			jQuery(this).attr('selected','selected');
274		}
275	});
276}); 
277
278
279
280jQuery(document).ready(function ($) {
281    $('.upgrade_membership_button').click(function (e) {
282        e.preventDefault();
283        var membershipId = $(this).data('membership-id');
284        $.ajax({
285            url: admin_ajax_url.ajaxurl,
286            type: 'post',
287            data: {
288                action: 'savior_upgrade_membership',
289                membership_id: membershipId
290            },
291            success: function (response) {
292                alert(response.data.message);
293            }
294        });
295    });
296});
297
298
299
300
301

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.