(function ($) { "use strict"; $(document).ready(function () { $('select').niceSelect(); }); // menu fixed js code $(window).scroll(function () { var window_top = $(window).scrollTop() + 1; if (window_top > 50) { $('.main_menu').addClass('menu_fixed animated fadeInDown'); } else { $('.main_menu').removeClass('menu_fixed animated fadeInDown'); } }); $('.grid').masonry({ itemSelector: '.grid-item', columnWidth: '.grid-sizer', percentPosition: true }); var client_logo = $('.client_logo_slider') if (client_logo.length) { client_logo.owlCarousel({ items: 6, loop: true, responsive: { 0: { items: 3, margin: 15, }, 600: { items: 3, margin: 15, }, 991: { items: 5, margin: 15, }, 1200: { items: 6, margin: 15, } } }); } $('.img-gal, .popup-youtube').magnificPopup({ type: 'image', gallery: { enabled: true } }); $('.popup-youtube').magnificPopup({ type: 'iframe', }); var client_logo = $('.client_logo_slider') if (client_logo.length) { client_logo.owlCarousel({ items: 6, loop: true, responsive: { 0: { items: 3, margin: 15, }, 600: { items: 3, margin: 15, }, 991: { items: 5, margin: 15, }, 1200: { items: 6, margin: 15, } } }); } var review = $('.live_stareams_slide'); if (review.length) { review.owlCarousel({ items: 2, loop: true, dots: false, autoplay: true, autoplayHoverPause: true, autoplayTimeout: 5000, nav: true, navText: [ '', '' ], margin: 15, responsive: { 0: { items: 1, margin: 15, }, 600: { items: 1, margin: 15, }, 991: { items: 1, margin: 15, }, 1200: { items: 2, margin: 15, } } }); } function makeTimer() { // var endTime = new Date("29 April 2018 9:56:00 GMT+01:00"); var endTime = new Date("24 sep 2019 9:56:00 GMT+06:00"); endTime = (Date.parse(endTime) / 1000); var now = new Date(); now = (Date.parse(now) / 1000); var timeLeft = endTime - now; var days = Math.floor(timeLeft / 86400); var hours = Math.floor((timeLeft - (days * 86400)) / 3600); if (hours < "10") { hours = "0" + hours; } $("#days").html(days + "Days"); $("#hours").html(hours + "Hours"); } setInterval(function () { makeTimer(); }, 1000); //------- Mailchimp js --------// function mailChimp() { $('#mc_embed_signup').find('form').ajaxChimp(); } mailChimp(); }(jQuery));