summaryrefslogtreecommitdiff
path: root/www/lib/angular-carousel/index.html
diff options
context:
space:
mode:
authorArjun Roychowdhury <pliablepixels@gmail.com>2015-09-17 12:32:47 -0400
committerArjun Roychowdhury <pliablepixels@gmail.com>2015-09-17 12:32:47 -0400
commit7c385a7877aa4b0163dda6206f656846db2cf039 (patch)
tree0dd09ef3261f0eca43cda22d27ab3a431ad1cd2f /www/lib/angular-carousel/index.html
parenta0b74399c4f1a7754029e1fd7f4be3b20836404a (diff)
iOS9 fixes (which includes ionic updates to 1.1.0)
Diffstat (limited to 'www/lib/angular-carousel/index.html')
-rw-r--r--www/lib/angular-carousel/index.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/www/lib/angular-carousel/index.html b/www/lib/angular-carousel/index.html
index 4ed5efde..374104ea 100644
--- a/www/lib/angular-carousel/index.html
+++ b/www/lib/angular-carousel/index.html
@@ -155,7 +155,7 @@
<br>
</div>
<div class="carousel-demo" >
-
+
<ul rn-carousel rn-carousel-index="carouselIndex7" rn-carousel-buffered rn-carousel-on-infinite-scroll-right="loadNextImages()" rn-carousel-on-infinite-scroll-left="loadPreviousImages()" class="carousel5">
<li ng-repeat="slide in slides7 track by slide.id">
<div ng-style="{'background-image': 'url(' + slide.img + ')'}" class="bgimage">
@@ -245,7 +245,7 @@
$scope.slides6.push(getSlide($scope.slides6, 'people'));
}
}
-
+
// End to End swiping
// load 130 images in main javascript container
var slideImages = [];
@@ -265,25 +265,25 @@
$scope.totalimg = slideImages.length;
$scope.galleryNumber = 1;
console.log($scope.galleryNumber);
-
+
function getImage(target) {
var i = target.length
, p = (($scope.galleryNumber-1)*$scope.setOfImagesToShow)+i;
console.log("i=" + i + "--" + p);
-
+
return slideImages[p];
}
function addImages(target, qty) {
-
+
for (var i=0; i < qty; i++) {
addImage(target);
}
}
-
+
function addImage(target) {
target.push(getImage(target));
}
-
+
$scope.slides7 = [];
$scope.carouselIndex7 = 0;
$scope.setOfImagesToShow = 3;
@@ -321,7 +321,7 @@
addImages($scope.slides7, $scope.setOfImagesToShow);
console.log("no images left");
}
-
+
}
})