fix bug with 2 captions when video caption has to be outside <video> tag
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user