diff options
| author | “Ryder <“r@okfoc.us”> | 2016-03-28 19:38:02 -0400 |
|---|---|---|
| committer | “Ryder <“r@okfoc.us”> | 2016-03-28 19:38:02 -0400 |
| commit | ede44e29ce4a10a38d3ed1a0796903a3e2104e06 (patch) | |
| tree | a33f42b7c1f0001c7d18025afe5e026ead3c01ef /public/assets/js/app.js | |
| parent | d5a8b23c9d4d7b72ce7f3931fe62bd34c70b2a23 (diff) | |
resize buttons
Diffstat (limited to 'public/assets/js/app.js')
| -rw-r--r-- | public/assets/js/app.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/public/assets/js/app.js b/public/assets/js/app.js index 8a11dd8..35a162c 100644 --- a/public/assets/js/app.js +++ b/public/assets/js/app.js @@ -10,8 +10,7 @@ $(function() { } }); -$(".cell").css({ 'height': ($(".top").height() + 'px') }); - +$(".cell, .next").css({ 'height': ($(".top").height() + 'px') }); $('.top').flickity({ cellAlign: 'left', @@ -28,6 +27,8 @@ $('.top').flickity({ } }); +$(".previous, .next").css({ 'height': ($(".top").height() + 'px') }); + $('.index').click(function() { $('body').toggleClass('navopen'); }); @@ -46,10 +47,10 @@ var delay = (function() { })(); $(window).resize(function() { - $(".cell").css({ 'display': 'none' }); + $(".cell, .next, .previous").css({ 'display': 'none' }); $('body').addClass('resizing'); delay(function() { - $(".cell").css({ 'height': ($(".top").height() + 'px'), 'display': 'inline-block' }); + $(".cell, .next, .previous").css({ 'height': ($(".top").height() + 'px'), 'display': 'inline-block' }); $('.top').flickity('resize'); $('body').removeClass('resizing'); }, 400); |
