BraydenMoore commited on
Commit
fc46b7c
·
verified ·
1 Parent(s): 572f78b

Update templates/index.html

Browse files
Files changed (1) hide show
  1. 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 = "70%";
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";