2017-07-21 22:40:01 +02:00
|
|
|
<script src="/vendors/masonry/masonry.pkgd.min.js"></script>
|
|
|
|
|
2017-07-12 01:55:03 +02:00
|
|
|
<div class="full">
|
|
|
|
<h2>Trending</h2>
|
2017-08-25 01:09:04 +02:00
|
|
|
<p><i>The 25 most popular assets on spee.ch</i></p>
|
2017-07-21 22:40:01 +02:00
|
|
|
<div class="grid" data-masonry='{ "itemSelector": ".grid-item" }'>
|
|
|
|
{{#each trendingAssets}}
|
2017-08-25 01:09:04 +02:00
|
|
|
<div class="all-claims-item">
|
2017-08-02 03:58:13 +02:00
|
|
|
<a href="/{{this.claimId}}/{{this.name}}">
|
2017-08-25 01:09:04 +02:00
|
|
|
{{#ifConditional this.fileType '===' 'video/mp4'}}
|
|
|
|
<img class="all-claims-asset" src="/assets/img/content-freedom-large.png"/>
|
|
|
|
{{else}}
|
|
|
|
<img class="all-claims-asset" src="/{{this.claimId}}/{{this.name}}.ext" />
|
|
|
|
{{/ifConditional}}
|
2017-07-20 19:15:20 +02:00
|
|
|
</a>
|
2017-08-25 01:09:04 +02:00
|
|
|
<div class="all-claims-details">
|
|
|
|
<ul style="list-style-type:none">
|
|
|
|
<li><bold>{{this.name}}</bold></li>
|
|
|
|
<li><i>Claim Id: {{this.claimId}}</i></li>
|
|
|
|
<li><strong>{{this.title}}</strong></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-07-20 19:15:20 +02:00
|
|
|
{{/each}}
|
2017-07-21 22:40:01 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-07-28 05:04:22 +02:00
|
|
|
|
2017-07-21 22:40:01 +02:00
|
|
|
<script>
|
|
|
|
var elem = document.querySelector('.grid');
|
|
|
|
var msnry = new Masonry( elem, {
|
|
|
|
itemSelector: '.grid-item'
|
|
|
|
});
|
2017-07-28 05:04:22 +02:00
|
|
|
|
2017-07-28 23:39:39 +02:00
|
|
|
function resetTrendingLayout() {
|
2017-07-28 05:04:22 +02:00
|
|
|
msnry.layout();
|
2017-07-21 22:40:01 +02:00
|
|
|
}
|
2017-07-28 05:04:22 +02:00
|
|
|
</script>
|
|
|
|
|