summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/assets/js/app.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/public/assets/js/app.js b/public/assets/js/app.js
index 7dabf26..aa6fef6 100644
--- a/public/assets/js/app.js
+++ b/public/assets/js/app.js
@@ -38,7 +38,6 @@ var app = (function() {
})()
-
$(".cell, .next").css({ 'height': ($(".top").height() + 'px') });
$('.top').flickity({
@@ -52,6 +51,9 @@ $('.top').flickity({
x2: 40, y2: 25,
x3: 15
}
+}).on( 'cellSelect', function(e) {
+ var gallery = $(e.target).data('flickity')
+ $(".slide-no").html(gallery.selectedIndex + 1)
})
$(".previous, .next").css({ 'height': ($(".top").height() + 'px') });
@@ -83,5 +85,4 @@ $(window).resize(function() {
}, 400);
})
-app.init()
-
+// app.init()