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

- old
+ new

@@ -1,7 +1,7 @@ /*! - * IASD Bootstrap v1.5.0 (http://styleguide.adventistas.org) + * IASD Bootstrap v1.6.0 (http://styleguide.adventistas.org) * Copyright 2014-2015 Igreja Adventista do Sétimo Dia * Licensed under MIT (https://github.com/igrejaadventista/styleguide/blob/master/LICENSE) */ /* Modernizr 2.6.2 (Custom Build) | MIT & BSD @@ -1898,10 +1898,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); @@ -2095,9 +2098,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