templates/project/lib/iasd_widgets.js in iasd-bootstrap-sass-1.5.0 vs templates/project/lib/iasd_widgets.js in iasd-bootstrap-sass-1.6.0

- old
+ new

@@ -12,10 +12,13 @@ owlPlugin.initColumnsCarousel(); owlPlugin.initMagazineCarousel(); owlPlugin.initNewsstandCarouselSmall(); owlPlugin.initNewsstandCarouselLarge(); owlPlugin.initInstitutionalCarousel(); + owlPlugin.initAppCarousel(); + owlPlugin.initHighlightAppCarousel(); + owlPlugin.initAppScreenShotsCarousel(); $('.iasd-images-gallery').IASDImageGallery(); if(owlCarousels.length > 0) { widthCheckerInterval = setInterval(function() { for (var i = owlCarousels.length - 1; i >= 0; i--) { owlCarousels[i].updateVars(); }; }, 2000); setTimeout(function() { clearInterval(widthCheckerInterval); }, 30000); @@ -209,9 +212,81 @@ items : 1, itemsDesktop : [1200,1], itemsDesktopSmall : [991,1], itemsTablet : [768,1], itemsMobile: [479,1] + }).data('owlCarousel')); + } + }, + + initAppCarousel : function(){ + var element = $(".iasd-apps"); + if(element.length > 0) { + owlCarousels.push(element.owlCarousel({ + navigation : true, + items : 5, + itemsDesktop : [1200,5], + itemsDesktopSmall : [991,3], + itemsTablet : [768,4], + itemsTabletSmall : [627,3], + itemsMobile: [479,2], + slideSpeed : 500, + pagination : false, + paginationSpeed : 1000, + autoPlay: false, + navigationText: false, + stopOnHover: true, + mouseDrag: false, + touchDrag: false, + lazyLoad : true + }).data('owlCarousel')); + } + }, + + initHighlightAppCarousel : function(){ + var element = $(".iasd-highlight-apps-carousel"); + if(element.length > 0) { + owlCarousels.push(element.owlCarousel({ + navigation : true, + items : 4, + itemsDesktop : [1200,4], + itemsDesktopSmall : [991,3], + itemsTablet : [768,3], + itemsTabletSmall : [627,3], + itemsMobile: [479,2], + slideSpeed : 500, + pagination : false, + paginationSpeed : 1000, + autoPlay: false, + navigationText: false, + stopOnHover: true, + mouseDrag: false, + touchDrag: false, + lazyLoad : true + }).data('owlCarousel')); + } + }, + + initAppScreenShotsCarousel : function(){ + var element = $(".iasd-app-screen-shots"); + if(element.length > 0) { + owlCarousels.push(element.owlCarousel({ + navigation : true, + items : 4, + itemsDesktop : [1200,4], + itemsDesktopSmall : [991,4], + itemsTablet : [768,3], + itemsTabletSmall : [627,2], + itemsMobile: [479,1], + slideSpeed : 500, + pagination : false, + paginationSpeed : 1000, + autoPlay: false, + navigationText: false, + stopOnHover: true, + mouseDrag: false, + touchDrag: false, + lazyLoad : true }).data('owlCarousel')); } } }; \ No newline at end of file