easier to tell youre trying to watch a video that firefox cant deal with

This commit is contained in:
ed 2021-07-11 06:21:25 +02:00
parent 55e0209901
commit a270019147
2 changed files with 5 additions and 0 deletions

View file

@ -443,6 +443,8 @@ window.baguetteBox = (function () {
var is_vid = re_v.test(imageSrc),
image = mknod(is_vid ? 'video' : 'img');
clmod(imageContainer, 'vid', is_vid);
image.addEventListener(is_vid ? 'loadedmetadata' : 'load', function () {
// Remove loader element
var spinner = document.querySelector('#baguette-img-' + index + ' .baguetteBox-spinner');

View file

@ -1184,6 +1184,9 @@ html.light #tree::-webkit-scrollbar {
vertical-align: middle;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}
#baguetteBox-overlay .full-image video {
background: #333;
}
#baguetteBox-overlay .full-image figcaption {
display: block;
position: absolute;