PageSourceSearch

https://www.jornadainterativa.com.br/wp-content/themes/kingclub-theme/scripts/frontend/functions.js?ver=4.5.32

js jornadainterativa.com.br collected 2026-10-03 00:10:37 UTC 8,781 bytes, 256 lines download raw bytes

1
2//Normal Call Back Functions
3jQuery(document).ready(function($) {
4
5
6jQuery('.tabs ul li').click(function(){
7        jQuery('.bmark_active').addClass('bmark');
8        jQuery('.bmark_active').removeClass('bmark_active');
9        jQuery(this).addClass('bmark_active');
10        jQuery(this).removeClass('bmark');
11    });
12
13jQuery(".sub-menu").parent("li").addClass("parentIcon");
14
15// Foucs Blur function for input field 
16  jQuery(' textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"]').focus(function() {
17    if (!$(this).data("DefaultText")) $(this).data("DefaultText", $(this).val());
18    if ($(this).val() != "" && $(this).val() == $(this).data("DefaultText")) $(this).val("");
19  }).blur(function() {
20    if ($(this).val() == "") $(this).val($(this).data("DefaultText"));
21  });
22  jQuery('a.btngotop').click(function(event) {
23    event.preventDefault();
24    jQuery('html, body').animate({scrollTop: 0}, 1000);
25    return false;
26})
27	jQuery("a.btnsearch") .click(function(){
28		jQuery("#searcharea").slideToggle(200);
29		return false;
30	})
31
32// JavaScript Toggle function everywhere click close
33
34 jQuery('html').click(function() {
35 jQuery("#searcharea").slideUp();
36 });
37 jQuery(".close-form").click(function(event) {
38  jQuery("#searcharea").slideUp();
39  return false;
40 });
41jQuery('a.btnsearch,#searcharea').click(function(event){
42     event.stopPropagation();
43 });
44// JavaScript Toggle function everywhere click close
45
46	/*jQuery(".twitter_sign .flexslider").flexslider({
47	animation: "fade",
48	prevText: "",
49	nextText: "",
50	slideshowSpeed: 3000
51	});
52	
53	jQuery('#main .flexslider').flexslider({
54    animation: "slide",
55      prevText: "<i class='fa fa-angle-left'></i>",
56     nextText: "<i class='fa fa-angle-right'></i>",
57     slideshowSpeed: 4000
58
59  });*/
60  jQuery('[data-toggle="tooltip"]').tooltip()
61
62    
63    
64});
65
66function px_flexsliderBannerGallery() {
67	jQuery(".flexslider").flexslider({
68		animation: "fade",
69		prevText: " <i class='fa fa-arrow-left'></i>",
70		nextText: " <i class='fa fa-arrow-right'></i>"
71	});
72
73}
74
75function px_flexsliderGallery() {
76	jQuery(".flexslider").flexslider({
77		animation: "fade",
78		prevText: " <i class='fa fa-arrow-left'></i>",
79		nextText: " <i class='fa fa-arrow-right'></i>"
80	});
81	
82}
83
84function BannerGallery() {
85	jQuery("#banner .flexslider").flexslider({
86		animation: "fade",
87		prevText: " <i class='fa fa-arrow-left'></i>",
88		nextText: " <i class='fa fa-arrow-right'></i>"
89	});
90	
91	
92}
93
94// event countdown
95function px_event_countdown(year_event,month_event,date_event,hours,mints,id,trans_days,trans_hours,trans_minutes,trans_seconds){
96	"use strict";
97	var austDay = new Date();
98	austDay = new Date(year_event,month_event-1,date_event,hours,mints);
99	jQuery('#defaultCountdown'+id).countdown({until: austDay,
100	layout: '<span>{dn} <small>'+trans_days+'</small></span>  <span>{hn} <small>'+trans_hours+'</small></span>  <span>{mn} <small>'+trans_minutes+'</small></span> <span>{sn} <small>'+trans_seconds+'</small></span> '});
101}
102
103// Mailchimp widget 
104function px_mailchimp_add_scripts () {
105	'use strict';
106	(function (a) {
107	    a.fn.ns_mc_widget = function (b) {
108	        var e, c, d;
109	        e = {
110	            url: "/",
111	            cookie_id: false,
112	            cookie_value: ""
113	        };
114	        d = jQuery.extend(e, b);
115	        c = a(this);
116	        c.submit(function () {
117				var mailchimp_submitvalue = jQuery('.widget_newsletter form input[type="submit"]').val();
118
119				var mailchimp_key_validation = jQuery('#mailchimp_key_validation').val();
120				
121				if( mailchimp_key_validation  != ""){
122					//api_key_error = jQuery("<p class='bad_authentication'>" + mailchimp_key_validation + "</p>");
123					//c.prepend(api_key);
124					alert(mailchimp_key_validation);
125					return false;
126				} else {
127				
128	            var f;
129	            f = jQuery("<div class='loader_img'><i class='fa fa-spinner fa-spin fa-1x'></i></div>");
130	            f.css({
131	                "background-position": "center center",
132	                "background-repeat": "no-repeat",
133	                height: "25px",
134	                right: "20px",
135					color: "#000",
136	                position: "absolute",
137	                top: "109px",
138	                width: "100px",
139	                "z-index": "100"
140	            });
141	            c.css({
142	                height: "100%",
143	                position: "relative",
144	                width: "100%"
145	            });
146				//if(jQuery('.widget_newsletter').hasClass('bad_authentication')){
147					jQuery('.bad_authentication').remove();
148					//i.remove();
149				//}
150				
151					jQuery('.error').remove();
152				
153	          //  c.children().hide();
154	            c.prepend(f);
155	            a.getJSON(d.url, c.serialize(), function (h, k) {
156					//alert(h+'======'.k);
157	                var j, g, i;
158	                if ("success" === k) {
159	                    if (true === h.success) {
160							if(jQuery('.widget_newsletter span').hasClass('bad_authentication')){
161								i.remove();
162							}
163							
164	                        i = jQuery("<p class='bad_authentication'>" + h.success_message + "</p>");
165	                        i.hide();
166							f.remove();
167							
168							
169	                        c.fadeTo(400, 0, function () {
170	                            c.prepend(i);
171	                            i.show();
172	                            c.fadeTo(400, 1)
173	                        });
174	                        if (false !== d.cookie_id) {
175	                            j = new Date();
176	                            j.setTime(j.getTime() + "3153600000");
177	                            document.cookie = d.cookie_id + "=" + d.cookie_value + "; expires=" + j.toGMTString() + ";"
178	                        }
179							jQuery('.loader_img').remove();
180	                    } else {
181							jQuery('.loader_img').remove();
182	                        g = jQuery(".error", c);
183	                        if (0 === g.length) {
184	                            f.remove();
185	                            c.children().show();
186	                            g = jQuery('<div class="error"></div>');
187	                            g.prependTo(c)
188	                        } else {
189	                            f.remove();
190	                            c.children().show()
191	                        }
192	                        g.html(h.error)
193	                    }
194	                }
195					jQuery('.widget_newsletter input[type="submit"]').val(mailchimp_submitvalue);
196	                return false
197	            });
198				}
199	            return false
200	        })
201	    }
202	}(jQuery));
203	
204	
205	
206
207}
208
209
210jQuery(document).ready(function($) {
211  MenuToggle();
212  jQuery(window) .resize(function(event) {
213    /* Act on the event */
214    MenuToggle()
215  });
216     jQuery("#menus  li.sub-icon > a") .bind("click",function(){
217      jQuery(this) .next() .slideToggle(200);
218      return false;
219     });
220       jQuery( ".cs-click-menu" ).click(function() {
221        jQuery(this) .next() .slideToggle(200)
222      });
223});
224
225
226function MenuToggle() {
227   var a = jQuery(window).width();
228 var b = 1000
229 if (a <= b) {
230 jQuery("#menus ul") .parent('li') .addClass('sub-icon');
231  jQuery("#menus ul") .hide();
232    } else {
233        jQuery("#menus ul,#menus") .show();
234    }
235}
236
237function px_points_table_sorting(id) {
238   jQuery(".table"+id).stupidtable();
239}
240
241	jQuery(document).ready(function(){
242				jQuery("area[rel^='prettyPhoto']").prettyPhoto();
243				
244				jQuery(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'normal', hook: 'rel', theme:'pp_default',slideshow:3000,social_tools:'',autoplay_slideshow: false});
245				jQuery(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'fast',slideshow:10000, hideflash: true});
246		
247				jQuery("#custom_content a[rel^='prettyPhoto']:first").prettyPhoto({
248					custom_markup: '<div id="map_canvas" style="width:260px; height:265px"></div>',
249					changepicturecallback: function(){ initialize(); }
250				});
251
252				jQuery("#custom_content a[rel^='prettyPhoto']:last").prettyPhoto({
253					custom_markup: '<div id="bsap_1259344" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div><div id="bsap_1237859" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6" style="height:260px"></div><div id="bsap_1251710" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div>',
254					changepicturecallback: function(){ _bsap.exec(); }
255				});
256			});

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.