bigly-chat/views/player.ejs
2024-10-30 20:37:20 -04:00

40 lines
No EOL
1.6 KiB
Text

<%- include('header.ejs') -%>
<meta property="og:video" content="<%= rootUrl %>/videos/<%= videoData.id %>.webm" />
<div class='video-wrapper'>
<video class='player' src='/videos/<%= videoData.id %>.webm'></video>
<div class="progressbar">
<div class="progressbar-div"></div>
</div>
<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>
<form enctype='multipart/form-data' method='POST' action='/api/form/delete_video'>
<div class='content form-input'>
<b>
<%= videoData.title %>
</b>
<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 %>">
<%= videoData.username %>
</a></b>
</a>
</div>
</div>
</div>
<pre class='content form-input'><%= videoData.desc %></pre>
<%if (username==videoData.username) { %>
<input class='form-input' type='submit' value="Delete">
<% } %>
<input name='target' hidden value="<%= id %>">
</form>
</div>
<%- include('comments.ejs') -%>
<%- include('footer.ejs') -%>