Browse Source

added "controls" to audio and video tags

master
mb 2 years ago
parent
commit
ba2654cc8a
  1. 4
      LogBot/template.html

4
LogBot/template.html

@ -21,9 +21,9 @@
{% elif 'application' in db[num]['media']['type'] %} {% elif 'application' in db[num]['media']['type'] %}
<iframe src="{{ db[num]['media']['path'] }}" loading="lazy"></iframe> <iframe src="{{ db[num]['media']['path'] }}" loading="lazy"></iframe>
{% elif 'audio' in db[num]['media']['type'] %} {% elif 'audio' in db[num]['media']['type'] %}
<audio src="{{ db[num]['media']['path'] }}" preload="none"></audio> <audio src="{{ db[num]['media']['path'] }}" preload="none" controls></audio>
{% elif 'video' in db[num]['media']['type'] %} {% elif 'video' in db[num]['media']['type'] %}
<video src="{{ db[num]['media']['path'] }}" preload="none"></video> <video src="{{ db[num]['media']['path'] }}" preload="none" controls></video>
{% endif %} {% endif %}
</p> </p>
{% else %} {% else %}

Loading…
Cancel
Save