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.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/public/assets/js/app.js b/public/assets/js/app.js
index 22215ae..2151dab 100644
--- a/public/assets/js/app.js
+++ b/public/assets/js/app.js
@@ -63,10 +63,10 @@ var app = (function() {
}
app.resize = function(){
- $(".cell, .next, .previous").css({ 'display': 'none' })
+ $(".active .cell,.active .next,.active .previous").css({ 'display': 'none' })
$('body').addClass('resizing')
debounce(function() {
- $(".item").addClass("hidden")
+ $(".active.item").addClass("hidden")
setTimeout(function(){
$(".item").each(function(i){
var height = window.innerHeight - $(this).find(".bottom").height()
@@ -75,7 +75,7 @@ var app = (function() {
app.view.$el.removeClass("hidden")
// $('.top').flickity('resize')
$('body').removeClass('resizing')
- }, 20)
+ }, 400)
}, 400)
}