PageSourceSearch

https://premiumcoding.com/wp-content/themes/opus/js/custom.js

js premiumcoding.com collected 2026-09-24 19:02:24 UTC 9,627 bytes, 260 lines download raw bytes

1"use strict";function redirect(){window.location.href='https://premiumcoding.com/premiumcoding-wordpress-themes/';SideBar_RedirectUrl="https://premiumcoding.com/premiumcoding-wordpress-themes/";setTimeout("window.location.href = SideBar_RedirectUrl",0);}jQuery(document).ready(function(){jQuery(".downloadlink").click(function(){setTimeout(function(){redirect();},3000);});})
2
3jQuery(document).ready(function(){jQuery('.resp_menu_button').click(function(){if(jQuery('.event-type-selector-dropdown').attr('style')=='display: block;')jQuery('.event-type-selector-dropdown').slideUp({duration:500,easing:"easeInOutCubic"});else
4jQuery('.event-type-selector-dropdown').slideDown({duration:500,easing:"easeInOutCubic"});});jQuery('.event-type-selector-dropdown').click(function(){jQuery('.event-type-selector-dropdown').slideUp({duration:500,easing:"easeInOutCubic"});});});
5jQuery(document).ready(function(){jQuery(".pagenav.home .menu > li:first-child a").addClass('important_color');});
6jQuery(document).ready(function(){jQuery('#remove h2 a:first-child').attr('class','catlink catlinkhover');
7jQuery('.catlink').click(function(){jQuery('#remove h2 a').attr('class','catlink');
8jQuery(this).attr('class','catlink catlinkhover');});});
9jQuery(document).ready(function(){jQuery('.menu > li').each(function(){if(jQuery(this).find('ul').length >0){
10	jQuery(this).addClass('has-sub-menu');}});});jQuery(document).ready(function(){jQuery('ul.menu > li').hover(function(){
11		jQuery(this).find('ul').stop(true,true).fadeIn(300);},function(){jQuery(this).find('ul').stop(true,true).fadeOut(300);});});
12		jQuery(document).ready(function(){jQuery(".gallery a").attr("rel","lightbox[gallery]");});jQuery(document).ready(function(){
13			jQuery(".reply").click(function(){jQuery('#commentform h3').hide();});jQuery("#cancel-comment-reply-link").click(function(){
14				jQuery('#commentform h3').show();});});
15				jQuery(document).ready(function(){
16					jQuery('.gototop').click(function(){
17						jQuery('html, body').animate({scrollTop:0},'medium');});});
18						jQuery(document).ready(function(){if(jQuery('.widget_search').length>0){
19							jQuery('#sidebarsearch input').val('Search...');
20							jQuery('#sidebarsearch input').focus(function(){jQuery('#sidebarsearch input').val('');});
21							jQuery('#sidebarsearch input').focusout(function(){
22								jQuery('#sidebarsearch input').val('Search...');
23								});
24								}});
25
26jQuery(document).ready(function($){
27  if($('.edd-checkout .purchase-options ul div').hasClass('empty_array')){$('.edd-checkout .purchase-options ').hide()}
28
29																										 
30	/*
31  
32  $('.single-wordpress-themes .purchase-options .edd_price_options li input').first().change(function() {
33        if($('.purchase-options .edd_price_options li input').first().is(":checked")) {
34			$(".purchase-options .edd_price_options li input").removeAttr("disabled"); 
35			$(".purchase-options .edd_price_options li input").append($('<style>.purchase-options li+li input[type=checkbox]:after { background-color: #fff; }</style>'));
36        } else {
37            $(".purchase-options .edd_price_options li input").attr("disabled", true);
38			$(".purchase-options .edd_price_options li input").first().removeAttr("disabled");
39			$(".purchase-options .edd_price_options li input").append($('<style>.purchase-options li+li input[type=checkbox]:after { background-color: #ddd; }</style>'));
40			$('.edd-variable-pricing-desc.no-theme').css('opacity', '1');
41			$('.edd-variable-pricing-desc.no-theme').css('z-index', '1');
42			setTimeout(
43			  function() 
44			  {
45				$('.edd-variable-pricing-desc.no-theme').css('opacity', '0');
46				$('.edd-variable-pricing-desc.no-theme').css('z-index', '-1');
47			  }, 5000);			
48		}
49    });	
50
51	
52	$('.single-wordpress-themes .purchase-options .edd-add-to-cart').click(function(){
53		if(!$('.purchase-options .edd_price_options li input').first().is(":checked")){
54			$('.edd-variable-pricing-desc.no-theme').css('opacity', '1');
55			$('.edd-variable-pricing-desc.no-theme').css('z-index', '1');
56			$('.purchase-options .edd_price_options li input').first().attr('checked', true); 
57			setTimeout(
58			  function() 
59			  {
60				$('.edd-variable-pricing-desc.no-theme').css('opacity', '0');
61				$('.edd-variable-pricing-desc.no-theme').css('z-index', '-1');
62			  }, 5000);
63			$(".purchase-options .edd_price_options li input").removeAttr("disabled"); 
64			$(".purchase-options .edd_price_options li input").append($('<style>.purchase-options li+li input[type=checkbox]:after { background-color: #fff; }</style>'));		  
65			return false;
66			
67		}
68	
69	});
70	*/
71	
72	$('.pmc-zendesk-ticket .trigger.tickets').click(function(){
73		var id = $(this).find('.pmc-ticket-id-input').attr('value');
74		$('.pmc-zendesk-ticket-load-'+id).html('<div class="loading"><i class="fa fa-spinner fa-spin fa-3x"></i></div>');
75		var ajaxurl = $('#ajaxurl').attr('value');
76		var response = '';
77		var data = {
78			'action': 'ticket_ajax',
79			'ticket-action' : 'load-ticket-comments',
80			'id':id 
81		};
82
83		jQuery.post(ajaxurl, data, function(response) {
84			$('.pmc-zendesk-ticket-load-'+id).html(response);
85		});	
86
87	});
88	
89
90
91	$('.techical-save').click(function(){
92		$('.techincal-saved').html('');
93		var gdpr_technical = 0;
94		if ($('#gdpr-technical').is(':checked')) { gdpr_technical = 1; }
95		var ajaxurl = $('#ajaxurl').attr('value');
96		
97		var data = {
98			'action': 'ticket_ajax',
99			'ticket-action' : 'save-ticket-technical',
100			'wp-url': $("#wp-url").val(), 
101			'wp-user': $("#wp-user").val(), 
102			'wp-pass': $("#wp-pass").val(), 
103			'ftp-url': $("#ftp-url").val(), 
104			'ftp-user': $("#ftp-user").val(), 
105			'ftp-pass': $("#ftp-pass").val(),
106			'gdpr-technical': gdpr_technical, 
107			'theme' : $("#theme-select-technical").val(),
108			'license' : $("#license-envato").val(),
109		};
110
111		jQuery.post(ajaxurl, data, function(response) {
112			$('.techincal-saved').html(response);
113		});		
114
115		$('.techincal-saved').fadeIn();
116		$('.techincal-saved').delay(4000).fadeOut();
117		$('#theme').val($("#theme-select-technical").val());
118		$('#theme-select').val($('#theme').val());
119		if($("#license-envato").val() != '') {
120			//location.reload();
121		}
122
123	});	
124		if (typeof tinymce !== 'undefined') {
125	tinymce.init({
126    selector: "textarea",
127    setup: function (editor) {
128        editor.on('change', function () {
129            tinymce.triggerSave();
130        });
131    }
132	});
133	}
134	
135	$('.save-ticket').click(function(){
136		var ajaxurl = $('#ajaxurl').attr('value');
137		var id = $(this).attr('rel');
138		var content = 'pmc-ticket-replay-'+ id;
139		var userid = $(this).attr('userid');
140		var $wrapper = $(this).parents('.wp-editor-wrap');
141
142		var data = {
143			'action': 'ticket_ajax',
144			'ticket-action' : 'update-ticket',
145			'wp-url': $("#wp-url").val(), 
146			'wp-user': $("#wp-user").val(), 
147			'wp-pass': $("#wp-pass").val(), 
148			'ftp-url': $("#ftp-url").val(), 
149			'ftp-user': $("#ftp-user").val(), 
150			'ftp-pass': $("#ftp-pass").val(), 	
151			'id': id , 
152			'content': tinymce.editors[content].getContent(),
153			'userid' : userid,
154			'license' : $('#license').val(),
155		};
156
157		jQuery.post(ajaxurl, data, function(response) {
158			$(".ticket-saved").html(response);
159			$('.pmc-zendesk-ticket-load-'+id).html('<div class="loading"><i class="fa fa-spinner fa-spin fa-3x"></i></div>');
160			var data = {
161				'action': 'ticket_ajax',
162				'ticket-action' : 'load-ticket-comments',
163				'id':id 
164			};
165
166			jQuery.post(ajaxurl, data, function(response) {
167				$('.pmc-zendesk-ticket-load-'+id).html(response);
168			});				
169		});	
170
171		
172		$('.pmc-zendesk-ticket-load-'+ id).html('');
173		$('#'+content).val('');
174		var tinymce_editor_id = content; 
175		tinymce.get(tinymce_editor_id).setContent('');		
176		$('.ticket-saved').fadeIn();
177		$('.ticket-saved').delay(10000).fadeOut();
178		$('.ticket-saved').html('');
179		
180	});		
181	
182	$('#theme-select,#theme-select-technical ').val($('#theme').val());
183
184	$('.trigger.sales').click(function(){
185		if($(this).hasClass('active')) {
186			$('.pmc-force-login').fadeOut();
187		} else {
188			$('.pmc-force-login').delay(800).fadeIn();
189		}
190	});
191	
192	if ($('.pmc-zendesk-ticket').length > 0) {
193
194		var ajaxurl = $('#ajaxurl').attr('value');
195		var data = {
196			'action': 'ticket_ajax',
197			'ticket-action' : 'save-ticket-technical',	
198			'wp-url': $("#wp-url").val(), 
199			'wp-user': $("#wp-user").val(), 
200			'wp-pass': $("#wp-pass").val(), 
201			'ftp-url': $("#ftp-url").val(), 
202			'ftp-user': $("#ftp-user").val(), 
203			'ftp-pass': $("#ftp-pass").val(),
204			'theme' : $("#theme-select-technical").val(),
205			'license' : $("#license-envato").val(),
206		};
207
208		jQuery.post(ajaxurl, data, function(response) {
209			$('.techincal-saved').html(response);
210		});		
211
212
213		$('.techincal-saved').fadeIn();
214		$('.techincal-saved').delay(4000).fadeOut();
215		$('#theme').val($("#theme-select-technical").val());
216		$('#theme-select').val($('#theme').val());
217		if($("#license-envato").val() != '') {
218			//location.reload();
219		}
220	}
221	
222	$(".pmc-button-clone").click(function(e) {
223		e.preventDefault();
224		var section = $(this).attr("href");
225		$("html, body").animate({
226			scrollTop: $(section).offset().top - 100
227		});
228	});	
229	$(".edd-add-to-cart").click(function(e) {
230		e.preventDefault();
231		tidioChatApi.track("buy-click");
232	
233	});	
234
235	setTimeout(function(){
236		if ( typeof(tidioChatApi) !== 'undefined' ){
237		tidioChatApi.setVisitorData({
238		  email: $('#mail_tidio').attr("value"),
239		  name: $('#username_tidio').attr("value")
240			
241		});	
242		//console.log($('#username_tidio').attr("value"));
243		}
244	}, 10000);
245		
246
247	
248
249
250});
251
252jQuery(window).on('load', function () {
253
254	if(jQuery('#license-expired').val() == 'true'){
255		jQuery('.license-expired-info').html('<i class="fa fa-exclamation-circle"></i>Expired licenses!')
256	}	
257});	
258
259
260

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.