2017-06-26 09:01:55 +00:00
|
|
|
{{#preview}}
|
2017-07-12 06:55:41 +00:00
|
|
|
<div class="toggle-content toggle-type-{{type}}{{#if shown}} show{{/if}}">
|
2017-06-26 09:01:55 +00:00
|
|
|
{{#equal type "image"}}
|
2017-07-12 06:55:41 +00:00
|
|
|
<a class="toggle-thumbnail" href="{{link}}" target="_blank" rel="noopener">
|
2017-12-29 10:06:18 +00:00
|
|
|
<img src="{{thumb}}" decoding="async" alt="">
|
2017-07-12 06:55:41 +00:00
|
|
|
</a>
|
2017-12-09 23:25:01 +00:00
|
|
|
{{/equal}}
|
|
|
|
{{#equal type "audio"}}
|
|
|
|
<audio controls preload="metadata">
|
|
|
|
<source src="{{link}}" type="{{res}}">
|
|
|
|
Your browser does not support the audio element.
|
|
|
|
</audio>
|
|
|
|
{{/equal}}
|
|
|
|
{{#equal type "video"}}
|
|
|
|
<video width="320" height="240" preload="metadata" controls>
|
|
|
|
<source src="{{link}}" type="{{res}}">
|
|
|
|
Your browser does not support the video element.
|
|
|
|
</video>
|
|
|
|
{{/equal}}
|
|
|
|
{{#equal type "link"}}
|
|
|
|
{{#if thumb}}
|
|
|
|
<a class="toggle-thumbnail" href="{{link}}" target="_blank" rel="noopener">
|
2017-12-29 10:06:18 +00:00
|
|
|
<img src="{{thumb}}" decoding="async" alt="" class="thumb">
|
2017-07-12 06:55:41 +00:00
|
|
|
</a>
|
2017-12-09 23:25:01 +00:00
|
|
|
{{/if}}
|
|
|
|
<a class="toggle-text" href="{{link}}" target="_blank" rel="noopener">
|
|
|
|
<div class="head" title="{{head}}">{{head}}</div>
|
|
|
|
<div class="body" title="{{body}}">{{body}}</div>
|
|
|
|
</a>
|
2017-06-26 09:01:55 +00:00
|
|
|
{{/equal}}
|
2017-07-12 06:55:41 +00:00
|
|
|
</div>
|
2017-06-26 09:01:55 +00:00
|
|
|
{{/preview}}
|