(function($){ "use strict"; // Preloader jQuery(window).on('load', function() { jQuery("#status").fadeOut(); jQuery("#preloader").delay(350).fadeOut("slow"); }); // on ready function jQuery(document).ready(function($) { var $this = $(window); // scrolling animation js var $winW = function() { return $(window).width(); }; var $winH = function() { return $(window).height(); }; var $screensize = function(element) { $(element).width($winW()).height($winH()); }; var screencheck = function(mediasize) { if (typeof window.matchMedia !== "undefined") { var screensize = window.matchMedia("(max-width:" + mediasize + "px)"); if (screensize.matches) { return true; } else { return false; } } else { if ($winW() <= mediasize) { return true; } else { return false; } } }; $('.animated-row').each(function() { var $this = $(this); $this.find('.animate').each(function(i) { var $item = $(this); var animation = $item.data('animate'); $item.on('inview', function(event, isInView) { if (isInView) { setTimeout(function() { $item.addClass('animated ' + animation).removeClass('animate'); }, i * 50); } else if (!screencheck(767)) { $item.removeClass('animated ' + animation).addClass('animate'); } }); }); }); // single page scrolling js if ($('.fullpage-default').length) { var myFullpage = new fullpage('.fullpage-default', { licenseKey: ' C7F41B00-5E824594-9A5EFB99-B556A3D5', anchors: ['slide01', 'slide02', 'slide03', 'slide04', 'slide05', 'slide06', 'slide07'], menu: '#nav', lazyLoad: true, navigation: true, navigationPosition: 'right', scrollOverflow: true, responsiveWidth: 992, responsiveHeight: 600, responsiveSlides: true }); } // owl js $(document).ready(function() { $('.ck_gallery_slider_wrapper .owl-carousel').owlCarousel({ loop: true, margin: 0, autoplay:true, responsiveClass: true, smartSpeed: 1200, navText: ['', ''], responsive: { 0: { items: 1, nav: true }, 600: { items: 2, nav: true, margin: 2 }, 900: { items: 3, nav: true, margin: 2 }, 1000: { items: 4, nav: true, loop: true, margin: 2 } } }) }) $(document).ready(function() { $('.ck_team_slider_wrapper .owl-carousel').owlCarousel({ loop: true, margin: 0, autoplay:true, responsiveClass: true, smartSpeed: 1200, navText: ['', ''], responsive: { 0: { items: 1, nav: true }, 800: { items: 2, nav: true, margin: 15 }, 1000: { items: 3, nav: true, loop: true, margin: 20 } } }) }) $(document).ready(function() { $('.ck_testi_slider_wrapper .owl-carousel').owlCarousel({ loop: true, margin: 0, autoplay:true, responsiveClass: true, smartSpeed: 1200, animateOut: 'fadeInUp', animateIn: 'fadeInUp', navText: ['', ''], responsive: { 0: { items: 1, nav: true }, 600: { items: 1, nav: true }, 1000: { items: 1, nav: true, loop: true, margin: 20 } } }) }) $(document).ready(function() { $('.ck_blog_slider_wrapper .owl-carousel').owlCarousel({ loop: true, margin: 0, autoplay:true, responsiveClass: true, smartSpeed: 1200, navText: ['', ''], responsive: { 0: { items: 1, nav: true }, 600: { items: 1, nav: true }, 900: { items: 1, nav: true }, 1200: { items: 2, nav: true, loop: true, margin: 20 } } }) }) $(document).ready(function() { $('.ck_elem_slider_wrapper .owl-carousel').owlCarousel({ loop: true, margin: 0, autoplay:true, responsiveClass: true, smartSpeed: 1200, navText: ['', ''], responsive: { 0: { items: 1, nav: true }, 600: { items: 2, nav: true, margin: 15 }, 1000: { items: 3, nav: true, loop: true, margin: 20 } } }) }) $(document).ready(function() { $('.lr_prt_slider_wrapper .owl-carousel').owlCarousel({ loop: true, margin: 10, autoplay: true, responsiveClass: true, smartSpeed: 1200, navText: ['', ''], responsive: { 0: { items: 2, nav: true }, 500: { items: 4, nav: true }, 700: { items: 4, nav: true }, 1000: { items: 6, nav: true, loop: true, margin: 20 } } }) }) $(document).ready(function() { $('.lr_bc_slider_first_wrapper .owl-carousel').owlCarousel({ loop: true, margin: 10, autoplay: true, responsiveClass: true, smartSpeed: 1200, navText: ['', ''], responsive: { 0: { items: 1, nav: true }, 500: { items: 1, nav: true }, 700: { items: 1, nav: true }, 1000: { items: 1, nav: true, loop: true, margin: 20 } } }) }) // Magnific popup-video $('.test-popup-link').magnificPopup({ type: 'iframe', iframe: { markup: '
Mail has been sent successfully.
'); }else{ errroTarget.html('Something went wrong please try again latter.
'); } }); } }); }); })();