PageSourceSearch

https://sundancevacationsblog.com/wp-content/themes/travel-time/js/jquery.script.js?ver=1.0.0

js sundancevacationsblog.com collected 2026-09-26 03:14:33 UTC 33,185 bytes, 1,301 lines download raw bytes

1/**
2 * @package 	WordPress
3 * @subpackage 	Travel Time
4 * @version 	1.2.3
5 * 
6 * Theme Custom Scripts
7 * Created by CMSMasters
8 * 
9 */
10
11
12jQuery(document).ready(function() { 
13	"use strict";
14	
15	/* Add Class To Row */
16	(function ($) { 
17		$('.cmsmasters_row_margin').each(function () { 
18			var cmsmasters_column = $(this).find('.cmsmasters_column').eq(0);
19			
20			
21			if ( 
22				cmsmasters_column.hasClass('one_half') && 
23				cmsmasters_column.next().hasClass('one_half') 
24			) {
25				$(this).addClass('cmsmasters_1212');
26			} else if ( 
27				cmsmasters_column.hasClass('one_third') && 
28				cmsmasters_column.next().hasClass('two_third') 
29			) {
30				$(this).addClass('cmsmasters_1323');
31			} else if ( 
32				cmsmasters_column.hasClass('two_third') && 
33				cmsmasters_column.next().hasClass('one_third') 
34			) {
35				$(this).addClass('cmsmasters_2313');
36			} else if ( 
37				cmsmasters_column.hasClass('one_fourth') && 
38				cmsmasters_column.next().hasClass('three_fourth') 
39			) {
40				$(this).addClass('cmsmasters_1434');
41			} else if ( 
42				cmsmasters_column.hasClass('three_fourth') && 
43				cmsmasters_column.next().hasClass('one_fourth') 
44			) {
45				$(this).addClass('cmsmasters_3414');
46			} else if ( 
47				cmsmasters_column.hasClass('one_third') && 
48				cmsmasters_column.next().hasClass('one_third') && 
49				cmsmasters_column.next().next().hasClass('one_third') 
50			) {
51				$(this).addClass('cmsmasters_131313');
52			} else if (
53				cmsmasters_column.hasClass('one_half') && 
54				cmsmasters_column.next().hasClass('one_fourth') && 
55				cmsmasters_column.next().next().hasClass('one_fourth')
56			) {
57				$(this).addClass('cmsmasters_121414');
58			} else if ( 
59				cmsmasters_column.hasClass('one_fourth') && 
60				cmsmasters_column.next().hasClass('one_half') && 
61				cmsmasters_column.next().next().hasClass('one_fourth')
62			) {
63				$(this).addClass('cmsmasters_141214');
64			} else if ( 
65				cmsmasters_column.hasClass('one_fourth') && 
66				cmsmasters_column.next().hasClass('one_fourth') && 
67				cmsmasters_column.next().next().hasClass('one_half') 
68			) {
69				$(this).addClass('cmsmasters_141412');
70			} else if ( 
71				cmsmasters_column.hasClass('one_fourth') && 
72				cmsmasters_column.next().hasClass('one_fourth') && 
73				cmsmasters_column.next().next().hasClass('one_fourth') && 
74				cmsmasters_column.next().next().next().hasClass('one_fourth') 
75			) {
76				$(this).addClass('cmsmasters_14141414');
77			} else {
78				$(this).addClass('cmsmasters_11');
79			}
80		} );
81	} )(jQuery);
82
83
84
85	/* Scroll Top */
86	(function ($) { 
87		$(window).scroll(function () { 
88			if ($(this).scrollTop() > 200) {
89				$('#slide_top').filter(':hidden').fadeIn('fast');
90			} else {
91				$('#slide_top').filter(':visible').fadeOut('fast');
92			}
93		} );
94		
95		
96		$('.divider a, #slide_top').on('click', function () { 
97			$('html, body').animate( { 
98				scrollTop : 0 
99			}, 'slow');
100			
101			
102			return false;
103		} );
104	} )(jQuery);
105
106
107
108	/* Lightbox Classes Adding */
109	(function ($) { 
110		$('.widget_custom_flickr_entries').each(function () { 
111			var flickrUniqID = uniqID();
112			
113			
114			$(this).find('.flickr_badge_image a').each(function () { 
115				var src = $(this).find('img').attr('src'), 
116					title = $(this).find('img').attr('title'), 
117					src_full = src.replace(/_s.jpg/g, '.jpg');
118				
119				
120				$(this).removeAttr('href').attr( { 
121					href : 		src_full, 
122					title : 	title, 
123					rel : 		'ilightbox[flickr_' + flickrUniqID + ']' 
124				} );
125			} );
126		} ); // Flickr Widget Lightbox
127		
128		
129		$('.gallery').each(function () { 
130			var galUniqID = uniqID();
131			
132			
133			$(this).find('a').each(function () { 
134				var linkHref = $(this).attr('href'), 
135					lastDotPos = linkHref.lastIndexOf('.'), 
136					imgFormat = linkHref.slice(lastDotPos + 1);
137				
138				
139				if (imgFormat.length <= 5) {
140					$(this).attr('rel', 'ilightbox[wp_gal_' + galUniqID + ']');
141				}
142			} );
143		} ); // WordPress Default Gallery Shortcode Lightbox
144	} )(jQuery);
145	
146	
147	
148	/* iLightBox Init */
149	(function ($) { 
150		var ilightbox_settings = { 
151			skin : 					cmsmasters_script.ilightbox_skin, 
152			path : 					cmsmasters_script.ilightbox_path, 
153			infinite : 				(cmsmasters_script.ilightbox_infinite == '1') ? true : false, 
154			keepAspectRatio : 		(cmsmasters_script.ilightbox_aspect_ratio == '1') ? true : false, 
155			mobileOptimizer : 		(cmsmasters_script.ilightbox_mobile_optimizer == '1') ? true : false, 
156			maxScale : 				Number(cmsmasters_script.ilightbox_max_scale), 
157			minScale : 				Number(cmsmasters_script.ilightbox_min_scale), 
158			innerToolbar : 			(cmsmasters_script.ilightbox_inner_toolbar == '1') ? true : false, 
159			smartRecognition : 		(cmsmasters_script.ilightbox_mobile_optimizer == '1') ? true : false, 
160			fullAlone : 			(cmsmasters_script.ilightbox_fullscreen_one_slide == '1') ? true : false, 
161			fullViewPort : 			cmsmasters_script.ilightbox_fullscreen_viewport, 
162			controls : { 
163				toolbar : 			(cmsmasters_script.ilightbox_controls_toolbar == '1') ? true : false, 
164				arrows : 			(cmsmasters_script.ilightbox_controls_arrows == '1') ? true : false, 
165				fullscreen : 		(cmsmasters_script.ilightbox_controls_fullscreen == '1') ? true : false, 
166				thumbnail : 		(cmsmasters_script.ilightbox_controls_thumbnail == '1') ? true : false, 
167				keyboard : 			(cmsmasters_script.ilightbox_controls_keyboard == '1') ? true : false, 
168				mousewheel : 		(cmsmasters_script.ilightbox_controls_mousewheel == '1') ? true : false, 
169				swipe : 			(cmsmasters_script.ilightbox_controls_swipe == '1') ? true : false, 
170				slideshow : 		(cmsmasters_script.ilightbox_controls_slideshow == '1') ? true : false 
171			}, 
172			text : { 
173				close : 			cmsmasters_script.ilightbox_close_text, 
174				enterFullscreen : 	cmsmasters_script.ilightbox_enter_fullscreen_text, 
175				exitFullscreen : 	cmsmasters_script.ilightbox_exit_fullscreen_text, 
176				slideShow : 		cmsmasters_script.ilightbox_slideshow_text, 
177				next : 				cmsmasters_script.ilightbox_next_text, 
178				previous : 			cmsmasters_script.ilightbox_previous_text 
179			}, 
180			errors : { 
181				loadImage : 		cmsmasters_script.ilightbox_load_image_error, 
182				loadContents : 		cmsmasters_script.ilightbox_load_contents_error, 
183				missingPlugin : 	cmsmasters_script.ilightbox_missing_plugin_error 
184			} 
185		}, 
186		gallery_array = [], 
187		gallery_id = '';
188		
189		
190		$('[rel="ilightbox"]').each(function () { 
191			$(this).iLightBox(ilightbox_settings);
192		} );
193		
194		
195		$('[rel^="ilightbox["]').each(function () { 
196			if ($(this).closest('.cmsmasters_more_items_loader').length === 0) {
197				var item_rel = $(this).attr('rel');
198				
199				
200				if ($.inArray(item_rel, gallery_array) === -1) {
201					gallery_array.push(item_rel);
202				}
203			}
204		} );
205		
206		
207		$.each(gallery_array, function (gallery_array, gallery_id) { 
208			$('[rel="' + gallery_id + '"]').iLightBox(ilightbox_settings);
209		} );
210	} )(jQuery);
211	
212	
213	
214	/* Shortcodes Animation Run */
215	(function ($) { 
216		if ( 
217			!checker.os.iphone && 
218			!checker.os.ipod && 
219			!checker.os.ipad && 
220			!checker.os.blackberry && 
221			!checker.os.android 
222		) {
223			$('[data-animation]').waypoint(function (dir) { 
224				if (dir === 'down') {
225					var el = 			$(this), 
226						animation = 	el.data('animation'), 
227						delay = 		(el.data('delay')) ? el.data('delay') : 0;
228					
229					
230					setTimeout(function () { 
231						el.addClass(animation + ' animated');
232					}, delay);
233				}
234			}, { 
235				offset : 		'100%' 
236			} ).waypoint(function (dir) { 
237				if (dir === 'up') {
238					var el = 			$(this), 
239						animation = 	el.data('animation'), 
240						delay = 		(el.data('delay')) ? el.data('delay') : 0;
241					
242					
243					setTimeout(function () { 
244						el.addClass(animation + ' animated');
245					}, delay);
246				}
247			}, { 
248				offset : 		'25%' 
249			} );
250		} else {
251			$('[data-animation]').addClass('animated');
252		}
253		
254		
255		if ( 
256			!checker.os.iphone && 
257			!checker.os.ipod && 
258			!checker.os.ipad && 
259			!checker.os.blackberry && 
260			!checker.os.android 
261		) {
262			$('.cmsmasters_icon_box').waypoint(function (dir) { 
263				if (dir === 'down') {
264					var el = 	$(this);
265					
266					
267					el.addClass('shortcode_animated');
268				}
269			}, { 
270				offset : 		'100%' 
271			} ).waypoint(function (dir) { 
272				if (dir === 'up') {
273					var el = 	$(this);
274					
275					
276					el.addClass('shortcode_animated');
277				}
278			}, { 
279				offset : 		'25%' 
280			} );
281		} else {
282			$('.cmsmasters_icon_box').addClass('shortcode_animated');
283		}
284		
285		
286		if ( 
287			!checker.os.iphone && 
288			!checker.os.ipod && 
289			!checker.os.ipad && 
290			!checker.os.blackberry && 
291			!checker.os.android 
292		) {
293			$('.cmsmasters_icon_list_items.cmsmasters_icon_list_type_block').waypoint(function (dir) { 
294				if (dir === 'down') {
295					var el = 		$(this), 
296						items = 	el.find('li'), 
297						delay = 	500, 
298						i = 		1;
299					
300					
301					items.each(function () { 
302						var item = 	$(this);
303						
304						
305						setTimeout(function () { 
306							item.addClass('shortcode_animated');
307						}, delay * i);
308						
309						
310						i += 1;
311					} );
312				}
313			}, { 
314				offset : 		'100%' 
315			} ).waypoint(function (dir) { 
316				if (dir === 'up') {
317					var el = 		$(this), 
318						items = 	el.find('li'), 
319						delay = 	500, 
320						i = 		1;
321					
322					
323					items.each(function () { 
324						var item = 	$(this);
325						
326						
327						setTimeout(function () { 
328							item.addClass('shortcode_animated');
329						}, delay * i);
330						
331						
332						i += 1;
333					} );
334				}
335			}, { 
336				offset : 		'25%' 
337			} );
338		} else {
339			$('.cmsmasters_icon_list_items .cmsmasters_icon_list_item').addClass('shortcode_animated');
340		}
341		
342		
343		if ( 
344			!checker.os.iphone && 
345			!checker.os.ipod && 
346			!checker.os.ipad && 
347			!checker.os.blackberry && 
348			!checker.os.android 
349		) {
350			$('.cmsmasters_hover_slider').waypoint(function (dir) { 
351				if (dir === 'down') {
352					var el = 		$(this), 
353						items = 	el.find('li'), 
354						delay = 	300, 
355						i = 		1;
356					
357					
358					items.each(function () { 
359						var item = 	$(this);
360						
361						
362						setTimeout(function () { 
363							item.addClass('shortcode_animated');
364						}, delay * i);
365						
366						
367						i += 1;
368					} );
369				}
370			}, { 
371				offset : 		'100%' 
372			} ).waypoint(function (dir) { 
373				if (dir === 'up') {
374					var el = 		$(this), 
375						items = 	el.find('li'), 
376						delay = 	300, 
377						i = 		1;
378					
379					
380					items.each(function () { 
381						var item = 	$(this);
382						
383						
384						setTimeout(function () { 
385							item.addClass('shortcode_animated');
386						}, delay * i);
387						
388						
389						i += 1;
390					} );
391				}
392			}, { 
393				offset : 		'25%' 
394			} );
395		} else {
396			$('.cmsmasters_hover_slider ul li').addClass('shortcode_animated');
397		}
398		
399		
400		if ( 
401			!checker.os.iphone && 
402			!checker.os.ipod && 
403			!checker.os.ipad && 
404			!checker.os.blackberry && 
405			!checker.os.android 
406		) {
407			$('.cmsmasters_profile.vertical').waypoint(function (dir) { 
408				if (dir === 'down') {
409					var el = 		$(this), 
410						items = 	el.find('article'), 
411						delay = 	500, 
412						i = 		1;
413					
414					
415					items.each(function () { 
416						var item = 	$(this);
417						
418						
419						setTimeout(function () { 
420							item.addClass('shortcode_animated');
421						}, delay * i);
422						
423						
424						i += 1;
425					} );
426				}
427			}, { 
428				offset : 		'100%' 
429			} ).waypoint(function (dir) { 
430				if (dir === 'up') {
431					var el = 		$(this), 
432						items = 	el.find('article'), 
433						delay = 	500, 
434						i = 		1;
435					
436					
437					items.each(function () { 
438						var item = 	$(this);
439						
440						
441						setTimeout(function () { 
442							item.addClass('shortcode_animated');
443						}, delay * i);
444						
445						
446						i += 1;
447					} );
448				}
449			}, { 
450				offset : 		'25%' 
451			} );
452		} else {
453			$('.cmsmasters_profile.vertical .profile').addClass('shortcode_animated');
454		}
455		
456		
457		if ( 
458			!checker.os.iphone && 
459			!checker.os.ipod && 
460			!checker.os.ipad && 
461			!checker.os.blackberry && 
462			!checker.os.android 
463		) {
464			$('.cmsmasters_clients_grid').waypoint(function (dir) { 
465				if (dir === 'down') {
466					var el = 		$(this), 
467						items = 	el.find('.cmsmasters_clients_item'), 
468						delay = 	300, 
469						i = 		1;
470					
471					
472					items.each(function () { 
473						var item = 	$(this);
474						
475						
476						setTimeout(function () { 
477							item.addClass('shortcode_animated');
478						}, delay * i);
479						
480						
481						i += 1;
482					} );
483				}
484			}, { 
485				offset : 		'100%' 
486			} ).waypoint(function (dir) { 
487				if (dir === 'up') {
488					var el = 		$(this), 
489						items = 	el.find('.cmsmasters_clients_item'), 
490						delay = 	300, 
491						i = 		1;
492					
493					
494					items.each(function () { 
495						var item = 	$(this);
496						
497						
498						setTimeout(function () { 
499							item.addClass('shortcode_animated');
500						}, delay * i);
501						
502						
503						i += 1;
504					} );
505				}
506			}, { 
507				offset : 		'25%' 
508			} );
509		} else {
510			$('.cmsmasters_clients_grid').find('.cmsmasters_clients_item').addClass('shortcode_animated');
511		}
512		
513		
514		if ( 
515			!checker.os.iphone && 
516			!checker.os.ipod && 
517			!checker.os.ipad && 
518			!checker.os.blackberry && 
519			!checker.os.android 
520		) {
521			$('.cmsmasters_gallery, .blog.columns, .blog.timeline').waypoint(function (dir) { 
522				if (dir === 'down') {
523					var el = 			$(this), 
524						items = 		el.find('article.post, .cmsmasters_gallery_item'), 
525						itemsCount = 	items.length, 
526						delay = 		300, 
527						i = 			1;
528					
529					
530					var newTime = setInterval(function () { 
531						if (el.hasClass('isotope')) {
532							clearInterval(newTime);
533						} else {
534							return false;
535						}
536						
537						
538						items.each(function () { 
539							var item = 	$(this);
540							
541							
542							setTimeout(function () { 
543								item.addClass('shortcode_animated');
544							}, delay * i);
545							
546							
547							i += 1;
548							
549							
550							if (i === itemsCount) {
551								setTimeout(function () { 
552									$(window).trigger('resize');
553								}, delay * i);
554							}
555						} );
556					}, 300);
557				}
558			}, { 
559				offset : 		'100%' 
560			} ).waypoint(function (dir) { 
561				if (dir === 'up') {
562					var el = 			$(this), 
563						items = 		el.find('article.post, .cmsmasters_gallery_item'), 
564						itemsCount = 	items.length, 
565						delay = 		300, 
566						i = 			1;
567					
568					
569					var newTime = setInterval(function () { 
570						if (el.hasClass('isotope')) {
571							clearInterval(newTime);
572						} else {
573							return false;
574						}
575						
576						
577						items.each(function () { 
578							var item = 	$(this);
579							
580							
581							setTimeout(function () { 
582								item.addClass('shortcode_animated');
583							}, delay * i);
584							
585							
586							i += 1;
587							
588							
589							if (i === itemsCount) {
590								setTimeout(function () { 
591									$(window).trigger('resize');
592								}, delay * i);
593							}
594						} );
595					}, 300);
596				}
597			}, { 
598				offset : 		'25%' 
599			} );
600		} else {
601			$('.cmsmasters_gallery, .blog.columns, .blog.timeline').find('article.post, .cmsmasters_gallery_item').addClass('shortcode_animated');
602		}
603	} )(jQuery);
604	
605	
606	
607	/* Stats Run */
608	(function ($) { 
609		if ( 
610			!checker.os.iphone && 
611			!checker.os.ipod && 
612			!checker.os.ipad && 
613			!checker.os.blackberry && 
614			!checker.os.android && 
615			!checker.ua.ie9 
616		) {
617			$('.cmsmasters_stats.stats_mode_circles').waypoint(function () { 
618				var i = 1;
619				
620				
621				$(this).find('.cmsmasters_stat').each(function () { 
622					var el = $(this);
623					
624					
625					setTimeout(function () { 
626						el.easyPieChart( { 
627							size : 			172, 
628							lineWidth : 	5, 
629							lineCap : 		'square', 
630							animate : 		1000, 
631							scaleColor : 	false, 
632							trackColor : 	false, 
633							barColor : function () { 
634								return ($(this.el).data('bar-color')) ? $(this.el).data('bar-color') : cmsmasters_script.primary_color;
635							}, 
636							onStep : function (from, to, val) { 
637								$(this.el).find('.cmsmasters_stat_counter').text(~~val);
638							} 
639						} );
640					}, 500 * i);
641					
642					
643					i += 1;
644				} );
645			}, { 
646				offset : 		'100%' 
647			} );
648		} else {
649			$('.cmsmasters_stats.stats_mode_circles').find('.cmsmasters_stat').easyPieChart( { 
650				size : 			172, 
651				lineWidth : 	5, 
652				lineCap : 		'square', 
653				animate : 		1000, 
654				scaleColor : 	false, 
655				trackColor : 	false, 
656				barColor : function () { 
657					return ($(this.el).data('bar-color')) ? $(this.el).data('bar-color') : cmsmasters_script.primary_color;
658				}, 
659				onStep : function (from, to, val) { 
660					$(this.el).find('.cmsmasters_stat_counter').text(~~val);
661				} 
662			} );
663		}
664		
665		
666		if ( 
667			!checker.os.iphone && 
668			!checker.os.ipod && 
669			!checker.os.ipad && 
670			!checker.os.blackberry && 
671			!checker.os.android && 
672			!checker.ua.ie9 
673		) {
674			$('.cmsmasters_counters').waypoint(function () { 
675				var i = 1;
676				
677				
678				$(this).find('.cmsmasters_counter').each(function () { 
679					var el = $(this);
680					
681					
682					setTimeout(function () { 
683						el.easyPieChart( { 
684							size : 			172, 
685							lineWidth : 	0, 
686							lineCap : 		'square', 
687							animate : 		1500, 
688							scaleColor : 	false, 
689							trackColor : 	false, 
690							barColor : 		'#ffffff', 
691							onStep : function (from, to, val) { 
692								$(this.el).find('.cmsmasters_counter_counter').text(~~val);
693							} 
694						} );
695					}, 500 * i);
696					
697					
698					i += 1;
699				} );
700			}, { 
701				offset : 		'100%' 
702			} );
703		} else {
704			$('.cmsmasters_counters').find('.cmsmasters_counter').easyPieChart( { 
705				size : 			172, 
706				lineWidth : 	0, 
707				lineCap : 		'square', 
708				animate : 		1500, 
709				scaleColor : 	false, 
710				trackColor : 	false, 
711				barColor : 		'#ffffff', 
712				onStep : function (from, to, val) { 
713					$(this.el).find('.cmsmasters_counter_counter').text(~~val);
714				} 
715			} );
716		}
717		
718		
719		if ( 
720			!checker.os.iphone && 
721			!checker.os.ipod && 
722			!checker.os.ipad && 
723			!checker.os.blackberry && 
724			!checker.os.android && 
725			!checker.ua.ie9 
726		) {
727			$('.cmsmasters_stats.stats_mode_bars').waypoint(function () { 
728				$(this).addClass('shortcode_animated').find('.cmsmasters_stat').each(function () { 
729					var el = $(this);
730					
731					
732					el.easyPieChart( { 
733						size : 			172, 
734						lineWidth : 	0, 
735						lineCap : 		'square', 
736						animate : 		1500, 
737						scaleColor : 	false, 
738						trackColor : 	false, 
739						barColor : 		'#ffffff', 
740						onStep : function (from, to, val) { 
741							$(this.el).find('.cmsmasters_stat_counter').text(~~val);
742						} 
743					} );
744				} );
745			}, { 
746				offset : 		'100%' 
747			} );
748		} else {
749			$('.cmsmasters_stats.stats_mode_bars').addClass('shortcode_animated').find('.cmsmasters_stat').easyPieChart( { 
750				size : 			172, 
751				lineWidth : 	0, 
752				lineCap : 		'square', 
753				animate : 		1500, 
754				scaleColor : 	false, 
755				trackColor : 	false, 
756				barColor : 		'#ffffff', 
757				onStep : function (from, to, val) { 
758					$(this.el).find('.cmsmasters_stat_counter').text(~~val);
759				} 
760			} );
761		}
762	} )(jQuery);
763	
764	
765	
766	/* Header Search Toggle */
767	(function ($) { 
768		$('.search_wrap .search_button button').on('click', function () { 
769			if ($(window).width() > (768 - 17)) {
770				var searchButton = $(this), 
771					searchWrap = searchButton.closest('.search_wrap'), 
772					searchInput = searchWrap.find('.search_field input');
773				
774				
775				if (searchWrap.hasClass('search_opened')) {
776					searchWrap.removeClass('search_opened');
777					
778					searchButton.removeClass('cmsmasters_theme_icon_cancel');
779					
780					setTimeout(function () {
781						searchButton.addClass('cmsmasters-icon-custom-search').attr('type', 'submit');
782					}, 300);
783				} else {
784					searchWrap.addClass('search_opened');
785					
786					searchButton.removeClass('cmsmasters-icon-custom-search');
787					
788					setTimeout(function () {
789						searchButton.addClass('cmsmasters_theme_icon_cancel').attr('type', 'button');
790					}, 300);
791					
792					searchInput.focus();
793				}
794				
795				
796				return false;
797			}
798		} );
799		
800		$(window).on('debouncedresize', function () { 
801			if ($(window).width() <= (768 - 17)) {
802				var searchButton = $('.search_wrap .search_button button'), 
803					searchWrap = searchButton.closest('.search_wrap'), 
804					searchInput = searchWrap.find('.search_field input');
805				
806				
807				if (searchWrap.hasClass('search_opened')) {
808					searchWrap.removeClass('search_opened');
809					
810					searchButton.removeClass('cmsmasters_theme_icon_cancel');
811					
812					setTimeout(function () {
813						searchButton.addClass('cmsmasters_theme_icon_search').attr('type', 'submit');
814					}, 300);
815				}
816			}
817		} );
818	} )(jQuery);
819	
820	
821	
822	/* Header Top Hide Toggle */
823	(function ($) { 
824		$('.header_top_but').on('click', function () { 
825			var headerTopBut = $(this), 
826				headerTopButArrow = headerTopBut.find('> span'), 
827				headerTopOuter = headerTopBut.parents('.header_top').find('.header_top_outer');
828			
829			if (headerTopBut.hasClass('opened')) {
830				headerTopOuter.slideUp();
831				
832				headerTopButArrow.removeClass('cmsmasters_theme_icon_slide_top').addClass('cmsmasters_theme_icon_slide_bottom');
833				
834				headerTopBut.removeClass('opened').addClass('closed');
835			} else if (headerTopBut.hasClass('closed')) {
836				headerTopOuter.slideDown();
837				
838				headerTopButArrow.removeClass('cmsmasters_theme_icon_slide_bottom').addClass('cmsmasters_theme_icon_slide_top');
839				
840				headerTopBut.removeClass('closed').addClass('opened');
841			}
842		} );
843	} )(jQuery);
844	
845	
846	
847	/* Fixed Header Function Start */
848	(function ($) { 
849		$('#header').cmsmastersFixedHeaderScroll();
850	} )(jQuery);
851	
852	
853	
854	/* Responsive Navigation Function Start */
855	(function ($) { 
856		$('#navigation').cmsmastersResponsiveNav();
857	} )(jQuery);
858	
859	
860	
861	/* Row Parallax Function Start */
862	(function ($) { 
863		$(window).on('load', function () { 
864			if ( 
865				!checker.os.iphone && 
866				!checker.os.ipad && 
867				!checker.os.ipod && 
868				!checker.os.android && 
869				!checker.os.blackberry 
870			) {
871				if (checker.ua.safari) {
872					if (checker.ua.chrome || checker.os.mac) {
873						setTimeout(function () { 
874							$.stellar( { 
875								horizontalScrolling : 	false, 
876								verticalOffset : 		30, 
877								parallaxElements : 		false 
878							} );
879						}, 1500);
880						
881						
882						$(window).on('debouncedresize', function () { 
883							if ($(window).width() < 1024) {
884								$.stellar('destroy');
885							} else {
886								$.stellar( { 
887									horizontalScrolling : 	false, 
888									verticalOffset : 		30, 
889									parallaxElements : 		false 
890								} );
891							}
892						} );
893					}
894				} else {
895					setTimeout(function () { 
896						$.stellar( { 
897							horizontalScrolling : 	false, 
898							verticalOffset : 		30, 
899							parallaxElements : 		false 
900						} );
901					}, 1500);
902					
903					
904					$(window).on('debouncedresize', function () { 
905						if ($(window).width() < 1024) {
906							$.stellar('destroy');
907						} else {
908							$.stellar( { 
909								horizontalScrolling : 	false, 
910								verticalOffset : 		30, 
911								parallaxElements : 		false 
912							} );
913						}
914					} );
915				}
916			} else {
917				$('div.cmsmasters_row').css('background-attachment', 'scroll');
918			}
919		} );
920	} )(jQuery);
921	
922	
923	
924	/* One Page Navigation */
925	(function ($) { 
926		function cmsmasters_get_offset_val() {
927			var cmsmasters_wpAdminBar = $('#wpadminbar').outerHeight(), 
928				cmsmasters_offset_val = (cmsmasters_wpAdminBar !== undefined) ? cmsmasters_wpAdminBar : 0;
929			
930			
931			if ($('#page').hasClass('fixed_header')) {
932				var header_mid_data_height = $('.header_mid').data('height'), 
933					header_mid_height = header_mid_data_height - (header_mid_data_height / 3), 
934					header_bot_data_height = $('.header_bot').data('height'), 
935					header_bot_data_height = (header_bot_data_height !== undefined) ? header_bot_data_height : 0;
936					
937					
938				cmsmasters_offset_val = cmsmasters_offset_val + header_mid_height + header_bot_data_height - 1;
939			}
940			
941			
942			return cmsmasters_offset_val;
943		}
944		
945		
946		var cmsmasters_window_hash = window.location.hash;
947		
948		if ($(cmsmasters_window_hash).length > 0) {
949			setTimeout(function () { 
950				$('html, body').animate( {
951					scrollTop: $(cmsmasters_window_hash).offset().top - cmsmasters_get_offset_val() + 1
952				}, 800);
953			}, 800);
954		}
955		
956		
957		$('body').scrollspy({target: '#navigation'});
958		
959		
960		$('#navigation a').on('click', function(event) {
961			if (this.hash !== "") {
962				event.preventDefault();
963				
964				
965				var hash = this.hash, 
966					linkHref = $(this).attr('href');
967				
968				
969				if ($(hash).length > 0) {
970					$('html, body').animate( {
971						scrollTop: $(hash).offset().top - cmsmasters_get_offset_val() + 1
972					}, 800, function() {
973						if (history.pushState) {
974							history.pushState(null, null, hash);
975						}
976					} );
977				} else if (!$('body').hasClass('cmsmasters_custom_page_menu')) {
978					if ( 
979						linkHref.indexOf(hash) !== -1 && 
980						linkHref.slice(0, linkHref.indexOf(hash)) !== cmsmasters_script.site_url && 
981						linkHref !== hash 
982					) {
983						window.location.href = linkHref;
984					} else {
985						window.location.href = cmsmasters_script.site_url + hash;
986					}
987				}
988			}
989		} );
990	} )(jQuery);
991	
992	
993	
994	/* Notise Close Button */
995	(function ($) { 
996		$('.cmsmasters_notice a.notice_close').on('click', function () { 
997			$(this).parents('.cmsmasters_notice').fadeOut(500, function () { 
998				$(this).remove();
999			} );
1000			
1001			
1002			return false;
1003		} );
1004	} )(jQuery);
1005	
1006	
1007	
1008	/* Toggles */
1009	(function ($) { 
1010		$('.cmsmasters_toggles .cmsmasters_toggle_title a').on('click', function (i) { 
1011			var active_toggle = $(this).parents('.cmsmasters_toggles').find('.cmsmasters_toggle_wrap.current_toggle .cmsmasters_toggle'), 
1012				toggle = $(this).parents('.cmsmasters_toggle_wrap'), 
1013				acc = ($(this).parents('.cmsmasters_toggles').hasClass('toggles_mode_accordion')) ? true : false, 
1014				dropDown = toggle.find('.cmsmasters_toggle');
1015			
1016			
1017			if (toggle.hasClass('current_toggle')) {
1018				dropDown.slideUp('fast', function () { 
1019					toggle.removeClass('current_toggle');
1020				} );
1021			} else {
1022				if (acc) {
1023					active_toggle.slideUp('fast', function () { 
1024						active_toggle.parents('.cmsmasters_toggle_wrap').removeClass('current_toggle');
1025					} );
1026				}
1027				
1028				dropDown.slideDown('fast', function () { 
1029					toggle.addClass('current_toggle');
1030				} );
1031			}
1032			
1033			
1034			i.preventDefault();
1035			
1036			
1037			setTimeout(function () { 
1038				jQuery('body').trigger('debouncedresize');
1039			}, 300);
1040		} );
1041		
1042		
1043		$('.cmsmasters_toggles .cmsmasters_toggles_filter a').on('click', function (i) { 
1044			var filter_wrap = $(this).parents('.cmsmasters_toggles_filter'), 
1045				filter = $(this).data('key'), 
1046				toggle = $(this).parents('.cmsmasters_toggles').find('.cmsmasters_toggle_wrap');
1047			
1048			
1049			if ($(this).is(':not(.current_filter)')) { 
1050				filter_wrap.find('a').removeClass('current_filter');
1051				
1052				
1053				$(this).addClass('current_filter');
1054				
1055				
1056				toggle.filter('[data-tags~="' + filter + '"]').slideDown('fast');
1057				
1058				
1059				toggle.filter(':not([data-tags~="' + filter + '"])').slideUp('fast');
1060				
1061				
1062				toggle.filter(':not([data-tags~="' + filter + '"])').removeClass('current_toggle').find('.cmsmasters_toggle').removeAttr('style');
1063			}
1064			
1065			
1066			i.preventDefault();
1067		} );
1068	} )(jQuery);
1069	
1070	
1071	
1072	/* Tabs */
1073	(function ($) { 
1074		$('.cmsmasters_woo_tabs > .cmsmasters_tabs_list > .cmsmasters_tabs_list_item:first-child').addClass('current_tab');
1075		$('.cmsmasters_woo_tabs > .cmsmasters_tabs_wrap > .cmsmasters_tab:first-child').addClass('active_tab');
1076		
1077		$('.cmsmasters_tabs ul.cmsmasters_tabs_list li a').on('click', function (t) { 
1078			var tabs_parent = $(this).parents('.cmsmasters_tabs'), 
1079				tabs = tabs_parent.find('.cmsmasters_tabs_wrap'), 
1080				index = $(this).parents('li').index();
1081			
1082			
1083			tabs_parent.find('.cmsmasters_tabs_list > .current_tab').removeClass('current_tab');
1084			
1085			
1086			$(this).parents('li').addClass('current_tab');
1087			
1088			
1089			tabs.find('.cmsmasters_tab').not(':eq(' + index + ')').slideUp('fast', function () { 
1090				$(this).removeClass('active_tab');
1091			} );
1092			
1093			
1094			tabs.find('.cmsmasters_tab:eq(' + index + ')').slideDown('fast', function () { 
1095				$(this).addClass('active_tab');
1096			} );
1097			
1098			
1099			t.preventDefault();
1100			
1101			
1102			setTimeout(function () { 
1103				jQuery('body').trigger('debouncedresize');
1104			}, 300);
1105		} );
1106	} )(jQuery);
1107	
1108	
1109	
1110	/* Share Buttons */
1111	(function ($) { 
1112		$('.share_posts a, .share_wrap a:not(.cmsmasters_pinterest_button)').bind('click', function (e) { 
1113			var screenSize = { 
1114					width : 	screen.width, 
1115					height : 	screen.height 
1116				}, 
1117				windowWidth = 650, 
1118				windowHeight = 350, 
1119				windowTop = (screenSize.height / 2) - (windowHeight / 2), 
1120				windowLeft = (screenSize.width / 2) - (windowWidth / 2), 
1121				socialHref = $(this).attr('href'), 
1122				newWindow = 'width = ' + windowWidth + ', height = ' + windowHeight + ', top = ' + windowTop + ', left = ' + windowLeft + ', resizable = no, status = no, titlebar = no, toolbar = no, location = no';
1123			
1124			
1125			e.preventDefault();
1126			
1127			
1128			return window.open(socialHref, '_blank', newWindow);
1129		} );
1130	} )(jQuery);
1131	
1132	
1133	
1134	/* YouTube Iframe Fix */
1135	(function ($) { 
1136		var iframe = $('iframe[src*="youtube.com"]');
1137		
1138		
1139		iframe.each(function () { 
1140			var current = 	$(this), 
1141				src = 		current.attr('src'); 
1142			
1143			
1144			if (src) {
1145				if (src.indexOf('?') !== -1) {
1146					src += "&wmode=opaque";
1147				} else {
1148					src += "?wmode=opaque";
1149				}
1150				
1151				
1152				current.attr('src', src);
1153			}
1154		} );
1155	} )(jQuery);
1156} );
1157
1158
1159
1160/* Like Button */
1161function cmsmasters_like(postID) { 
1162	"use strict";
1163	
1164	if (postID !== '') {
1165		var likeButton = jQuery('#cmsmastersLike-' + postID), 
1166			data = { 
1167				action : 	'cmsmasters_ajax_like', 
1168				id : 		postID, 
1169				nonce : 	cmsmasters_script.nonce_ajax_like 
1170			};
1171		
1172		
1173		likeButton.find('> span').text('...');
1174		
1175		
1176		jQuery.post(cmsmasters_script.ajaxurl, data, function(response) {	
1177			likeButton.find('> span').text(response);
1178			
1179			
1180			likeButton.addClass('active');
1181			
1182			
1183			likeButton.attr( { 
1184				onclick : 	'return false;' 
1185			} );
1186		} );
1187	}
1188	
1189	
1190	return false;
1191}
1192
1193
1194"use strict";
1195
1196/* Correct OS & Browser Check */
1197var ua = navigator.userAgent, 
1198	checker = { 
1199		os : { 
1200			iphone : 		ua.match(/iPhone/), 
1201			ipod : 			ua.match(/iPod/), 
1202			ipad : 			ua.match(/iPad/), 
1203			blackberry : 	ua.match(/BlackBerry/), 
1204			android : 		ua.match(/(Android|Linux armv6l|Linux armv7l)/), 
1205			linux : 		ua.match(/Linux/), 
1206			win : 			ua.match(/Windows/), 
1207			mac : 			ua.match(/Macintosh/) 
1208		}, 
1209		ua : { 
1210			ie : 		ua.match(/MSIE/), 
1211			ie6 : 		ua.match(/MSIE 6.0/), 
1212			ie7 : 		ua.match(/MSIE 7.0/), 
1213			ie8 : 		ua.match(/MSIE 8.0/), 
1214			ie9 : 		ua.match(/MSIE 9.0/), 
1215			ie10 : 		ua.match(/MSIE 10.0/), 
1216			ie11 : 		ua.match(/MSIE 11.0/), 
1217			opera : 	ua.match(/Opera/), 
1218			firefox : 	ua.match(/Firefox/), 
1219			chrome : 	ua.match(/Chrome/), 
1220			safari : 	ua.match(/(Safari|BlackBerry)/) 
1221		} 
1222	};
1223
1224
1225
1226/* Correct Image Load Check */
1227function isImageOk(img) { 
1228	"use strict";
1229	
1230	if (!img.complete) { 
1231		return false;
1232	}
1233	
1234	
1235	if (typeof img.naturalWidth !== undefined && img.naturalWidth === 0) { 
1236		return 'stop';
1237	}
1238	
1239	
1240	return true;
1241}
1242
1243
1244
1245/* Check Whether the Numbers are Approximately Equal */
1246function checkN(a, b, x) { 
1247	"use strict";
1248	
1249    if ((a > b && a - x <= b) || (b > a && b - x <= a)){
1250        return true;
1251    } else {
1252        return false;
1253    }
1254}
1255
1256
1257
1258/* Run Pinterest Widget */
1259if (jQuery('.cmsmasters_pinterest_button').length > 0) {
1260	(function() {
1261		window.PinIt = window.PinIt || { loaded:false };
1262		
1263		if (window.PinIt.loaded) {
1264			return;
1265		}
1266		
1267		window.PinIt.loaded = true;
1268		
1269		function async_load(){
1270			var s = document.createElement("script");
1271				s.type = "text/javascript";
1272				s.async = true;
1273				s.src = "//assets.pinterest.com/js/pinit.js";
1274				
1275			var x = document.getElementsByTagName("script")[0];
1276			
1277			
1278			x.parentNode.insertBefore(s, x);
1279		}
1280		
1281		if (window.attachEvent) {
1282			window.attachEvent("onload", async_load);
1283		} else {
1284			window.addEventListener("load", async_load, false);
1285		}
1286	})();
1287}
1288
1289
1290
1291/* Uniq ID */
1292function uniqID() { 
1293	"use strict";
1294	
1295	return Math.round(new Date().getTime() + (Math.random() * 1000000));
1296}
1297
1298
1299
1300/* Touch events on Ipad. iphone etc */
1301jQuery('body').bind('touchstart', function() {});

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.