PageSourceSearch

https://xkcolumbia.com/wp-content/themes/autospa/script/public.js?ver=7.1.2

js xkcolumbia.com collected 2026-10-07 00:54:13 UTC 36,168 bytes, 974 lines download raw bytes

1"use strict";
2
3/******************************************************************************/
4/******************************************************************************/
5
6jQuery(document).ready(function($) 
7{	
8	/**************************************************************************/
9	
10	function wcUpdateCartCount()
11	{
12		var data={'action':'cart_count_get'};
13		
14		$.ajax(
15		{
16			url				:	themeOption.config.ajax_url,
17			data			:	data,
18			type			:	'GET',
19			success			:	function(response)
20			{
21				$('.theme-icon-meta-cart>span:first-child').html(response.count);
22			},
23			dataType		:	'json'
24		});			
25	};    
26    
27	/**************************************************************************/
28
29	try
30	{
31		$.fn.qtip.zindex=10;
32	}
33	catch(e) {}    
34 
35	/**************************************************************************/
36	
37	var clickEventType=((document.ontouchstart!==null) ? 'click' : 'touchstart');
38
39    /**************************************************************************/
40    
41    if(parseInt(themeOption.rightClick.enable,10)!==1)
42    {
43        document.oncontextmenu=function() {return false;};
44        jQuery(document).mousedown(function(e)
45        { 
46            if(parseInt(e.button,10)===2) return false; 
47            return true; 
48        });
49    };
50    
51    /**************************************************************************/
52    
53    if(parseInt(themeOption.selection.enable,10)!==1)
54    {
55        jQuery('body').attr('unselectable','on').css('user-select','none').on('selectstart',false);
56    };
57
58    /**************************************************************************/
59    
60	$('.widget_archive ul>li').each(function() 
61	{
62		var link=$(this).children('a').remove();
63		var span='<span>'+$(this).text()+'</span>';
64		
65		link.html(link.text()+span);
66		$(this).html(link);
67	});
68    
69    /**************************************************************************/
70    
71	$('.widget_categories ul>li').each(function() 
72	{
73		var link=$(this).children('a').remove();
74        
75        var list='';
76        if($(this).children('ul').length)
77            list=$(this).children('ul').remove();
78        
79		var span='<span>'+$(this).text()+'</span>';
80        
81		link.html(link.text()+span);
82		$(this).html('').append(link).append(list);
83	});
84	
85	$('.widget_archive,.widget_categories').css('display','block');
86    
87    $('.widget_archive select,.widget_categories select').dropkick();
88    
89     /**************************************************************************/
90    
91	$('.widget_recent_comments>ul>li').each(function() 
92	{
93		var link=$(this).children('a')[0];
94        var author=$(this).children('span')[0];
95                 
96		$(this).html('').append(link).append(author);
97        
98        $(this).children('span').prepend('<span class="theme-icon-meta-user"></span>');
99	});
100	
101	$('.widget_recent_comments').css('display','block');
102    
103    /**************************************************************************/
104    
105	$('.widget_recent_entries>ul>li').each(function() 
106	{
107		var link=$(this).children('a')[0];
108        var date=$(this).children('span')[0];
109                 
110		$(this).html('').append(link).append(date);
111        
112        $(this).children('span').prepend('<span class="theme-icon-meta-time"></span>');
113	});
114	
115	$('.widget_recent_entries').css('display','block');
116    
117    /**************************************************************************/
118    
119	$('.widget_rss>ul>li').each(function() 
120	{
121		var author=$(this).children('cite').clone(true,true);
122		var date=$(this).children('.rss-date').clone(true,true);
123			
124        author.prepend('<span class="theme-icon-meta-user"></span>');
125        date.prepend('<span class="theme-icon-meta-time"></span>');
126        
127		$(this).children('cite').remove();
128		$(this).children('.rss-date').remove();
129		
130		if(date.length===1) $(this).children('a').after(date);
131		if(author.length===1) $(this).children('a').after(author);
132	});
133    
134    $('.widget_rss').css({display:'block'});
135    
136	/**************************************************************************/
137	
138	$('.widget_search').each(function() 
139	{
140        $(this).find('input[type="submit"]').parent().prepend('<span class="theme-icon-meta-search"></span>');
141		$(this).find('input[type="submit"]').val('');
142	});
143    
144    /**************************************************************************/
145    
146    $('.widget_calendar').each(function()
147    {
148        $(this).find('#prev>a').html('<span class="theme-icon-meta-arrow-large-rl"></span>');
149        $(this).find('#next>a').html('<span class="theme-icon-meta-arrow-large-rl"></span>');
150        $(this).css('display','block');
151    });
152    
153    /**************************************************************************/
154    
155	$().header(themeOption);
156    
157	/**************************************************************************/
158	
159	if(parseInt(themeOption.goToPageTop.enable,10)===1)
160	{
161		$('.theme-page-footer').waypoint(function(direction)
162		{
163			if(direction==='down')
164				$('#theme-go-to-top').animate({opacity:1},{duration:1000});
165			else $('#theme-go-to-top').animate({opacity:0}
165,{duration:250});
166		},
167		{
168			offset	:	'100%'
169		});
170		
171		$(window).bind('hashchange',function(e) 
172		{
173			e.preventDefault();
174			
175			var hash=window.location.hash.substring(1);
176			if($.trim(hash)===$.trim(themeOption.goToPageTop.hash))
177			{
178				var options={};
179				
180				if(parseInt(themeOption.goToPageTop.animation_enable,10)===1)
181					options={duration:parseInt(themeOption.goToPageTop.animation_duration,10),easing:themeOption.goToPageTop.animation_easing};
182				
183				options.onAfter=function() { window.location.hash='#'; };
184				
185				$.scrollTo(0,options);
186			}
187		});
188	};
189    
190    /**************************************************************************/
191    
192	$('#comments').on(clickEventType,'.theme-comment-content-read-more-link',function(e)
193	{
194		e.preventDefault();
195		var parent=$(this).parent('p');
196		
197		parent.children('.theme-comment-content-excerpt,.theme-comment-content-read-more-link').css('display','none');
198		parent.children('.theme-comment-content-content,.theme-comment-content-read-less-link').css('display','inline');
199	});
200	
201	$('#comments').on(clickEventType,'.theme-comment-content-read-less-link',function(e)
202	{
203		e.preventDefault();
204		var parent=$(this).parent('p');
205		
206		parent.children('.theme-comment-content-excerpt,.theme-comment-content-read-more-link').css('display','inline');
207		parent.children('.theme-comment-content-content,.theme-comment-content-read-less-link').css('display','none');
208	});
209    
210    /**************************************************************************/
211    
212 	if($('#comment-form').length===1)
213	{
214        $('#comments>h4').addClass('theme-header-underline');
215		$('#reply-title').replaceWith('<h4 class="theme-header-underline" id="reply-title">'+$('#reply-title').html()+'</h4>');
216		
217		$().ThemeComment({'requestURL':themeOption.config.ajax_url,'page':$('#comments').data('cpage')});
218		
219		$('#comment-form').css('display','block');
220	}
221    
222    /**************************************************************************/ 
223    
224    $('.theme-component-tab').each(function() 
225    {
226        var Helper=new Autospa_ThemeHelper();
227        
228        if(parseInt($(this).children('ul').length,10)===0)
229        {
230            var navigation=$('<ul></ul>').append($(this).find('>a'));
231            var content=$(this).find('>div');
232
233            $(this).html('').append(navigation).append(content);
234
235            $(this).find('ul>a').wrap('<li></li>');
236        }
237        
238        $(this).css('display','block');
239        
240        var option=
241        {
242            'active'                                                            :   (parseInt($(this).data('close_start'),10)===1 ? false : parseInt($(this).data('active'),10)),
243            'collapsible'                                                       :   Helper.parseBool($(this).data('collapsible')),
244            'heightStyle'                                                       :   $(this).data('height_style')                  
245        };
246        
247        if(parseInt($(this).data('animation_open_enable'),10)===1)
248        {
249            option.show=
250            {
251                delay                                                           :   parseInt($(this).data('animation_open_delay'),10),
252                easing                                                          :   $(this).data('animation_open_easing'),
253                duration                                                        :   parseInt($(this).data('animation_open_duration'),10)
254            };
255        };
256        
257        if(parseInt($(this).data('animation_close_enable'),10)===1)
258        {
259            option.hide=
260            {
261                delay                                                           :   parseInt($(this).data('animation_close_delay'),10),
262                easing                                                          :   $(this).data('animation_close_easing'),
263                duration                                                        :   parseInt($(this).data('animation_close_duration'),10)
264            };
265        };
266        
267        $(this).tabs(option);
268    });
269    
270    /**************************************************************************/
271
272    $('.theme-component-accordion').each(function() 
273    {
274        var Helper=new Autospa_ThemeHelper();
275
276        $(this).css('display','block');
277        
278        var option=
279        {
280            'active'                                                            :   (parseInt($(this).data('close_start'),10)===1 ? false : parseInt($(this).data('active'),10)),
281            'collapsible'                                                       :   Helper.parseBool($(this).data('collapsible')),
282            'heightStyle'                                                       :   $(this).data('height_style'),
283            'header'                                                            :   'h6',
284            'animate'                                                           :   false,
285            'icons'                                                             :   false
286        };
287        
288        if(parseInt($(this).data('animation_enable'),10)===1)
289            option.animate={duration:parseInt($(this).data('animation_duration'),10),easing:$(this).data('animation_easing')};
290        
291        $(this).accordion(option);
292    });
293    
294    /**************************************************************************/
295    
296    $('.theme-component-google-map').each(function() 
297    {
298        var $this=$(this);
299        
300        $.getScript('//maps.google.com/maps/api/js?key='+$(this).data('google_map_api_key'),function()
301        {
302            var map=$this.children('.theme-component-google-map-map');
303            var mapInner=map.children('div');
304
305            var button=$this.children('.theme-component-google-map-button');
306                 
307            mapInner.css({width:$this.data('width'),height:$this.data('height')});
308			
309            if(button.length===1)
310			{
311				button.on('click',function(e)
312				{
313					e.preventDefault();
314					if(!$this.hasClass('theme-state-open'))
315					{
316						map.animate({'height':$this.data('height')},{duration:500,complete:function()
317						{
318							$this.addClass('theme-state-open');
319						}});
320					}
321					else
322					{
323						map.animate({'height':0},{duration:500,complete:function()
324						{
325							$this.removeClass('theme-state-open');
326						}});						
327					}
328				});
329			}
330			else
331			{
332                $this.parent('.wpb_wrapper').css('height','100%');
333                $this.css({height:$this.data('height'),width:$this.data('width')});
334                map.css({height:$this.data('height'),width:$this.data('width')});
335			}
336            
337            /* lp */
338            var iframe='<iframe style="border:0" width="'+$this.data('width')+'" height="'+$this.data('height')+'" src="https://www.google.com/maps/embed/v1/place?key='+$this.data('google_map_api_key')+'&center='+$this.data('coordinate_lat')+','+$this.data('coordinate_lng')+'&q='+$this.data('coordinate_lat')+','+$this.data('coordinate_lng')+'&zoom='+$this.data('zoom_level')+'" allowfullscreen="" frameborder="0"></iframe>';
339            mapInner.append(iframe);
340            return;
341            /* /lp */
342            
343            var $option=
344            {
345                map                                                             :
346                {	
347                    draggable                                                   :	$this.data('draggable_enable'),
348                    scrollwheel                                                 :	$this.data('scrollwheel_enable'),
349                    mapTypeId                                                   :	google.maps.MapTypeId[$this.data('map_type_id')],
350                    mapTypeControl                                              :	$this.data('map_type_control_enable'),
351                    mapTypeControlOptions                                       :	
352                    {
353                        style                                                   :	google.maps.MapTypeControlStyle[$this.data('map_type_control_style')],
354                        position                                                :	google.maps.ControlPosition[$this.data('map_type_control_position')],
355                    },
356                    zoom                                                        :	$this.data('zoom_level'),
357                    zoomControl                                                 :	$this.data('zoom_control_enable'),
358                    zoomControlOptions                                          :	
359                    {
360                        style                                                   :	google.maps.ZoomControlStyle[$this.data('zoom_control_style')],
361                        position                                                :	google.maps.ControlPosition[$this.data('zoom_position')]
362                    },
363                    panControl                                                  :    $this.data('pan_control_enable'),
364                    panControlOptions                                           :
365                    {
366                        position                                                :    google.maps.ControlPosition[$this.data('pan_control_position')]            
367                    },
368                    scaleControl                                                :    $this.data('scale_control_enable'),
369                    scaleControlOptions                                         :
370                    {
371                        position                                                :    google.maps.ControlPosition[$this.data('scale_control_position')]
372                    },
373                    streetViewControl                                           :    $this.data('street_view_enable'),
374                    streetViewControlOptions                                    :
375                    {
376                        position                                                :    google.maps.ControlPosition[$this.data('street_view_position')]
377                    }
378                }
379            };
380            
381            
382  			var coordinate=new google.maps.LatLng($this.data('coordinate_lat'),$this.data('coordinate_lng'));
383			$option.map.center=coordinate;
384            
385			var googleMap=new google.maps.Map(document.getElementById(mapInner.attr('id')),$option.map);
386            
387            if(new String(typeof(googleMapStyle))!=='undefined')
388                googleMap.setOptions({styles:googleMapStyle[mapInner.attr('id')]});
389            
390            new google.maps.Marker({map:googleMap,position:coordinate,icon:$this.data('marker_url')});
391
392            $(window).resize(function() 
393			{
394				var currCenter=googleMap.getCenter();
395				google.maps.event.trigger(googleMap,'resize');
396				googleMap.setCenter(currCenter);
397			});
398        });
399    });
400
401    /**************************************************************************/
402    
403    $('.theme-component-progress-bar').each(function() 
404    {
405        var progressBar=$(this);
406        
407        var maxValue=0;
408        progressBar.find('.theme-component-progress-bar-item').each(function() 
409		{
410			var value=parseInt($(this).data('value'),10);
411			if(maxValue<value) maxValue=value;
412		});      
413        
414        progressBar.find('.theme-component-progress-bar-item').each(function() 
415        {
416            $(this).find('>span').html($(this).data('character_before')+'0'+$(this).data('character_after'));
417            
418			new Waypoint(
419			{
420				offset                                                          :	'90%',
421				element                                                         :	this,
422				handler                                                         :	function() 
423				{
424                    var progressBarItem=$(this.element);
425                                      
426                    if(progressBarItem.hasClass('theme-state-complete')) return;
427					progressBarItem.addClass('theme-state-complete');
428
429                    var progressBarItemBar=progressBarItem.find('>div>div');
430                    var progressBarItemValue=progressBarItem.children('span');
431
432					var i=0;
433					var portion=(progressBarItem.data('value')/maxValue);
434
435					progressBarItemBar.animate({width:(portion*100)+'%'},{duration:progressBar.data('animation_duration'),easing:progressBar.data('animation_easing_type'),step:function(now,fx) 
436					{
437						i++;
438						progressBarItemValue.html(progressBarItem.data('character_before')+Math.round(((now/100)*maxValue))+progressBarItem.data('character_after'));
439					}});    
440				}
441			});            
442        });
443    });
444    
445     /**************************************************************************/
446    
447    $('.theme-component-counter-box').each(function() 
448    {
449        var counterBox=$(this);
450        
451        var maxValue=0;
452        counterBox.find('.theme-component-counter-box-item').each(function() 
453		{
454			var value=parseInt($(this).data('value'),10);
455			if(maxValue<value) maxValue=value;
456		});      
457        
458        counterBox.find('.theme-component-counter-box-item').each(function() 
459        {
460			new Waypoint(
461			{
462				offset                                                          :	'90%',
463				element                                                         :	this,
464				handler                                                         :	function() 
465				{
466                    var counterBoxItem=$(this.element);
467                                      
468                    if(counterBoxItem.hasClass('theme-state-complete')) return;
469					counterBoxItem.addClass('theme-state-complete');
470
471                    var progressBarItemValue=counterBoxItem.children('span:first');
472                    var interval=counterBox.data('animation_duration')/counterBoxItem.data('value');
473
474					for(var i=0;i<=counterBoxItem.data('value');i++)
475					{
476						window.setTimeout(function() 
477						{
478							progressBarItemValue.html(parseInt(progressBarItemValue.text(),10)+1);
479						},interval*i,i);
480					}
481				}
482			});            
483        });
484    });
485    
486    /**************************************************************************/
487    
488    $('.theme-component-testimonial-list').each(function() 
489    {    
490        var $self=$(this);
491        
492        $self.children('ul:first').carouFredSel(
493        {
494            circular                                                            :	$self.data('carousel_circular_enable'),
495            inifinite                                                           :	$self.data('carousel_inifite_enable'),
496            direction                                                           :	$self.data('carousel_direction'),
497            responsive                                                          :	true,
498            items                                                               :
499            {
500                start                                                           :	0,
501                height                                                          :	'variable',
502                visible                                                         :	1,
503                minimum                                                         :	1
504            },
505            scroll                                                              :
506            {
507                fx                                                              :	$self.data('carousel_scroll_fx'),
508                items                                                           :	1,
509                easing                                                          :	$self.data('carousel_scroll_easing'),
510                duration                                                        :	$self.data('carousel_scroll_duration'),
511                pauseOnHover                                                    :	$self.data('carousel_scroll_pause_hover_enable')
512            },
513            auto                                                                :
514            {
515                play                                                            :	$self.data('carousel_auto_play_enable'),
516                timeoutDuration                                                 :	$self.data('carousel_auto_timeout_duration')
517            },
518            swipe                                                               :
519            {
520                onTouch                                                         :	true,
521                onMouse                                                         :	true
522            },
523            prev                                                                :
524            {
525                button                                                          :	$self.find('.theme-component-testimonial-list-navigation-left')
526            },
527            next                                                                :
528            {
529                button                                                          :	$self.find('.theme-component-testimonial-list-navigation-right')
530            },
531            onCreate                                                            :   function()
532            {
533                $().windowDimensionListener({change:function(width,height)
534                {
535                    if(width || height)
536                    {
537                        var maxHeight=0;
538                        $self.find('ul>li').each(function()
539                        {
540                            $(this).css('height','auto');
541                            var height=$(this).actual('height');
542                            if(height>maxHeight) maxHeight=height;
543                        });
544                    
545                        $.each([$self.find('ul>li'),$self.find('ul'),$self.find('>div.caroufredsel_wrapper'),$self],function()
546                        {
547                            $(this).height(maxHeight);
548                        });
549                    }
550                }});
551            }
552        });
553	});
554    
555    /**************************************************************************/
556    
557    $('.theme-component-preformatted-text').each(function()
558    {
559		$(this).find('>div>a').on('click',function(e) 
560		{
561            e.preventDefault();
562              
563            var parent=$(this).parents('.theme-component-preformatted-text');
564            if(parent.hasClass('theme-state-open'))
565            {
566                parent.addClass('theme-state-close').removeClass('theme-state-open');
567            }
568            else
569            {
570                parent.addClass('theme-state-open').removeClass('theme-state-close');
571            }
572        });
573    });
574    
575    /**************************************************************************/
576    
577    $('ul.theme-component-list li').each(function()
578    {
579        $(this).prepend('<span></span>');
580    });
581    
582    $('a.prettyphoto,a.vc_single_image-wrapper').addClass('theme-image').addClass('theme-image-preloader').addClass('theme-image-hover');
583    
584    /**************************************************************************/
585    
586    $('.theme-image').each(function() 
587    {
588        if(!$(this).parents('.theme-component-gallery-masonry').length)
589        {
590            if(!$(this).hasClass('theme-image-hover').length) 
591            {
592                var object=$(this).find('a').length===1 ? $(this).find('a') : $(this);
593                object.prepend('<span class="theme-image-hover-layer"></span>');
594            }
595            if(!$(this).hasClass('theme-image-preloader').length) 
596            {
597                $(this).addClass('theme-image-preloader');
598            }
599        }
600    });
601    
602    /**************************************************************************/
603    
604    $('.theme-image.theme-image-preloader').each(function() 
605    {
606		var $self=$(this);
607		var $image=$self.find('img');
608
609		if($image.length===1)
610		{
611			$($image).one('load',function()
612			{
613				$self.css({'background-image':'none'});
614							
615				var object=$self.children('a').length===1 ? $self.children('a') : $image;
616							
617				object.animate({'opacity':1},1000,function() 
618				{			
619
620				}); 
621			}).each(function() 
622			{
623				if(this.complete) $(this).load();
624			});
625		}
626	});
627    
628    /**************************************************************************/
629    
630	$('a.prettyphoto,a.theme-image-fancybox,.woocommerce-product-gallery__image>a').fancyBoxLaunch();
631    
632    /**************************************************************************/
633        
634    $('.theme-component-gallery-masonry').each(function() 
635    {
636        $(this).galleryMasonry();
637    });
638    
639    /**************************************************************************/
640    
641	$('.theme-page-header-top-social-list .theme-icon-meta-search').on('click',function(e)
642    {
643		e.preventDefault();
644				
645		var searchForm=$('#theme-search-form');
646		if(searchForm.length!==1) return;
647				
648        searchForm.css({display:'table'}).animate({opacity:0.95},{duration:200,complete:function()
649        {
650            searchForm.addClass('template-state-open');
651            searchForm.find('input[type="search"]').focus();
652        }});
653			
654        searchForm.children('div:first').on('click',function(e)
655        {
656            searchForm.animate({opacity:0}
656,{duration:0,complete:function()
657            {
658                searchForm.css({display:'none'}).removeClass('template-state-open');
659            }});
660        });
661    });
662    
663    /**************************************************************************/
664    
665    $('.wpcf7 .wpcf7-submit').addClass('theme-button theme-button-1');
666    
667    $('.wpcf7 .theme-form-field').on('click',function()
668    {
669        $(this).find(':input').focus();
670    });
671	
672	$('.wpcf7').on('wpcf7submit',function()
673	{
674		var $this=$(this);
675	
676		var formResponseInterval=setInterval(function() 
677		{
678			$this.find('*').qtip('destroy');
679	 
680			$this.find('.theme-form-field').each(function() 
681			{
682				var tip=$(this).find('.wpcf7-not-valid-tip');
683
684				if(!tip.length) return(true);
685
686				$(this).find('label:first').qtip(
687				{
688					show:	
689					{ 
690						target:$(this) 
691					},
692					style:	
693					{ 
694						classes:'theme-qtip theme-qtip-error'
695					},
696					content: 	
697					{ 
698						text:tip.text()
699					},
700					position: 	
701					{ 
702						my:'left center',
703						at:'right center' 
704					}
705				}).qtip('show');	
706
707				tip.remove();
708			});
709			
710			var response=$this.find('.wpcf7-response-output');
711			if(parseInt(response.length,10)===1)
712			{
713				var responseText=response.text();
714				if($.trim(responseText).length===0) return;
715				
716				$this.find('input[type="submit"]').qtip(
717				{
718					show:	
719					{ 
720						target:$(this) 
721					},
722					style:	
723					{ 
724						classes:(response.hasClass('wpcf7-validation-errors') ? 'theme-qtip theme-qtip-error' : 'theme-qtip theme-qtip-success')
725					},
726					content: 	
727					{ 
728						text:responseText
729					},
730					position: 	
731					{ 
732						my:'right center',
733						at:'left center' 
734					}
735				}).qtip('show');   
736			}
737			
738			clearInterval(formResponseInterval);
739			
740		},100);
741	});
742    
743    $('.wpcf7').css('display','block');
744
745    /**************************************************************************/
746 
747    $('.theme-component-notice').each(function() 
748    {        
749        var $this=$(this);
750        
751        var time=parseInt($(this).data('time_to_close'),10);
752        var closeButton=$(this).find('.theme-component-notice-content-close-button');
753        var progressBar=$(this).find('.theme-component-notice-content-progress-bar>div');
754        
755        closeButton.bind('click',function(e) 
756        {
757            e.preventDefault();
758            $this.fadeOut(300,function()
759            {
760                
761            });
762        });
763        
764        if(time<=0) return;
765        if((closeButton.length===0) && (progressBar.length===0)) return;
766
767        var timer=closeButton.find('span');
768
769        $(timer).countdown(
770        {
771            until		:	time,
772            format		:	'S',
773            layout		:	' {sn} ',
774            onExpiry	:	function()
775            {
776                $(this).hide(600,function()
777                {
778                    $this.remove();
779                });
780            },
781            onTick		:	function(period)
782            {	
783                timer.html(period[6]);
784            }
785        }); 
786
787        if(progressBar.length===1)
788            progressBar.animate({width:'100%'},{duration:time*1000,easing:'linear'});
789    });
790    
791    /**************************************************************************/
792    
793	var mailChimpWidget=$('.widget_mc4wp_form_widget');
794	
795	if(mailChimpWidget.length===1)
796	{
797		mailChimpWidget.find('form').attr('novalidate','novalidate');
798		
799        if(mailChimpWidget.parents('.theme-page-footer'))
800            mailChimpWidget.find('input[type="submit"]').addClass('theme-button theme-button-3');
801        else mailChimpWidget.find('input[type="submit"]').addClass('theme-button theme-button-1');
802        
803		mailChimpWidget.find(':input').each(function() 
804		{	
805			$(this).removeAttr('placeholder').removeAttr('required').attr('id',$(this).attr('name'));
806			
807			var label=$(this).prev('label');
808			if(label.length===1) label.attr('for',$(this).attr('id'));
809		});
810		
811		var notice=mailChimpWidget.find('.mc4wp-response');
812
813		if((notice.children('.mc4wp-success').length) || (notice.children('.mc4wp-error').length))
814		{
815			if(notice.length)
816			{
817				mailChimpWidget.find('p:first').qtip(
818				{
819					style			:      
820					{
821						classes		:	(notice.children('.mc4wp-success').length===1 ? 'qtip theme-qtip theme-qtip-success' : 'qtip theme-qtip theme-qtip-error')
822					},
823					content			: 	
824					{
825						text		:	notice.find('>.mc4wp-alert>p').text()
826					},
827					position		: 	
828					{
829						my			:	'bottom center',
830						at			:	'top center'
831					}
832				}).qtip('show');
833
834				notice.css('display','none');
835			}
836		}
837	}
838    
839    /**************************************************************************/
840    
841   	$().windowDimensionListener({change:function(width,height)
842	{
843        if(width)
844        {
845            $('[data-responsive-mode="1"]').each(function()
846            {
847                var width=0;
848                var object=this;
849                
850                while(1)
851                {
852                    var children=$(object).children('*');
853                    if(children.length>1) break;
854                    else object=children;
855                }
856 
857                children.each(function() 
858                {
859                    width+=$(this).children('div').actual('outerWidth',{'includeMargin':true});
860                });
861 
862                if(width>$(this).actual('innerWidth'))
863                    $(this).addClass('theme-responsive-mode');
864                else $(this).removeClass('theme-responsive-mode');
865            });
866            
867            $('.wpcf7').each(function()
868            {
869                var width=$(this).actual('outerWidth',{'includeMargin':true});
870                if(width<=768) $(this).addClass('theme-responsive-mode');
871                else $(this).removeClass('theme-responsive-mode');
872            });
873        }
874	}});
875    
876    /**************************************************************************/
877    
878	if(parseInt(themeOption.config.woocommerce.enable,10)===1)
879	{
880		/***/
881        
882        $('.theme-page-footer .widget_price_filter .price_slider_amount .button').addClass('theme-button theme-button-3');
883        
884        /***/
885        
886        $('.theme-page-footer .widget_shopping_cart .buttons .button').addClass('theme-button theme-button-3');
887        
888        /***/
889        
890        $('.widget_product_categories ul>li').each(function() 
891        {
892            var link=$(this).children('a').remove();
893
894            var list='';
895            if($(this).children('ul').length)
896                list=$(this).children('ul').remove();
897
898            var span='<span>'+$(this).text()+'</span>';
899
900            link.html(link.text()+span);
901            $(this).html('').append(link).append(list);
902        });
903        
904        /***/
905         
906        $('.widget_product_search').each(function() 
907        {
908            $(this).find('button').parent().append('<span class="theme-icon-meta-search"></span>');
909            $(this).find('button').html('');
910        });
911        
912        /***/
913        
914        $('.woocommerce .woocommerce-ordering select,.woocommerce .widget_product_categories select').dropkick();
915        
916        /***/
917        
918		$('.woocommerce .quantity .plus').on('click',function()
919		{
920			var input=$(this).prev();
921			input.val(parseInt(input.val(),10)+1);
922            $('input[name="update_cart"]').removeAttr('disabled');
923		});
924		
925		$('.woocommerce .quantity .minus').on('click',function()
926		{
927			var input=$(this).next();
928			input.val((parseInt(input.val(),10)-1>0 ? parseInt(input.val(),10)-1 : 1));
929            $('input[name="update_cart"]').removeAttr('disabled');
930		});
931        
932        /***/
933        
934        $('.theme-wc-add-to-cart-notice').each(function() 
935        {
936            var link=$(this).children('a').remove();
937            var span='<span>'+$(this).text()+'</span>';
938		
939            $(this).html(span).append(link);
940            
941            $(this).parents('.theme-component-notice-content').find('.theme-component-notice-content-close-button').parent('div').css('display','none');
942        });
943        
944        /***/  
945        
946		$('body').on('updated_cart_totals',function()
947		{
948			wcUpdateCartCount();
949		});
950		
951		$('body').on('added_to_cart',function() 
952		{
953			wcUpdateCartCount();			
954		});
955		
956		$('body').on('updated_wc_div',function() 
957		{
958			wcUpdateCartCount();
959		});
960        
961        /***/  
962        
963        $('#reply-title').replaceWith('<h4 class="theme-header-underline" id="reply-title">'+$('#reply-title').html()+'</h4>');
964        
965        /***/
966    };
967    
968    $('.theme-table-responsive-on').responsiveTable();
969    
970    /**************************************************************************/
971});
972
973/******************************************************************************/
974/******************************************************************************/

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.