open vods in the same tab but add a return button

This commit is contained in:
deflax 2024-09-07 23:55:57 +00:00
parent d0c569b922
commit 6a63358940
2 changed files with 6 additions and 2 deletions

View file

@ -245,7 +245,7 @@ document.addEventListener('DOMContentLoaded', () => {
<div class="gallery">
{% for thumbnail in thumbnails %}
<div class="gallery-item">
<a href="{{ url_for('video_watch_route', file_name_no_extension=thumbnail[:-4]) }}" class="image-link" target="_blank">
<a href="{{ url_for('video_watch_route', file_name_no_extension=thumbnail[:-4]) }}" class="image-link">
<img src="{{ url_for('thumb_route', file_name=thumbnail) }}" alt="{{ thumbnail }}">
<div class="overlay">
<div class="overlay-content">
@ -348,3 +348,4 @@ document.addEventListener('DOMContentLoaded', () => {
</body>
</html>

View file

@ -40,6 +40,9 @@
<video id="player" controls crossorigin playsinline poster="{{ url_for('thumb_route', file_name=thumb_file) }}">
<source src="{{ url_for('video_route', file_name=video_file) }}" type="video/mp4">
</video>
<button type="button" class="btn btn-lg btn-primary" onclick="history.back()">
<i class="fa-solid fa-arrow-left"></i> Back
</button>
</div>
</div>
<div class="col-xs-12 col-md-1">
@ -55,4 +58,4 @@
</script>
</body>
</html>
</html>