bigly-chat/views/player.ejs

40 lines
1.6 KiB
Text
Raw Normal View History

2024-09-19 05:44:24 -04:00
<%- include('header.ejs') -%>
2024-10-30 20:37:20 -04:00
<meta property="og:video" content="<%= rootUrl %>/videos/<%= videoData.id %>.webm" />
2024-10-25 22:02:14 -04:00
<div class='video-wrapper'>
2024-10-27 00:26:02 -04:00
<video class='player' src='/videos/<%= videoData.id %>.webm'></video>
2024-10-25 22:02:14 -04:00
<div class="progressbar">
2024-10-27 00:26:02 -04:00
<div class="progressbar-div"></div>
2024-09-19 18:38:24 -04:00
</div>
2024-10-25 22:02:14 -04:00
<div class='controls'>
<div class='play'><img src='/static/img/play.svg' class='dark'></div>
<div class='full'><img src='/static/img/full.svg' class='dark'></div>
</div>
</div>
2024-10-25 20:48:11 -04:00
2024-10-25 22:02:14 -04:00
<form enctype='multipart/form-data' method='POST' action='/api/form/delete_video'>
2024-10-25 22:08:35 -04:00
<div class='content form-input'>
2024-10-25 20:48:11 -04:00
<b>
2024-09-19 05:44:24 -04:00
<%= videoData.title %>
</b>
2024-10-25 20:48:11 -04:00
<p>
<%= (new Date(videoData.date)+'').split(/(GMT|UTC)/g)[0] %>
</p>
<div class='avatar'>
<img src='/pfp/<%= videoData.username %>.png' class='avatar-img'>
<div>
<b><a class='link' href="/client/user?id=<%= videoData.username %>">
2024-10-25 21:15:55 -04:00
<%= videoData.username %>
</a></b>
2024-10-25 20:48:11 -04:00
</a>
</div>
2024-09-27 03:59:23 -04:00
</div>
2024-09-22 07:35:03 -04:00
</div>
2024-10-25 22:08:35 -04:00
<pre class='content form-input'><%= videoData.desc %></pre>
<%if (username==videoData.username) { %>
<input class='form-input' type='submit' value="Delete">
<% } %>
2024-10-25 21:15:55 -04:00
<input name='target' hidden value="<%= id %>">
2024-10-25 20:48:11 -04:00
</form>
</div>
<%- include('comments.ejs') -%>
<%- include('footer.ejs') -%>