From ede44e29ce4a10a38d3ed1a0796903a3e2104e06 Mon Sep 17 00:00:00 2001 From: “Ryder <“r@okfoc.us”> Date: Mon, 28 Mar 2016 19:38:02 -0400 Subject: resize buttons --- public/assets/js/app.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'public/assets/js/app.js') 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); -- cgit v1.2.3-70-g09d2