Hendrik search #181

Merged
11342374 merged 70 commits from hendrik-search into master 2017-02-02 12:47:08 +01:00
Showing only changes of commit 77448d98ba - Show all commits

View File

@@ -56,14 +56,20 @@ $(window).on("load", function() {
var masonryMode = 0;
var windowWidth = $(window).width();
var oldColumnCount = Math.floor($(".posts").width() / 250);
$(window).resize(function() {
clearTimeout(window.resizedFinished);
window.resizeFinished = setTimeout(function() {
if ($(window).width() != windowWidth) {
windowWidth = $(window).width();
if (oldColumnCount != Math.floor($(".posts").width() / 250)) {
oldColumnCount = Math.floor($(".posts").width() / 250);
masonry(masonryMode);
}
}
}, 250);
});