diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-03-29 16:40:45 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-03-29 16:40:45 -0400 |
| commit | e941223582382e2292b5e8e47e951e1a21ecb375 (patch) | |
| tree | 88ea49a04603ec1e8518150925591298351ed4ca /public/assets/js | |
| parent | 20c26d2a907a8605cbae072f0e9c04a64d2c7c4e (diff) | |
stuff all seems to be showing now
Diffstat (limited to 'public/assets/js')
| -rw-r--r-- | public/assets/js/app.js | 15 | ||||
| -rw-r--r-- | public/assets/js/lib/ProjectView.js | 2 |
2 files changed, 10 insertions, 7 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() diff --git a/public/assets/js/lib/ProjectView.js b/public/assets/js/lib/ProjectView.js index 414865f..357bbee 100644 --- a/public/assets/js/lib/ProjectView.js +++ b/public/assets/js/lib/ProjectView.js @@ -4,7 +4,7 @@ var ProjectView = View.extend({ "click": "nextOrCloseNav", "click .page-up": "previous", "click .page-down": "next", - "click .flickity-viewport": "stopPropagation", + "click .top": "stopPropagation", }, initialize: function(opt){ |
