summaryrefslogtreecommitdiff
path: root/public/assets/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/js/app.js')
-rw-r--r--public/assets/js/app.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/public/assets/js/app.js b/public/assets/js/app.js
index b8992ea..b38d151 100644
--- a/public/assets/js/app.js
+++ b/public/assets/js/app.js
@@ -38,7 +38,7 @@ var app = (function() {
})()
-app.init()
+// app.init()
$(".cell, .next").css({ 'height': ($(".top").height() + 'px') });
@@ -54,6 +54,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,4 +86,4 @@ $(window).resize(function() {
$('.top').flickity('resize');
$('body').removeClass('resizing');
}, 400);
-}) \ No newline at end of file
+})