Spaces:
Running
Running
Commit
·
172c64c
1
Parent(s):
63034b2
Update templates/index.html
Browse files- templates/index.html +2 -2
templates/index.html
CHANGED
@@ -300,6 +300,7 @@
|
|
300 |
|
301 |
const img = new Image();
|
302 |
img.onload = function() {
|
|
|
303 |
if (firstLoad) {
|
304 |
infoDiv.style.opacity = "0";
|
305 |
}
|
@@ -307,8 +308,8 @@
|
|
307 |
old = newUrl;
|
308 |
setTimeout(() => {
|
309 |
feed.src = this.src;
|
310 |
-
countryElement.textContent = "connecting...";
|
311 |
locationName.textContent = "{{ name|safe }}";
|
|
|
312 |
feed.style.width = "100%";
|
313 |
feed.style.height = "70%";
|
314 |
feed.style.opacity = "1";
|
@@ -319,7 +320,6 @@
|
|
319 |
infoText.style.opacity = "1";
|
320 |
|
321 |
setTimeout(refreshImage, 250);
|
322 |
-
country.textContent = "{{ country }}"
|
323 |
};
|
324 |
|
325 |
img.onerror = function() {
|
|
|
300 |
|
301 |
const img = new Image();
|
302 |
img.onload = function() {
|
303 |
+
countryElement.textContent = "connecting...";
|
304 |
if (firstLoad) {
|
305 |
infoDiv.style.opacity = "0";
|
306 |
}
|
|
|
308 |
old = newUrl;
|
309 |
setTimeout(() => {
|
310 |
feed.src = this.src;
|
|
|
311 |
locationName.textContent = "{{ name|safe }}";
|
312 |
+
countryElement.textContent = "{{ country }}";
|
313 |
feed.style.width = "100%";
|
314 |
feed.style.height = "70%";
|
315 |
feed.style.opacity = "1";
|
|
|
320 |
infoText.style.opacity = "1";
|
321 |
|
322 |
setTimeout(refreshImage, 250);
|
|
|
323 |
};
|
324 |
|
325 |
img.onerror = function() {
|