(function(jQuery) { 'use strict'; jQuery(document).ready(function($) { /* ============== masonry Grid ============= */ if( $(".rd-navbar").length){ $('.rd-navbar').RDNavbar({ stickUpClone: false, }); } if( $('#ui-to-top').length ){ $('#ui-to-top').on('click', function() { $("html, body").animate({ scrollTop: 0 }, 500); return false; }); $(window).scroll(function() { if ( $(this).scrollTop() > 100 ) { $('#ui-to-top').addClass('active'); } else { $('#ui-to-top').removeClass('active'); } }); } if( $('.bcf-own-carousel .gallery').length ){ $(".bcf-own-carousel .gallery").owlCarousel({ stagePadding: 0, loop: true, autoplay: true, autoplayTimeout: 2000, margin: 0, nav: false, dots: false, smartSpeed: 1000, responsive: { 0: { items: 1 }, 600: { items: 1 }, 1000: { items: 1 } } }); } /* -- image-popup */ if( $('.image-popup').length ){ $('.image-popup').magnificPopup({ closeBtnInside : true, type : 'image', mainClass : 'mfp-with-zoom' }); } //skrollr.init(); }); })(jQuery);