completed

This commit is contained in:
Ske087
2025-01-25 20:03:47 +02:00
parent 014a47594e
commit fda07c701d
9 changed files with 163 additions and 42 deletions

View File

@@ -11,9 +11,11 @@
align-items: center;
background-color: black;
}
img, video {
img, video, embed, object {
max-width: 100%;
max-height: 100%;
width: 100%;
height: 100%;
display: none;
}
.active {
@@ -29,6 +31,10 @@
<source src="{{ url_for('static', filename='uploads/' ~ item.file_name) }}" type="video/mp4">
Your browser does not support the video tag.
</video>
{% elif item.file_name.endswith('.pdf') %}
<object data="{{ url_for('static', filename='uploads/' ~ item.file_name) }}" type="application/pdf" class="content-item" data-duration="{{ item.duration }}">
<embed src="{{ url_for('static', filename='uploads/' ~ item.file_name) }}" type="application/pdf" class="content-item" data-duration="{{ item.duration }}">
</object>
{% else %}
<img src="{{ url_for('static', filename='uploads/' ~ item.file_name) }}" alt="Content Image" class="content-item" data-duration="{{ item.duration }}">
{% endif %}