PageSourceSearch

https://castingt.com/resources/assets/front/js/script.js

js castingt.com collected 2026-10-02 16:32:05 UTC 23,015 bytes, 970 lines download raw bytes

1(function($) {
2	
3	"use strict";
4	
5	//Hide Loading Box (Preloader)
6	function handlePreloader() {
7		if($('.preloader').length){
8			$('.preloader').delay(200).fadeOut(500);
9		}
10	}
11	
12	//Update Header Style and Scroll to Top
13	function headerStyle() {
14		if($('.main-header').length){
15			var windowpos = $(window).scrollTop();
16			var siteHeader = $('.main-header');
17			var scrollLink = $('.scroll-to-top');
18			var sticky_header = $('.main-header');
19			if (windowpos > 1) {
20				siteHeader.addClass('fixed-header animated slideInDown');
21				scrollLink.fadeIn(300);
22			} else{
23				siteHeader.removeClass('fixed-header animated slideInDown');
24				scrollLink.fadeOut(300);
25			}
26		}
27	}
28	headerStyle();
29
30
31	//sticky-header Hide Show
32	if($('.sticky-header').length){
33		var stickyMenuContent = $('.main-header .main-box .nav-outer').html();
34		$('.sticky-header .main-box').append(stickyMenuContent);
35		//Sidebar Cart
36		$('.main-header .cart-btn, .mobile-header .cart-btn').on('click', function() {
37			$('body').addClass('sidebar-cart-active');
38		});
39
40		//Menu Toggle Btn
41		$('.main-header .cart-back-drop, .main-header .close-cart').on('click', function() {
42			$('body').removeClass('sidebar-cart-active');
43		});
44	}
45
46
47	//Jquery Knob animation  // Pie Chart Animation
48	if($('.dial').length){
49          var elm = $('.dial');
50          var color = elm.attr('data-fgColor');  
51          var perc = elm.attr('value');  
52          elm.knob({ 
53               'value': 0, 
54                'min':0,
55                'max':100,
56                'skin':'tron',
57                'readOnly':true,
58                'thickness':0.45,
59				'dynamicDraw': true,
60				'displayInput':false
61          });
62
63          $({value: 0}).animate({ value: perc }, {
64			  duration: 2000,
65              easing: 'swing',
66              progress: function () { elm.val(Math.ceil(this.value)).trigger('change');
67              }
68          });
69
70
71          var $t = $('.pie-graph .count-box'),
72				n = $t.find(".count-text").attr("data-stop"),
73				r = parseInt($t.find(".count-text").attr("data-speed"), 10);
74				
75			if (!$t.hasClass("counted")) {
76				$t.addClass("counted");
77				$({
78					countNum: $t.find(".count-text").text()
79				}).animate({
80					countNum: n
81				}, {
82					duration: r,
83					easing: "linear",
84					step: function() {
85						$t.find(".count-text").text(Math.floor(this.countNum));
86					},
87					complete: function() {
88						$t.find(".count-text").text(this.countNum);
89					}
90				});
91			}
92    }
93
94
95
96	// Mobile Navigation
97	/*if($('#nav-mobile').length){
98		jQuery(function ($) {
99		  var $navbar = $('#navbar');
100		  var $mobileNav = $('#nav-mobile');
101		  
102		  $navbar
103		    .clone()
104		    .removeClass('navbar')
105		    .appendTo($mobileNav);
106		  
107		  $mobileNav.mmenu({
108		  	"counters": false,
109		  	extensions 	: [ "position-bottom", "fullscreen", "theme-black", ],
110		    offCanvas: {
111		      position: 'left',
112		      zposition: 'front',
113		    }
114		  });
115		});
116	}*/
117
118	//Banner Carousel 
119	if ($('.banner-carousel').length) {
120		$('.banner-carousel').owlCarousel({
121			animateOut: 'fadeOut',
122		    animateIn: 'fadeIn',
123			loop:true,
124			margin:0,
125			items:1,
126			nav:true,
127			dots:false,
128			smartSpeed: 500,
129			autoplay: true,
130			autoplayTimeout:5000,
131			touchDrag:false,
132			mouseDrag:false,
133			navText: [ '<span class="fa fa-arrow-left"></span>', '<span class="fa fa-arrow-right"></span>' ],
134		});    		
135	}
136
137
138	//testimonial Carousel
139	if ($('.testimonial-carousel').length) {
140		$('.testimonial-carousel').owlCarousel({
141			loop:true,
142			margin:15,
143			items:1,
144			nav:false,
145			smartSpeed: 500,
146			autoplay: true,
147			autoplayTimeout:10000,
148			navText: [ '<span class="flaticon-back"></span>', '<span class="flaticon-next"></span>' ],
149		});    		
150	}
151
152	//testimonial Carousel Two
153	if ($('.testimonial-carousel-two').length) {
154		$('.testimonial-carousel-two').owlCarousel({
155			animateOut: 'fadeOut',
156		    animateIn: 'fadeIn',
157			loop:true,
158			margin:15,
159			items:1,
160			nav:true,
161			dots:false,
162			smartSpeed: 500,
163			autoplay: true,
164			autoplayTimeout:10000,
165			navText: [ '<span class="flaticon-back"></span>', '<span class="flaticon-next"></span>' ],
166		});    		
167	}
168
169	//testimonial Carousel
170	if ($('.testimonial-carousel-three').length) {
171		$('.testimonial-carousel-three').owlCarousel({
172			loop:true,
173			margin:10,
174			items:2,
175			nav:false,
176			smartSpeed: 500,
177			autoplay: true,
178			autoplayTimeout:10000,
179			navText: [ '<span class="flaticon-back"></span>', '<span class="flaticon-next"></span>' ],
180			responsive:{
181				0:{
182					items:1
183				},
184				600:{
185					items:1
186				},
187				768:{
188					items:2
189				}
190			}
191		});  
192	}
193
194	//sponsors Carousel
195	if ($('.sponsors-carousel').length) {
196		$('.sponsors-carousel').owlCarousel({
197			loop:true,
198			nav:false,
199			smartSpeed: 500,
200			autoplay: true,
201			autoplayTimeout:10000,
202			navText: [ '<span class="flaticon-back"></span>', '<span class="flaticon-next"></span>' ],
203			responsive:{
204				0:{
205					items:1
206				},
207				480:{
208					items:2
209				},
210				600:{
211					items:3
212				},
213				768:{
214					items:4
215				},
216				1024:{
217					items:5
218				},
219				1400:{
220					items:6
221				},
222				1800:{
223					items:7
224				}
225			}
226		});    		
227	}
228
229	//sponsors Carousel
230	if ($('.sponsors-carousel-two').length) {
231		$('.sponsors-carousel-two').owlCarousel({
232			loop:true,
233			nav:false,
234			smartSpeed: 500,
235			margin:60,
236			autoplay: true,
237			autoWidth:true,
238			navText: [ '<span class="flaticon-back"></span>', '<span class="flaticon-next"></span>' ],
239			responsive:{
240				0:{
241					items:1
242				},
243				480:{
244					items:2
245				},
246				600:{
247					items:3
248				},
249				768:{
250					items:4
251				},
252				1024:{
253					items:5
254				},
255				1400:{
256					items:6
257				}
258			}
259		});    		
260	}
261
262	//Candidates Carousel
263	if ($('.candidates-carousel').length) {
264		$('.candidates-carousel').owlCarousel({
265			loop:true,
266			nav:false,
267			smartSpeed: 500,
268			autoplay: true,
269			autoplayTimeout:10000,
270			navText: [ '<span class="flaticon-back"></span>', '<span class="flaticon-next"></span>' ],
271			responsive:{
272				0:{
273					items:1
274				},
275				600:{
276					items:2
277				},
278				768:{
279					items:3
280				},
281				1024:{
282					items:4
283				}
284			}
285		});    		
286	}
287
288	//Companies Carousel
289	if ($('.companies-carousel').length) {
290		$('.companies-carousel').owlCarousel({
291			loop:true,
292			nav:false,
293			smartSpeed: 500,
294			autoplay: true,
295			autoplayTimeout:10000,
296			navText: [ '<span class="flaticon-back"></span>', '<span class="flaticon-next"></span>' ],
297			responsive:{
298				0:{
299					items:1
300				},
301				600:{
302					items:2
303				},
304				768:{
305					items:3
306				},
307				1024:{
308					items:4
309				}
310			}
311		});    		
312	}
313
314	//Companies Carousel
315	if ($('.companies-carousel-two').length) {
316		$('.companies-carousel-two').owlCarousel({
317			loop:true,
318			nav:false,
319			smartSpeed: 500,
320			autoplay: true,
321			margin: 0,
322			autoplayTimeout:10000,
323			navText: [ '<span class="flaticon-back"></span>', '<span class="flaticon-next"></span>' ],
324			responsive:{
325				0:{
326					items:1
327				},
328				600:{
329					items:2
330				},
331				768:{
332					items:3
333				},
334				1024:{
335					items:4
336				},
337				1280:{
338					items:5
339				}
340
341			}
342		});    		
343	}
344
345	//Job Carousel
346	if ($('.job-carousel').length) {
347		$('.job-carousel').owlCarousel({
348			loop:true,
349			nav:false,
350			margin:30,
351			smartSpeed: 500,
352			autoplay: true,
353			autoplayTimeout:10000,
354			navText: [ '<span class="flaticon-back"></span>', '<span class="flaticon-next"></span>' ],
355			responsive:{
356				0:{
357					items:1
358				},
359				600:{
360					items:1
361				},
362				768:{
363					items:2
364				},
365				1024:{
366					items:3
367				}
368			}
369		});    		
370	}
371
372	//Single Item Carousel
373	if ($('.single-item-carousel').length) {
374		$('.single-item-carousel').owlCarousel({
375			animateOut: 'fadeOut',
376		    animateIn: 'fadeIn',
377			loop:true,
378			margin:0,
379			nav:true,
380			smartSpeed: 500,
381			autoHeight: true,
382			autoplay: true,
383			autoplayTimeout:10000,
384			touchDrag:false,
385			navText: [ '<span class="flaticon-back"></span>', '<span class="flaticon-next"></span>' ],
386		});    		
387	}
388
389	//Three Items Carousel
390	if ($('.three-items-carousel').length) {
391		$('.three-items-carousel').owlCarousel({
392			loop:true,
393			margin:22,
394			nav:true,
395			smartSpeed: 400,
396			autoplay: true,
397			navText: [ '<span class="flaticon-back"></span>', '<span class="flaticon-next"></span>' ],
398			responsive:{
399				0:{
400					items:1
401				},
402				600:{
403					items:1
404				},
405				768:{
406					items:2
407				},
408				1366:{
409					items:3
410				}
411			}
412		});    		
413	}
414
415	//Four Items Carousel
416	if ($('.four-items-carousel').length) {
417		$('.four-items-carousel').owlCarousel({
418			loop:true,
419			margin:22,
420			nav:true,
421			smartSpeed: 400,
422			autoplay: true,
423			navText: [ '<span class="flaticon-back"></span>', '<span class="flaticon-next"></span>' ],
424			responsive:{
425				0:{
426					items:1
427				},
428				600:{
429					items:1
430				},
431				768:{
432					items:2
433				},
434				1366:{
435					items:3
436				},
437				1600:{
438					items:4
439				}
440			}
441		});
442	}
443
444	//Clients Carousel
445	if ($('.clients-carousel').length) {
446		$('.clients-carousel').owlCarousel({
447			loop:true,
448			margin:30,
449			nav:true,
450			smartSpeed: 400,
451			autoplay: true,
452			navText: [ '<span class="flaticon-back"></span>', '<span class="flaticon-next"></span>' ],
453			responsive:{
454				0:{
455					items:1
456				},
457				480:{
458					items:2
459				},
460				600:{
461					items:3
462				},
463				768:{
464					items:4
465				},
466				1280:{
467					items:5
468				}
469			}
470		});
471	}
472
473	// Product Carousel Slider
474	if ($('.gallery-widget .image-carousel').length && $('.gallery-widget .thumbs-carousel').length) {
475
476		var $sync1 = $(".gallery-widget .image-carousel"),
477			$sync2 = $(".gallery-widget .thumbs-carousel"),
478			flag = false,
479			duration = 500;
480
481			$sync1
482				.owlCarousel({
483					loop:false,
484					items: 1,
485					margin: 0,
486					nav: true,
487					navText: [ '<span class="icon flaticon-back"></span>', '<span class="icon flaticon-next"></span>' ],
488					dots: false,
489					autoplay: true,
490					autoplayTimeout: 5000
491				})
492				.on('changed.owl.carousel', function (e) {
493					if (!flag) {
494						flag = false;
495						$sync2.trigger('to.owl.carousel', [e.item.index, duration, true]);
496						flag = false;
497					}
498				});
499
500			$sync2
501				.owlCarousel({
502					loop:false,
503					margin: 30,
504					items: 1,
505					nav: false,
506					navText: [ '<span class="icon flaticon-back"></span>', '<span class="icon flaticon-next"></span>' ],
507					dots: false,
508					center: false,
509					autoplay: true,
510					autoplayTimeout: 5000,
511					responsive: {
512						0:{
513				            items:2,
514				            autoWidth: false
515				        },
516				        400:{
517				            items:2,
518				            autoWidth: false
519				        },
520				        600:{
521				            items:3,
522				            autoWidth: false
523				        },
524				        800:{
525				            items:5,
526				            autoWidth: false
527				        },
528				        1024:{
529				            items:4,
530				            autoWidth: false
531				        }
532				    },
533				})
534				
535		.on('click', '.owl-item', function () {
536			$sync1.trigger('to.owl.carousel', [$(this).index(), duration, true]);
537		})
538		.on('changed.owl.carousel', function (e) {
539			if (!flag) {
540				flag = true;		
541				$sync1.trigger('to.owl.carousel', [e.item.index, duration, true]);
542				flag = false;
543			}
544		});
545	}
546
547
548	//Add One Page nav
549	if($('.scroll-nav').length) {
550		$('.scroll-nav ul.navigation').onePageNav();
551	}
552
553	// Rating Review
554	function ratingOverview(ratingElem) {
555        $(ratingElem).each(function() {
556            var dataRating = $(this).attr('data-rating');
557            if (dataRating >= 4.0) {
558                $(this).addClass('high');
559                $(this).find('.rating-bars-rating-inner').css({
560                    width: (dataRating / 5) * 100 + "%",
561                });
562            } else if (dataRating >= 3.0) {
563                $(this).addClass('mid');
564                $(this).find('.rating-bars-rating-inner').css({
565                    width: (dataRating / 5) * 80 + "%",
566                });
567            } else if (dataRating < 3.0) {
568                $(this).addClass('low');
569                $(this).find('.rating-bars-rating-inner').css({
570                    width: (dataRating / 5) * 60 + "%",
571                });
572            }
573        });
574    }
575
576	// Rating Bars
577	$('.rating-bars').appear(function(){
578    	ratingOverview('.rating-bars-rating');
579	});
580
581	// Leave Rating
582	$('.leave-rating input').change(function() {
583        var $radio = $(this);
584        $('.leave-rating .selected').removeClass('selected');
585        $radio.closest('label').addClass('selected');
586    });
587
588	// Input Upload 
589    var uploadButton = {
590        $button: $('.uploadButton-input'),
591        $nameField: $('.uploadButton-file-name')
592    };
593    uploadButton.$button.on('change', function() {
594        _populateFileField($(this));
595    });
596
597    function _populateFileField($button) {
598        var selectedFile = [];
599        for (var i = 0; i < $button.get(0).files.length; ++i) {
600            selectedFile.push($button.get(0).files[i].name + '<br>');
601        }
602        uploadButton.$nameField.html(selectedFile);
603    }
604
605	//Header Search
606	if($('.mobile-search-btn').length) {
607		$('.mobile-search-btn').on('click', function() {
608			$('.main-header').addClass('moblie-search-active');
609		});
610		$('.close-search, .search-back-drop').on('click', function() {
611			$('.main-header').removeClass('moblie-search-active');
612		});
613	}
614
615	/*=== Header Search Active ===*/
616	$(".header-search-form input").focus(function(){
617	  $(this).parent().addClass("active");
618	  $('body').addClass('search-active')
619	});
620	$(".header-search-form input").focusout(function(){
621	  $(this).parent().removeClass("active");
622	  $('.search-list').slideUp();
623	  $('body').removeClass('search-active')
624	});
625
626
627	/*=== User Sidebar / On mobile view ===*/
628	if($('#toggle-user-sidebar').length) {
629		$('#toggle-user-sidebar, .dashboard-option a').on("click", function() {
630		  $('body').toggleClass('user-sidebar-active');
631		});
632
633		$('.sidebar-backdrop').on("click", function() {
634		  $('body').removeClass('user-sidebar-active');
635		});
636	}
637
638	//Toggle More Options
639	if ($('#more-options').length) {
640	    $('#more-options').on('click', function(){
641	    	$(this).parent().toggleClass('active');
642	    });
643	}
644
645	//Toggle filters
646	if ($('.toggle-filters').length) {
647	    $('.toggle-filters').on('click', function(){
648	    	$('body').toggleClass('active-filters');
649	    });
650	    $('.close-filters, .filters-backdrop').on('click', function(){
651	    	$('body').removeClass('active-filters');
652	    });
653	    $('.hide-filters .toggle-filters').on('click', function(){
654	    	$(this).html($(this).html() == '<span class="icon flaticon-plus-symbol"></span>Hide Filters' ? '<span class="icon flaticon-controls"></span>Show Filters' : '<span class="icon flaticon-plus-symbol"></span>Hide Filters');
655	    });
656	    $('.close-filters').on('click', function(){
657	    	$('.hide-filters .toggle-filters').html($(this).html() == '<span class="icon flaticon-controls"></span>Hide Filters' ? '<span class="icon flaticon-plus-symbol"></span>Hide Filters' : '<span class="icon flaticon-controls"></span>Show Filters');
658	    });
659	}
660
661	//Remove Filters On Mobile
662	function removeFiltersOnMobile(){
663		if ($(window).width() <= 1023) {
664	    	$('body').removeClass('active-filters');
665	    	$('.hide-filters .toggle-filters').html($(this).html() == '<span class="icon flaticon-controls"></span>Hide Filters' ? '<span class="icon flaticon-plus-symbol"></span>Hide Filters' : '<span class="icon flaticon-controls"></span>Show Filters');
666	    }
667	}
668	removeFiltersOnMobile();
669
670
671	//Custom Seclect Box
672	if($('.custom-select-box').length){
673		$('.custom-select-box').selectmenu().selectmenu('menuWidget').addClass('overflow');
674	}
675
676	//Chosen Seclect Box
677	if($('.chosen-select').length){
678		$(".chosen-select").chosen({
679			disable_search_threshold: 10,
680			width:'100%',
681		});
682	}
683
684	//Chosen Search Select
685	if($('.chosen-search-select').length){
686		$(".chosen-search-select").chosen({
687			width:'100%',
688		});
689	}
690
691	// Custom Select Box
692	if ($('.sortby-select').length) {
693    	$('.sortby-select').select2();
694	}
695
696	// Tooltip
697	$(function () {
698	  $('[data-toggle="tooltip"]').tooltip()
699	})
700
701	// Open modal in AJAX callback
702	$('.call-modal').on('click', function(event) {
703	  event.preventDefault();
704	  this.blur();
705	  $.get(this.href, function(html) {
706	    $(html).appendTo('body').modal({
707	    	closeExisting: true,
708			fadeDuration: 300,
709			fadeDelay: 0.15
710	    });
711	  });
712	});
713
714
715	//Message Box
716	if($('.message-box').length){
717		$('.message-box .close-btn').on('click', function(e) {
718			$(this).parent('.message-box').fadeOut();
719		});
720	}
721
722	//Chat Contacts
723	if($('.toggle-contact').length){
724		$('.toggle-contact').on('click', function(e) {
725			$('body').toggleClass('active-chat-contacts');
726		});
727		$('.contacts li').on('click', function(e) {
728			$(this).addClass('active');
729			$(this).siblings('li').removeClass('active');
730			$('body').removeClass('active-chat-contacts');
731		});
732	}
733
734	//Accordion Box
735	if($('.accordion-box').length){
736		$(".accordion-box").on('click', '.acc-btn', function() {
737			
738			var outerBox = $(this).parents('.accordion-box');
739			var target = $(this).parents('.accordion');
740			
741			if($(this).hasClass('active')!==true){
742				$(outerBox).find('.accordion .acc-btn').removeClass('active ');
743			}
744			
745			if ($(this).next('.acc-content').is(':visible')){
746				return false;
747			}else{
748				$(this).addClass('active');
749				$(outerBox).children('.accordion').removeClass('active-block');
750				$(outerBox).find('.accordion').children('.acc-content').slideUp(300);
751				target.addClass('active-block');
752				$(this).next('.acc-content').slideDown(300);	
753			}
754		});	
755	}
756
757	//Fact Counter + Text Count
758	if($('.count-box').length){
759		$('.count-box').appear(function(){
760	
761			var $t = $(this),
762				n = $t.find(".count-text").attr("data-stop"),
763				r = parseInt($t.find(".count-text").attr("data-speed"), 10);
764				
765			if (!$t.hasClass("counted")) {
766				$t.addClass("counted");
767				$({
768					countNum: $t.find(".count-text").text()
769				}).animate({
770					countNum: n
771				}, {
772					duration: r,
773					easing: "linear",
774					step: function() {
775						$t.find(".count-text").text(Math.floor(this.countNum));
776					},
777					complete: function() {
778						$t.find(".count-text").text(this.countNum);
779					}
780				});
781			}
782			
783		},{accY: 0});
784	}
785
786	//Progress Bar
787	if($('.progress-line').length){
788		$('.progress-line').appear(function(){
789			var el = $(this);
790			var percent = el.data('width');
791			$(el).css('width',percent+'%');
792		},{accY: 0});
793	}
794
795	//Tabs Box
796	if($('.tabs-box').length){
797		$('.tabs-box .tab-buttons .tab-btn').on('click', function(e) {
798			e.preventDefault();
799			var target = $($(this).attr('data-tab'));
800			
801			if ($(target).is(':visible')){
802				return false;
803			}else{
804				target.parents('.tabs-box').find('.tab-buttons').find('.tab-btn').removeClass('active-btn');
805				$(this).addClass('active-btn');
806				target.parents('.tabs-box').find('.tabs-content').find('.tab').fadeOut(0);
807				target.parents('.tabs-box').find('.tabs-content').find('.tab').removeClass('active-tab animated fadeIn');
808				$(target).fadeIn(300);
809				$(target).addClass('active-tab animated fadeIn');
810			}
811		});
812	}
813
814	
815	//Area Range Slider
816	if($('.area-range-slider').length){
817		$( ".area-range-slider" ).slider({
818			range: true,
819			min: 0,
820			max: 100,
821			values: [ 0, 50 ],
822			slide: function( event, ui ) {
823			$( ".area-amount" ).text( ui.values[ 1 ] );
824			}
825		});
826		
827		$( ".area-amount" ).text( $( ".area-range-slider" ).slider( "values", 1 ));	
828	}
829
830
831
832
833	
834
835	//LightBox / Fancybox
836	if($('.lightbox-image').length) {
837		$('.lightbox-image').fancybox({
838			openEffect  : 'fade',
839			closeEffect : 'fade',
840			helpers : {
841				media : {}
842			}
843		});
844	}
845	
846	//Contact Form Validation
847	if($('#email-form').length){
848		$('#submit').click(function(){
849			
850            var o = new Object();
851            var form = '#email-form';
852			
853			var username = $('#email-form .username').val();
854			var email = $('#email-form .email').val();
855			var subject = $('#email-form .subject').val();
856			
857			if(username == '' || email == '' || subject == '')
858			{
859				$('#email-form .response').html('<div class="failed">Please fill the required fields.</div>');
860				return false;
861			}
862            
863            $.ajax({
864                url:"sendemail.php",
865                method:"POST",
866                data: $(form).serialize(),
867                beforeSend:function(){
868                    $('#email-form .response').html('<div class="text-info"><img src="images/icons/preloader.gif"> Loading...</div>');
869                },
870                success:function(data){
871                    $('form').trigger("reset");
872                    $('#email-form .response').fadeIn().html(data);
873                    setTimeout(function(){
874                        $('#email-form .response').fadeOut("slow");
875                    }, 5000);
876                },
877                error:function(){
878                    $('#email-form .response').fadeIn().html(data);
879                }
880            });
881        });
882	}
883
884	// Scroll to a Specific Div
885	if($('.scroll-to-target').length){
886		$(".scroll-to-target").on('click', function() {
887			var target = $(this).attr('data-target');
888		   // animate
889		   $('html, body').animate({
890			   scrollTop: $(target).offset().top
891			 }, 1500);
892	
893		});
894	}
895
896	// Scroll to a Specific Div
897	if($('.listing-nav li').length){
898		$(".listing-nav li").on('click', function() {
899			var target = $(this).attr('data-target');
900			$(this).addClass('active').siblings('li').removeClass('active');
901			$(target).appear(function(){
902				$(this).addClass('active')
903			});
904		   // animate
905		   $('html, body').animate({
906			   scrollTop: $(target).offset().top + (-90)
907			 }, 1000);
908		});
909	}
910
911	//Make Content Sticky
912	if ($('.sticky-sidebar').length) {
913	    $('.sidebar-side').theiaStickySidebar({
914	      // Settings
915	      additionalMarginTop: 90,
916	    });
917	}
918
919	
920	// Elements Animation
921	if($('.wow').length){
922		var wow = new WOW(
923		  {
924			boxClass:     'wow',      // animated element css class (default is wow)
925			animateClass: 'animated', // animation css class (default is animated)
926			offset:       0,          // distance to the element when triggering the animation (default is 0)
927			mobile:       false,       // trigger animations on mobile devices (default is true)
928			live:         true       // act on asynchronously loaded content (default is true)
929		  }
930		);
931		wow.init();
932	}
933
934	// Home Banners Animations / Mouse Move Animation
935	/*if($('.anm').length){
936		anm.on();
937	}*/
938
939	// Chosen touch support.
940    if ($('.chosen-container').length > 0) {
941      $('.chosen-container').on('touchstart', function(e){
942        e.stopPropagation(); 
943        e.preventDefault();
944        // Trigger the mousedown event.
945        $(this).trigger('mousedown');
946      });
947    }
948
949
950
951/* ==========================================================================
952   When document is Scrollig, do
953   ========================================================================== */
954	
955	$(window).on('scroll', function() {
956		headerStyle();
957	});
958
959/* ==========================================================================
960   When document is loading, do
961   ========================================================================== */
962	
963	$(window).on('load', function() {
964		handlePreloader();
965	});	
966
967})(window.jQuery);
968
969
970

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.