Use existing thumbs for channel content #162
2 changed files with 1 additions and 24 deletions
9
public/vendors/masonry/masonry.pkgd.min.js
vendored
9
public/vendors/masonry/masonry.pkgd.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,4 @@
|
||||||
<script src="/vendors/masonry/masonry.pkgd.min.js"></script>
|
<div class="full">
|
||||||
|
|
||||||
<div class="full">
|
|
||||||
<h2>Trending</h2>
|
<h2>Trending</h2>
|
||||||
<p><i>The 25 most popular assets on spee.ch</i></p>
|
<p><i>The 25 most popular assets on spee.ch</i></p>
|
||||||
<div class="grid" data-masonry='{ "itemSelector": ".grid-item" }'>
|
<div class="grid" data-masonry='{ "itemSelector": ".grid-item" }'>
|
||||||
|
@ -25,15 +23,3 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
|
||||||
var elem = document.querySelector('.grid');
|
|
||||||
var msnry = new Masonry( elem, {
|
|
||||||
itemSelector: '.grid-item'
|
|
||||||
});
|
|
||||||
|
|
||||||
function resetTrendingLayout() {
|
|
||||||
msnry.layout();
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue