3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

Merge pull request #211 from tmenari/master

masonry.js, again
This commit is contained in:
Luke Slater 2013-01-24 14:39:49 -08:00
commit 9c7006a983
2 changed files with 7 additions and 6 deletions

View File

@ -3,11 +3,12 @@ extends ../layout
block content block content
script(src='http://masonry.desandro.com/jquery.masonry.min.js') script(src='http://masonry.desandro.com/jquery.masonry.min.js')
script script
$(function() {
var $container = $('.thumbnails'); var $container = $('.thumbnails');
$container.imagesLoaded(function(){ $container.imagesLoaded(function(){
$container.masonry({ $container.masonry({
itemSelector : '.item', itemSelector : '.thumbnails > li',
columnWidth : 240 });
}); });
}); });
div.page-header.profile_page-header div.page-header.profile_page-header