pkgs/haccvoc-stage: fix thumbnail scaling

This commit is contained in:
Lukas Schulz 2021-08-31 14:48:29 +02:00 committed by schweby
parent 5df82318aa
commit cfeedf2bee

View file

@ -78,7 +78,7 @@
else {
console.log("stream is offline!");
document.getElementById("video-div").innerHTML =
"<img src='{{ site.thumbnailurl }}' width="+width+" height="+height+"/>";}
"<img src='{{ site.thumbnailurl }}' style='height: 100%'/>";}
}
try {
@ -87,7 +87,7 @@
if(exception.name == 'NetworkError'){
console.log('There was a network error. -> stream is offline');
document.getElementById("video-div").innerHTML =
"<img src='{{ site.thumbnailurl }}' width="+width+" height="+height+"/>";
"<img src='{{ site.thumbnailurl }}' style='height: 100%' />";}
}
else {
var options = {