Sha256: 787d08a19fe49e478f6cef66aa1614f40b2b8006b9cf7fe41f4e2329ae503f62
Contents?: true
Size: 1.11 KB
Versions: 12
Compression:
Stored size: 1.11 KB
Contents
(function($){ $(document).ready(function (){ homeDSA.handleEvents(); $(".apps-home-carousel").owlCarousel({ autoPlay: 7000, addClassActive: true, mouseDrag: false, singleItem: true, slideSpeed: 700, touchDrag: false, transitionStyle: "fade" }); }); var deviceWidth = $(window).width(); var homeDSA = { handleEvents : function(){ $('.iasd-global_navbar-main .more, .iasd-global_navbar-main .navbar-toggle, .iasd-global_navbar-main .search-link').on('click', homeDSA.applyBackgroundImage); }, applyBackgroundImage : function(){ if (deviceWidth >= 768) { var imageURL = $(".apps-home-carousel .active div").css('background-image'); $('.iasd-global_navbar').css('background-image', imageURL); if( $('.iasd-global_navbar-more').hasClass('open') || $('.iasd-global_navbar-search').hasClass('open')){ $('.apps-home-carousel .owl-controls').addClass('hidden'); $(".apps-home-carousel").trigger('owl.stop'); } else{ $(".apps-home-carousel").trigger('owl.play',7000); $('.apps-home-carousel .owl-controls').removeClass('hidden'); } } } }; })(jQuery);
Version data entries
12 entries across 12 versions & 1 rubygems