From 3138bc8367668331ec5051c159c43b02b844b467 Mon Sep 17 00:00:00 2001 From: Thomas Menari Date: Thu, 24 Jan 2013 21:46:42 +0000 Subject: [PATCH] masonry --- views/profile/profile_grid.jade | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/views/profile/profile_grid.jade b/views/profile/profile_grid.jade index ad7a5a1..4c70495 100644 --- a/views/profile/profile_grid.jade +++ b/views/profile/profile_grid.jade @@ -1,6 +1,15 @@ extends ../layout block content + script(src='/public/jquery.masonry.min.js') + script + var $container = $('.thumbnails'); + $container.imagesLoaded(function(){ + $container.masonry({ + itemSelector : '.item', + columnWidth : 240 + }); + }); div.page-header.profile_page-header h1 #{connection}