Spaces:
Running
Running
Commit
·
1eb8e4a
1
Parent(s):
504740e
Update templates/index.html
Browse files- templates/index.html +4 -4
templates/index.html
CHANGED
@@ -321,19 +321,19 @@
|
|
321 |
};
|
322 |
|
323 |
img.onerror = function() {
|
324 |
-
feed.style.width = "80px";
|
325 |
-
feed.style.height = "50px";
|
326 |
-
feed.src = loadingGif;
|
327 |
|
328 |
const urlParams = new URLSearchParams(window.location.search);
|
329 |
const countryElement = document.getElementById("country");
|
330 |
|
331 |
if (urlParams.get('id')) {
|
|
|
|
|
|
|
332 |
feed.style.opacity = "0.15";
|
333 |
countryElement.textContent = "couldn't connect.";
|
334 |
}
|
335 |
else {
|
336 |
-
|
337 |
}
|
338 |
};
|
339 |
|
|
|
321 |
};
|
322 |
|
323 |
img.onerror = function() {
|
|
|
|
|
|
|
324 |
|
325 |
const urlParams = new URLSearchParams(window.location.search);
|
326 |
const countryElement = document.getElementById("country");
|
327 |
|
328 |
if (urlParams.get('id')) {
|
329 |
+
feed.style.width = "80px";
|
330 |
+
feed.style.height = "50px";
|
331 |
+
feed.src = loadingGif;
|
332 |
feed.style.opacity = "0.15";
|
333 |
countryElement.textContent = "couldn't connect.";
|
334 |
}
|
335 |
else {
|
336 |
+
setTimeout(refreshImage, 1000);
|
337 |
}
|
338 |
};
|
339 |
|