fix bug with 2 captions when video caption has to be outside <video> tag

This commit is contained in:
2021-09-12 18:28:37 +10:00
parent c503bd71ac
commit f71e3d6144

View File

@@ -127,13 +127,14 @@
<source src="http://mara.ddp.net:5000/{{objs[current].FullPathOnFS()}}" type="video/mp4">
Your browser does not support the video tag.
</video>
<figcaption class="figure-caption text-center text-wrap text-break"><span id="fname">{{objs[current].name}}</span></figcaption>
<figcaption id="vid-caption" class="figure-caption text-center text-wrap text-break"><span id="fname">{{objs[current].name}}</span></figcaption>
</div>
<script>
window.addEventListener('resize', ResizeVideo, false);
ResizeVideo()
{% if objs[current].type.name != "Video" %}
$('#video').attr('style', 'display:none')
$('#vid-caption').attr('style', 'display:none')
{% endif %}
</script>