;(function($) { "use strict"; var nav_offset_top = $('header').height(); /*------------------------------------------------------------------------------- Navbar -------------------------------------------------------------------------------*/ //* Navbar Fixed function navbarFixed(){ if ( $('header').length ){ $(window).scroll(function() { var scroll = $(window).scrollTop(); if (scroll >= nav_offset_top ) { $(".header_menu,.menu_inner_area_four").addClass("navbar_fixed"); } else { $(".header_menu,.menu_inner_area_four").removeClass("navbar_fixed"); } }); }; }; navbarFixed(); /* Main Slider js */ function main_slider(){ if ( $('#main_slider').length ){ $("#main_slider").revolution({ sliderType:"standard", sliderLayout:"auto", delay:5000, disableProgressBar:"on", navigation: { onHoverStop: 'off', touch:{ touchenabled:"on" }, arrows: { style:"zeus", enable:true, hide_onmobile:true, hide_under:780, hide_onleave:true, hide_delay:200, hide_delay_mobile:1200, tmp:'
', left: { h_align: "left", v_align: "center", h_offset: 15, v_offset: 0 }, right: { h_align: "right", v_align: "center", h_offset: 15, v_offset: 0 } }, }, responsiveLevels:[4096,1360,1199,992,767,480], gridwidth:[1170,1020,850,720,500,300], gridheight:[760,760,760,760,600,500], lazyType:"smart", fallbacks: { simplifyAll:"off", nextSlideOnWindowFocus:"off", disableFocusListener:false, } }) } }; function main_slider4(){ if ( $('#main_slider4').length ){ $("#main_slider4").revolution({ sliderType:"standard", sliderLayout:"auto", delay:5000, disableProgressBar:"on", navigation: { onHoverStop: 'off', touch:{ touchenabled:"on" }, arrows: { style:"zeus", enable:true, hide_onmobile:true, hide_under:780, hide_onleave:true, hide_delay:200, hide_delay_mobile:1200, tmp:'
', left: { h_align: "left", v_align: "center", h_offset: 15, v_offset: 0 }, right: { h_align: "right", v_align: "center", h_offset: 15, v_offset: 0 } }, }, responsiveLevels:[4096,1360,1199,992,767,480], gridwidth:[1170,1020,850,720,500,300], gridheight:[630,630,630,630,630,500], lazyType:"smart", fallbacks: { simplifyAll:"off", nextSlideOnWindowFocus:"off", disableFocusListener:false, } }) } }; function main_slider2(){ if ( $('#main_slider2').length ){ $("#main_slider2").revolution({ sliderType:"standard", sliderLayout:"auto", delay:5000, disableProgressBar:"on", navigation: { onHoverStop: 'off', touch:{ touchenabled:"on" }, arrows: { style:"zeus", enable:true, hide_onmobile:true, hide_under:800, hide_onleave:true, hide_delay:200, hide_delay_mobile:1200, tmp:'
', left: { h_align: "left", v_align: "center", h_offset: 15, v_offset: 0 }, right: { h_align: "right", v_align: "center", h_offset: 15, v_offset: 0 } }, }, responsiveLevels:[4096,1360,1199,992,767,480], gridwidth:[1170,1020,850,710,500,300], gridheight:[845,845,845,845,600,500], lazyType:"smart", fallbacks: { simplifyAll:"off", nextSlideOnWindowFocus:"off", disableFocusListener:false, } }) } }; function main_slider3(){ if ( $('#main_slider3').length ){ $("#main_slider3").revolution({ sliderType:"standard", sliderLayout:"auto", delay:4000, disableProgressBar:"on", navigation: { onHoverStop: 'off', touch:{ touchenabled:"on" }, arrows: { style:"zeus", enable:true, hide_onmobile:true, hide_under:800, hide_onleave:true, hide_delay:200, hide_delay_mobile:1200, tmp:'
', left: { h_align: "left", v_align: "center", h_offset: 15, v_offset: 0 }, right: { h_align: "right", v_align: "center", h_offset: 15, v_offset: 0 } }, }, responsiveLevels:[4096,1360,1199,992,767,480], gridwidth:[1170,1020,850,630,500,300], gridheight:[680,680,680,680,600,500], lazyType:"smart", fallbacks: { simplifyAll:"off", nextSlideOnWindowFocus:"off", disableFocusListener:false, } }) } }; /* SaysCarus */ function saysCarus(){ if ( $('.customers_says_row').length ){ $('.says_carousel').owlCarousel({ loop: true, margin: 30, nav: false, items: 1, responsive: { 0: { items: 1 }, 600: { items: 1 }, 1000: { items: 2 } }, }); }; }; function whatCarus(){ if ( $('.what_wedo_area').length ){ $('.what_wedo_carousel').owlCarousel({ loop: true, margin: 30, nav: true, navText: ["",""], responsive: { 0: { items: 1 }, 500: { items: 2 }, 768: { items: 3 }, 1200: { items: 4 } }, }); }; }; /* Counter Js */ function counterUp(){ if ( $('.counter').length ){ $('.counter').counterUp({ delay: 10, time: 400 }); }; }; /* Magnificpopup js */ function magnificPopup() { if ($('body').length) { //Video Popup $('.popup-youtube').magnificPopup({ disableOn: 700, type: 'iframe', mainClass: 'mfp-fade', removalDelay: 160, preloader: false, fixedContentPos: false, }); //Search Popup $('.popup-with-zoom-anim').magnificPopup({ type: 'inline', fixedContentPos: false, fixedBgPos: true, overflowY: 'auto', closeBtnInside: true, preloader: false, midClick: true, removalDelay: 300, mainClass: 'my-mfp-zoom-in' }); }; }; //* Isotope js function gallery_isotope(){ if ( $('.grid_gallery_area').length ){ // Activate isotope in container $(".grid_gallery_item_inner").imagesLoaded( function() { $(".grid_gallery_item_inner").isotope({ layoutMode: 'fitRows', columnWidth: 1, percentPosition: true, }); }); // Add isotope click function $(".gallery_filter li").on('click',function(){ $(".gallery_filter li").removeClass("active"); $(this).addClass("active"); var selector = $(this).attr("data-filter"); $(".grid_gallery_item_inner").isotope({ filter: selector, animationOptions: { duration: 450, easing: "linear", queue: false, } }); return false; }); }; }; //* Isotope js function nice_Select(){ if ( $('.product_select').length ){ $('select').niceSelect(); }; }; //* Simple LightBox js $('.imageGallery1 .light').simpleLightbox(); //* Google map js if ( $('#mapBox').length ){ var $lat = $('#mapBox').data('lat'); var $lon = $('#mapBox').data('lon'); var $zoom = $('#mapBox').data('zoom'); var $marker = $('#mapBox').data('marker'); var $info = $('#mapBox').data('info'); var $markerLat = $('#mapBox').data('mlat'); var $markerLon = $('#mapBox').data('mlon'); var map = new GMaps({ el: '#mapBox', lat: $lat, lng: $lon, scrollwheel: false, scaleControl: true, streetViewControl: false, panControl: true, disableDoubleClickZoom: true, mapTypeControl: false, zoom: $zoom, styles: [ { "featureType": "water", "elementType": "geometry.fill", "stylers": [ { "color": "#dcdfe6" } ] }, { "featureType": "transit", "stylers": [ { "color": "#808080" }, { "visibility": "off" } ] }, { "featureType": "road.highway", "elementType": "geometry.stroke", "stylers": [ { "visibility": "on" }, { "color": "#dcdfe6" } ] }, { "featureType": "road.highway", "elementType": "geometry.fill", "stylers": [ { "color": "#ffffff" } ] }, { "featureType": "road.local", "elementType": "geometry.fill", "stylers": [ { "visibility": "on" }, { "color": "#ffffff" }, { "weight": 1.8 } ] }, { "featureType": "road.local", "elementType": "geometry.stroke", "stylers": [ { "color": "#d7d7d7" } ] }, { "featureType": "poi", "elementType": "geometry.fill", "stylers": [ { "visibility": "on" }, { "color": "#ebebeb" } ] }, { "featureType": "administrative", "elementType": "geometry", "stylers": [ { "color": "#a7a7a7" } ] }, { "featureType": "road.arterial", "elementType": "geometry.fill", "stylers": [ { "color": "#ffffff" } ] }, { "featureType": "road.arterial", "elementType": "geometry.fill", "stylers": [ { "color": "#ffffff" } ] }, { "featureType": "landscape", "elementType": "geometry.fill", "stylers": [ { "visibility": "on" }, { "color": "#efefef" } ] }, { "featureType": "road", "elementType": "labels.text.fill", "stylers": [ { "color": "#696969" } ] }, { "featureType": "administrative", "elementType": "labels.text.fill", "stylers": [ { "visibility": "on" }, { "color": "#737373" } ] }, { "featureType": "poi", "elementType": "labels.icon", "stylers": [ { "visibility": "off" } ] }, { "featureType": "poi", "elementType": "labels", "stylers": [ { "visibility": "off" } ] }, { "featureType": "road.arterial", "elementType": "geometry.stroke", "stylers": [ { "color": "#d6d6d6" } ] }, { "featureType": "road", "elementType": "labels.icon", "stylers": [ { "visibility": "off" } ] }, {}, { "featureType": "poi", "elementType": "geometry.fill", "stylers": [ { "color": "#dadada" } ] } ] }); map.addMarker({ lat: $markerLat, lng: $markerLon, icon: $marker, infoWindow: { content: $info } }) } /*Function Calls*/ navbarFixed (); main_slider(); main_slider2 (); main_slider3(); main_slider4(); saysCarus(); counterUp(); magnificPopup(); gallery_isotope (); nice_Select (); whatCarus (); })(jQuery);