diff options
| author | “Ryder <“r@okfoc.us”> | 2016-03-29 16:47:15 -0400 |
|---|---|---|
| committer | “Ryder <“r@okfoc.us”> | 2016-03-29 16:47:15 -0400 |
| commit | ccdb68e87b379ce4432ec875f45a055c46ed090e (patch) | |
| tree | ea9c1a4e25a11769102d5d26b8fcb70a0475a0fe /public/assets/js/app.js | |
| parent | 0524725613f06f27efc58f19b3f6c2458afa7543 (diff) | |
| parent | 2a8a35ad60a62f4e32ec26586b748ab77e92d7df (diff) | |
db
Diffstat (limited to 'public/assets/js/app.js')
| -rw-r--r-- | public/assets/js/app.js | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/public/assets/js/app.js b/public/assets/js/app.js index 56cb4c5..ba7c247 100644 --- a/public/assets/js/app.js +++ b/public/assets/js/app.js @@ -81,18 +81,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() |
