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.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/public/assets/js/app.js b/public/assets/js/app.js
index 7240c89..2636332 100644
--- a/public/assets/js/app.js
+++ b/public/assets/js/app.js
@@ -87,18 +87,21 @@ var app = (function() {
})()
$(".top").each(function(){
- var height = $(this).height()
- console.log(height)
- $(".cell, .next", this).css({ 'height': (height + 'px') })
+ var height = $(this).height() - 10
+ $(".cell", this).css({ 'height': (height + 'px') })
})
-$(".item").addClass("hidden")
-
$('.top').flickity(app.flickity_options).on( 'cellSelect', function(e) {
var gallery = $(e.target).data('flickity')
app.header.updateSlideNumber( gallery.selectedIndex )
})
-$(".previous, .next").css({ 'height': ($(".top").height() + 'px') })
+$(".top").each(function(){
+ var height = $(this).height() - 10
+ console.log(height)
+ $(".previous, .next", this).css({ 'height': (height + 'px') })
+})
+
+$(".item").addClass("hidden")
app.init()