f0ckv2/views/item.html

50 lines
2.2 KiB
HTML
Raw Normal View History

2020-04-08 00:19:20 +00:00
{{include main/header}}
2020-04-06 11:16:27 +00:00
<div class="container">
<div class="controls">
<a id="rndbtn" href="/random">Random</a>
</div>
<div class="content">
<div class="next-post">
{{if next}}
2020-04-05 16:47:09 +00:00
<a id="next" href="/{{=next}}">«</a>
2020-04-06 11:16:27 +00:00
{{else}}
2020-04-02 02:35:28 +00:00
<a id="next" href="#" style="color: #ccc !important;">«</a>
2020-04-06 11:16:27 +00:00
{{/if}}
</div>
<div class="media-object">
{{if item.mime.startsWith("video")}}
2020-04-05 16:47:09 +00:00
<div class="embed-responsive embed-responsive-16by9">
2020-04-06 11:16:27 +00:00
<video id="my-video" class="video-js embed-responsive-item" width="640" height="360" src="{{=item.dest}}"
preload="auto" autoplay controls loop data-setup="{}"></video>
2020-04-05 16:47:09 +00:00
</div>
2020-04-06 11:16:27 +00:00
{{elseif item.mime.startsWith("audio")}}
2020-04-05 16:47:09 +00:00
<div class="embed-responsive embed-responsive-16by9">
2020-04-06 11:16:27 +00:00
<audio id="my-video" class="embed-responsive-item video-js audiojs" autoplay controls loop
src="{{=item.dest}}" data-setup="{}"
poster="{{if item.thumbnail}}{{=item.thumbnail}}{{else}}/s/200.gif{{/if}}" type="audio/mp3"></audio>
2020-04-05 16:47:09 +00:00
</div>
2020-04-06 11:16:27 +00:00
{{elseif item.mime.startsWith("image")}}
<a href="{{=item.dest}}" id="elfe" target="_blank"><img id="f0ck-image" src="{{=item.dest}}" /></a>
{{else}}
2020-04-05 16:47:09 +00:00
<h1>404 - Not f0cked</h1>
2020-04-06 11:16:27 +00:00
{{/if}}
</div>
<div class="previous-post">
{{if prev}}
2020-04-05 16:47:09 +00:00
<a id="prev" href="/{{=prev}}">»</a>
2020-04-06 11:16:27 +00:00
{{else}}
2020-04-02 02:35:28 +00:00
<a id="prev" href="#" style="color: #ccc !important;">»</a>
2020-04-06 11:16:27 +00:00
{{/if}}
</div>
2020-04-02 02:35:28 +00:00
</div>
<div class="metadata">
<span class="badge badge-dark"><a href="/{{=item.id}}" class="id-link">{{=item.id}}</a></span>
2020-04-06 11:16:27 +00:00
<span class="badge badge-dark">{{=user.network}} / {{=user.channel}}</span>
2020-04-09 16:44:09 +00:00
<span class="badge badge-dark"><a id="post_source" href="{{=item.src.long}}" target="_blank">{{=item.src.short}}</a></span>
2020-04-06 11:16:27 +00:00
<span class="badge badge-dark">{{=item.size}}</span>
2020-04-09 16:44:09 +00:00
<span class="badge badge-dark"><time class="timeago" title="{{=item.timestamp}}" datetime="{{=item.timestamp}}"></time></span>
2020-04-02 02:35:28 +00:00
<span class="badge badge-dark" id="themes"></span>
</div>
2020-04-06 11:16:27 +00:00
</div>
2020-04-17 02:55:42 +00:00
{{include main/footer}}