ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 18.119.19.99 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/nicnUpgrade/incles/js/ |
Upload File : |
(function($) { "use strict"; //Hide Loading Box (Preloader) function handlePreloader() { if($('.preloader').length){ $('.preloader').delay(200).fadeOut(500); } } //Update Header Style and Scroll to Top function headerStyle() { if($('.main-header').length){ var windowpos = $(window).scrollTop(); var siteHeader = $('.main-header'); var sticky_header = $('.fixed-header .sticky-header'); var scrollLink = $('.scroll-to-top'); if (windowpos > 200) { siteHeader.addClass('fixed-header'); sticky_header.addClass("animated slideInDown"); scrollLink.fadeIn(300); } else { siteHeader.removeClass('fixed-header'); sticky_header.removeClass("animated slideInDown"); scrollLink.fadeOut(300); } } } headerStyle(); //Submenu Dropdown Toggle if($('.navigation li.dropdown ul').length){ $('.navigation li.dropdown').append('<div class="dropdown-btn"><span class="fa fa-angle-down"></span></div>'); //Dropdown Button $('.navigation li.dropdown .dropdown-btn').on('click', function() { $(this).prev('ul').slideToggle(500); }); //Disable dropdown parent link $('.navigation li.dropdown > a').on('click', function(e) { e.preventDefault(); }); } //Side Content Toggle if($('.main-header .outer-box .nav-btn').length){ //Show Form $('.main-header .outer-box .nav-btn').on('click', function(e) { e.preventDefault(); $('body').addClass('side-content-visible'); }); //Hide Form $('.appointment-box .inner-box .cross-icon,.form-back-drop,.close-menu').on('click', function(e) { e.preventDefault(); $('body').removeClass('side-content-visible'); }); //Dropdown Menu / Fullscreen Nav $('.fullscreen-menu .navigation li.dropdown > a').on('click', function() { $(this).next('ul').slideToggle(500); }); } //Sidenav Two Toggle if($('.sidenav-bar').length){ //Dropdown Button $('.sidenav-bar .navigation li.dropdown > a').on('click', function(e) { e.preventDefault(); var ParentBox = $(this).parent('li'); if($(ParentBox).hasClass('active')===true){ $(ParentBox).removeClass('active'); }else{ $('.sidenav-bar .navigation li.dropdown').removeClass('active'); $(this).parent('li').addClass('active'); } }); //Show Sidebar Button $('.sidenav-bar .toggle-btn, .header-style-six .btn-box .nav-btn').on('click', function(e) { e.preventDefault(); $('body').toggleClass('active-side-nav'); }); //Dropdown Button $('.sidenav-bar .toggle-btn').on('click', function(e) { e.preventDefault(); $('body').removeClass('active-side-nav'); }); } //Hidden Sidebar if ($('.hidden-bar').length) { var hiddenBarOpener = $('.nav-toggler'); var hiddenBarCloser = $('.hidden-bar-closer'); $('.hidden-bar-wrapper').mCustomScrollbar(); //Show Sidebar hiddenBarOpener.on('click', function () { $('body').toggleClass('visible-sidebar'); }); //Hide Sidebar hiddenBarCloser.on('click', function () { $('body').removeClass('visible-sidebar'); }); //Open Submenu $('.hidden-bar .navigation li.dropdown > a').on('click', function(e) { e.preventDefault(); $(this).next('ul').slideToggle(500); }); } //Single Item Carousel if ($('.single-item-carousel').length) { $('.single-item-carousel').owlCarousel({ loop:true, margin:0, nav:true, smartSpeed: 700, autoplay: true, navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>' ], responsive:{ 0:{ items:1 }, 600:{ items:1 }, 1024:{ items:1 } } }); } //Events Carousel if ($('.event-carousel').length) { $('.event-carousel').owlCarousel({ loop:true, margin:20, nav:true, smartSpeed: 700, autoplay: true, navText: [ '<span class="arrow-left"></span>', '<span class="arrow-right"></span>' ], responsive:{ 0:{ items:1 }, 600:{ items:2 }, 1024:{ items:3 } } }); } //Causes Carousel if ($('.causes-carousel').length) { $('.causes-carousel').owlCarousel({ loop:true, margin:20, nav:true, smartSpeed: 700, autoplay: true, navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>' ], responsive:{ 0:{ items:1 }, 600:{ items:1 }, 778:{ items:2 }, 800:{ items:2 }, 1024:{ items:3 } } }); } //Causes Carousel Two if ($('.causes-carousel-two').length) { $('.causes-carousel-two').owlCarousel({ loop:true, margin:30, nav:true, smartSpeed: 700, autoplay: true, navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>' ], responsive:{ 0:{ items:1 }, 600:{ items:1 }, 1024:{ items:1 } } }); } //Testimonial Carousel if ($('.testimonial-carousel').length) { $('.testimonial-carousel').owlCarousel({ loop:true, margin:20, nav:true, smartSpeed: 700, autoplay: true, navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>' ], responsive:{ 0:{ items:1 }, 600:{ items:1 }, 1024:{ items:1 } } }); } //Testimonial Carousel Two if ($('.testimonial-carousel-two').length) { $('.testimonial-carousel-two').owlCarousel({ loop:true, margin:70, nav:true, smartSpeed: 700, autoplay: true, navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>' ], responsive:{ 0:{ items:1, margin:30 }, 600:{ items:1, margin:30 }, 800:{ items:2, margin:30 }, 1024:{ items:2, margin:30 }, 1200:{ items:2, margin:30 }, 1300:{ items:3 } } }); } //Testimonial Carousel three if ($('.testimonial-carousel-three').length) { $('.testimonial-carousel-three').owlCarousel({ loop:true, margin:30, nav:true, smartSpeed: 700, autoplay: true, navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>' ], responsive:{ 0:{ items:1 }, 600:{ items:1 }, 768:{ items:2 }, 800:{ items:3 }, 1200:{ items:4 } } }); } //Banner Carousel if ($('.banner-carousel').length) { $('.banner-carousel').owlCarousel({ animateOut: 'fadeOut', animateIn: 'fadeIn', loop:true, mouseDrag:false, margin:30, nav:true, smartSpeed: 700, autoplay: true, autoplayTimeout:70000, navText: [ '<span class="arrow-left-2"></span>', '<span class="arrow-right-2"></span>' ], responsive:{ 0:{ items:1 }, 600:{ items:1 }, 1024:{ items:1 }, } }); } // Sponsors Carousel if ($('.sponsors-carousel').length) { $('.sponsors-carousel').owlCarousel({ loop:true, margin:30, nav:false, smartSpeed: 500, autoplay: true, navText: [ '<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>' ], responsive:{ 0:{ items:1 }, 480:{ items:2 }, 600:{ items:2 }, 800:{ items:3 }, 1024:{ items:4 }, 1200:{ items:5 } } }); } if($('.timer').length){ $(function(){ $('[data-countdown]').each(function() { var $this = $(this), finalDate = $(this).data('countdown'); $this.countdown(finalDate, function(event) { $this.html(event.strftime('%D days %H:%M:%S')); }); }); }); $('.cs-countdown').countdown('').on('update.countdown', function(event) { var $this = $(this).html(event.strftime('<div><span>%D</span><h6>day</h6></div> <div><span>%H</span><h6>hrs</h6></div> <div><span>%M</span><h6>min</h6></div> <div><span>%S</span><h6>sec</h6></div>')); }); } //Fact Counter + Text Count if($('.count-box').length){ $('.count-box').appear(function(){ var $t = $(this), n = $t.find(".count-text").attr("data-stop"), r = parseInt($t.find(".count-text").attr("data-speed"), 10); if (!$t.hasClass("counted")) { $t.addClass("counted"); $({ countNum: $t.find(".count-text").text() }).animate({ countNum: n }, { duration: r, easing: "linear", step: function() { $t.find(".count-text").text(Math.floor(this.countNum)); }, complete: function() { $t.find(".count-text").text(this.countNum); } }); } },{accY: 0}); } //Jquery Spinner / Quantity Spinner if($('.quantity-spinner').length){ $("input.quantity-spinner").TouchSpin({ verticalbuttons: true }); } //Quantity Spinner if($('.quantity-spinner').length){ $('.quantity-spinner .plus').on('click', function() { var val = $(this).prev('.prod_qty').val(); $(this).prev('.prod_qty').val((val*1)+1); }); $('.quantity-spinner .minus').on('click', function(){ var val = $(this).next('.prod_qty').val(); if (val != 1 ){ $(this).next('.prod_qty').val((val*1)-1); } }); } //Accordion Box if($('.accordion-box').length){ $(".accordion-box").on('click', '.acc-btn', function() { var outerBox = $(this).parents('.accordion-box'); var target = $(this).parents('.accordion'); if($(this).hasClass('active')!==true){ $(outerBox).find('.accordion .acc-btn').removeClass('active'); } if ($(this).next('.acc-content').is(':visible')){ return false; }else{ $(this).addClass('active'); $(outerBox).children('.accordion').removeClass('active-block'); $(outerBox).find('.accordion').children('.acc-content').slideUp(300); target.addClass('active-block'); $(this).next('.acc-content').slideDown(300); } }); } //Progress Bar if($('.progress-line').length){ $('.progress-line').appear(function(){ var el = $(this); var percent = el.data('width'); $(el).css('width',percent+'%'); },{accY: 0}); } //Jquery Knob animation if($('.dial').length){ $('.dial').appear(function(){ var elm = $(this); var color = elm.attr('data-fgColor'); var perc = elm.attr('value'); elm.knob({ 'value': 0, 'min':0, 'max':100, 'skin':'tron', 'readOnly':true, 'thickness':0.04, 'dynamicDraw': true, 'displayInput':false }); $({value: 0}).animate({ value: perc }, { duration: 2000, easing: 'swing', progress: function () { elm.val(Math.ceil(this.value)).trigger('change'); } }); //circular progress bar color $(this).append(function() { // elm.parent().parent().find('.circular-bar-content').css('color',color); //elm.parent().parent().find('.circular-bar-content .txt').text(perc); }); },{accY: 20}); } //Custom Seclect Box if($('.custom-select-box').length){ $('.custom-select-box').selectmenu().selectmenu('menuWidget').addClass('overflow'); } // Product Carousel Slider if ($('.shop-page .image-carousel').length && $('.shop-page .thumbs-carousel').length) { var $sync1 = $(".shop-page .image-carousel"), $sync2 = $(".shop-page .thumbs-carousel"), flag = false, duration = 500; $sync1 .owlCarousel({ loop:true, items: 1, margin: 0, nav: false, navText: [ '<span class="icon fa fa-angle-left"></span>', '<span class="icon fa fa-angle-right"></span>' ], dots: false, autoplay: true, autoplayTimeout: 5000 }) .on('changed.owl.carousel', function (e) { if (!flag) { flag = false; $sync2.trigger('to.owl.carousel', [e.item.index, duration, true]); flag = false; } }); $sync2 .owlCarousel({ loop:true, margin: 10, items: 1, nav: true, navText: [ '<span class="icon fa fa-angle-left"></span>', '<span class="icon fa fa-angle-right"></span>' ], dots: false, center: false, autoplay: true, autoplayTimeout: 5000, responsive: { 0:{ items:2, autoWidth: false }, 400:{ items:3, autoWidth: false }, 600:{ items:4, autoWidth: false }, 900:{ items:4, autoWidth: false }, 1000:{ items:4, autoWidth: false } }, }) .on('click', '.owl-item', function () { $sync1.trigger('to.owl.carousel', [$(this).index(), duration, true]); }) .on('changed.owl.carousel', function (e) { if (!flag) { flag = true; $sync1.trigger('to.owl.carousel', [e.item.index, duration, true]); flag = false; } }); } //Tabs Box if($('.tabs-box').length){ $('.tabs-box .tab-buttons .tab-btn').on('click', function(e) { e.preventDefault(); var target = $($(this).attr('data-tab')); if ($(target).is(':visible')){ return false; }else{ target.parents('.tabs-box').find('.tab-buttons').find('.tab-btn').removeClass('active-btn'); $(this).addClass('active-btn'); target.parents('.tabs-box').find('.tabs-content').find('.tab').fadeOut(0); target.parents('.tabs-box').find('.tabs-content').find('.tab').removeClass('active-tab'); $(target).fadeIn(300); $(target).addClass('active-tab'); } }); } //LightBox / Fancybox if($('.lightbox-image').length) { $('.lightbox-image').fancybox({ openEffect : 'fade', closeEffect : 'fade', helpers : { media : {} } }); } //Contact Form Validation if($('#contact-form').length){ $('#contact-form').validate({ rules: { username: { required: true }, email: { required: true, email: true }, message: { required: true } } }); } // Scroll to a Specific Div if($('.scroll-to-target').length){ $(".scroll-to-target").on('click', function() { var target = $(this).attr('data-target'); // animate $('html, body').animate({ scrollTop: $(target).offset().top }, 1500); }); } // Elements Animation //if($('.wow').length){ // var wow = new WOW( // { // boxClass: 'wow', // animated element css class (default is wow) // animateClass: 'animated', // animation css class (default is animated) // offset: 0, // distance to the element when triggering the animation (default is 0) // mobile: false, // trigger animations on mobile devices (default is true) // live: true // act on asynchronously loaded content (default is true) // } // ); // wow.init(); // } /* ========================================================================== When document is Scrollig, do ========================================================================== */ $(window).on('scroll', function() { headerStyle(); }); /* ========================================================================== When document is loading, do ========================================================================== */ $(window).on('load', function() { handlePreloader(); }); })(window.jQuery);