Spaces:
Running
Running
Update templates/index.html
Browse files- templates/index.html +3 -4
templates/index.html
CHANGED
@@ -365,13 +365,12 @@
|
|
365 |
country.textContent = "connecting...";
|
366 |
|
367 |
const pixelWidth = this.naturalWidth;
|
368 |
-
|
369 |
-
feed.style.width = "0px";
|
370 |
|
371 |
setTimeout(() => {
|
372 |
locationName.textContent = "{{ name|safe }}";
|
373 |
-
feed.style.width = pixelWidth + "px";
|
374 |
-
feed.style.height = "
|
375 |
feed.style.opacity = "1";
|
376 |
infoDiv.style.height = "100%";
|
377 |
infoText.style.opacity = "1";
|
|
|
365 |
country.textContent = "connecting...";
|
366 |
|
367 |
const pixelWidth = this.naturalWidth;
|
368 |
+
const pixelHeight = this.naturalHeight;
|
|
|
369 |
|
370 |
setTimeout(() => {
|
371 |
locationName.textContent = "{{ name|safe }}";
|
372 |
+
feed.style.width = pixelWidth * 0.7 + "px";
|
373 |
+
feed.style.height = pixelHeight * 0.7 + "px";
|
374 |
feed.style.opacity = "1";
|
375 |
infoDiv.style.height = "100%";
|
376 |
infoText.style.opacity = "1";
|