DrewDahlman/Mason — pull request #26 by tomeralmog (2014-01-29 18:46:36+00:00)
Title: Changed randomness to be passed as a variable.

Added randomSizes and randomFillers options
if randomSizes are false then sizes need to be in data-layout attribute as in:

2

the datalayout corresponds to the size index (can be improved be passing the exact layout in the html

$("#grid").mason({
itemSelector: ".box",
ratio: 1.5,
sizes: [
[1,1],
[1,2],
[2,1],
[2,2],
],
columns: [
[0,480,1],
[480,780,2],
[780,1080,3],

],
filler: {
itemSelector: '.fillerBox',
filler_class: 'custom_filler'
},
randomSizes:false,
randomFillers:false,

layout: 'fluid',
gutter: 5
},function(){
console.log("COMPLETE!")
});