Support video files in viewer

This commit is contained in:
2021-10-03 15:49:58 +02:00
parent 86a9e55b43
commit 785e4f57c4
4 changed files with 18 additions and 5 deletions

View File

@@ -15,7 +15,13 @@
</tr>
</table>
<hr />
{#if currpage < totpage}<a href="{nexturi}">{/if}<img style="position: absolute; left: 50%; transform: translate(-50%, 0);" src="{image}" />{#if currpage < totpage}</a>{/if}
{#if currpage < totpage}<a href="{nexturi}">{/if}
{#if image != null}
<img style="position: absolute; left: 50%; transform: translate(-50%, 0);" src="{image}" />
{#else if video != null}
<video src="{video}" controls style="width: 100%"></video>
{/if}
{#if currpage < totpage}</a>{/if}
<hr />
</body>
</html>