// Theme Search Box jQuery(document).ready(function() { jQuery("#search-button").click(function() { jQuery(".search-box").addClass("show-box"); }); jQuery("#close-button").click(function() { jQuery(".search-box").removeClass("show-box"); }); }); // Slideshow Carousel JS /*var mySwiper = new Swiper(".swiper-container", { direction: "vertical", loop: true, pagination: ".swiper-pagination", grabCursor: true, speed: 700, paginationClickable: true, parallax: true, autoplay: true, effect: "slide", mousewheelControl: 1 });*/ // Services Carousel JS /*jQuery('.fs-portfolio-carousel').owlCarousel({ loop:true, items:5, dots:true, nav:true, autoplay: true, smartSpeed: 1000, autoplayTimeout:4000, autoplayHoverPause:true, responsive:{ 0:{ items:1 }, 1000:{ items:5 } } })*/ //wow js jQuery(document).ready(function($){wow=new WOW({boxClass:'wow',animateClass:'animated',offset:0,mobile:!0,live:!0}) wow.init()}) jQuery(document).ready(function () { jQuery(document).on('click', '.navbar-toggler', function () { jQuery(this).toggleClass('active') }) }); // Why Choose Us section video js jQuery(document).ready(function() { // Gets the video src from the data-src on each button var $videoSrc; jQuery('.video-btn').click(function() { $videoSrc = jQuery(this).data( "src" ); }); // modal opn autoplay start jQuery('#fs-modal').on('shown.bs.modal', function (e) { // set the video src to autoplay and not to show related video. Youtube related video is like a box of chocolates... you never know what you're gonna get jQuery("#fs-video").attr('src',$videoSrc + "?autoplay=1&modestbranding=1&showinfo=0" ); }) // stop auto play jQuery('#fs-modal').on('hide.bs.modal', function (e) { // a poor man's stop video jQuery("#fs-video").attr('src',$videoSrc); }) bg_moving() }); // Services Carousel JS /*jQuery('.fs-testimonial-carousel').owlCarousel({ loop:true, items:3, dots:true, nav:true, margin:40, autoplay: true, smartSpeed: 1000, autoplayTimeout:3000, autoplayHoverPause:true, responsive:{ 0:{ items:1 }, 1000:{ items:3 } } }) // brand Carousel JS jQuery('.fs-brand-carousel').owlCarousel({ loop:true, items:5, dots:true, nav:true, autoplay: true, margin:70, smartSpeed: 500, autoplayTimeout:4000, autoplayHoverPause:true, responsive:{ 0:{ items:1 }, 1000:{ items:5 } } })*/ // Counter js // jQuery(window).scroll(startCounter); function startCounter() { if(jQuery('.fs-counter-inner').length > 0) { var hT = jQuery('.fs-counter-inner').offset().top, hH = jQuery('.fs-counter-inner').outerHeight(), wH = jQuery(window).height(); if (jQuery(window).scrollTop() > hT+hH-wH) { jQuery(window).off("scroll", startCounter); jQuery('.counter-number').each(function () { var $this = jQuery(this); jQuery({ Counter: 0 }).animate({ Counter: $this.text() }, { duration: 6000, easing: 'swing', step: function () { $this.text(Math.ceil(this.Counter) + ''); } }); }); } } } //________graph images moving function by = jquery.bgscroll.js ________// function bg_moving(){ jQuery( function() { jQuery('.bg-moving').bgscroll({scrollSpeed:20 , direction:'h' }); }); } // Slide show animation /*Scroll to top when arrow up clicked BEGIN*/ jQuery(window).scroll(function() { var height = jQuery(window).scrollTop(); if (height > 100) { jQuery('.fs-scroll').fadeIn(); } else { jQuery('.fs-scroll').fadeOut(); } }); jQuery(document).ready(function() { jQuery(".fs-scroll").click(function(event) { event.preventDefault(); jQuery("html, body").animate({ scrollTop: 0 }, "slow"); return false; }); }); //sticky navbar jQuery(window).on("scroll",function(a){ 190