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.js9
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);