f0ckv2/views/item.html

74 lines
3.1 KiB
HTML
Raw Normal View History

2020-04-02 02:35:28 +00:00
<!doctype f0ck>
<html>
<head>
2020-04-06 11:16:27 +00:00
<title>{{=item.id}} - f0ck.me</title>
2020-04-02 02:35:28 +00:00
<link rel="stylesheet" type="text/css" href="./s/css/video-js.min.css" />
<link rel="stylesheet" type="text/css" href="./s/css/vsg-skin.css" />
<link rel="stylesheet" type="text/css" href="./s/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="./s/css/f0ck-custom.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="./s/img/favicon.png" />
<meta property="og:site_name" content="f0ck.me" />
2020-04-06 11:16:27 +00:00
<meta property="og:description" content="f0cked by {{=user.name}}" />
<meta name="Description" content="f0cked by {{=user.name}}" />
<meta property="og:image" content="{{=item.thumbnail}}" />
2020-04-02 02:35:28 +00:00
<meta charset="utf-8" />
</head>
<body>
2020-04-06 20:15:26 +00:00
{{include snippets/navbar}}
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">
2020-04-06 11:16:27 +00:00
<span class="badge badge-dark"><a href="/{{=item.id}}" class="id-link">{{=item.id}} </a> by {{=user.name}}</span>
<span class="badge badge-dark">{{=user.network}} / {{=user.channel}}</span>
<span class="badge badge-dark"><a id="post_source" href="{{=item.src.long}}"
target="_blank">{{=item.src.short}}</a></span>
<span class="badge badge-dark">{{=item.size}}</span>
<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-02 02:35:28 +00:00
<script src="./s/js/theme.js"></script>
<script src="./s/js/video.min.js"></script>
<script src="./s/js/videojs.persistvolume.js"></script>
2020-04-05 16:47:09 +00:00
<script src="./s/js/item.js"></script>
2020-04-02 02:35:28 +00:00
</body>
</html>