|
|
@ -77,16 +77,7 @@ $(function(){ |
|
|
|
layoutMode: 'masonry' |
|
|
|
layoutMode: 'masonry' |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% include random-sizes.js %} |
|
|
|
// hacky way of adding random size classes |
|
|
|
|
|
|
|
$container.find('.element').each(function(){ |
|
|
|
|
|
|
|
if ( Math.random() > 0.6 ) { |
|
|
|
|
|
|
|
$(this).addClass('width2'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if ( Math.random() > 0.6 ) { |
|
|
|
|
|
|
|
$(this).addClass('height2'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var setupOptions = $.extend( defaultOptions, { |
|
|
|
var setupOptions = $.extend( defaultOptions, { |
|
|
|
itemSelector : '.element', |
|
|
|
itemSelector : '.element', |
|
|
@ -184,7 +175,6 @@ $(function(){ |
|
|
|
// trigger hashchange to capture any hash data on init |
|
|
|
// trigger hashchange to capture any hash data on init |
|
|
|
.trigger('hashchange'); |
|
|
|
.trigger('hashchange'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|