Commit
·
5e77e40
1
Parent(s):
1afa268
Update templates/index.html
Browse files- templates/index.html +7 -7
templates/index.html
CHANGED
|
@@ -295,7 +295,7 @@
|
|
| 295 |
window.location.href = "?new=true";
|
| 296 |
} else {
|
| 297 |
console.log("Trying again");
|
| 298 |
-
setTimeout(refreshImage,
|
| 299 |
}
|
| 300 |
return;
|
| 301 |
}
|
|
@@ -315,12 +315,6 @@
|
|
| 315 |
console.error('Fetch failed:', error);
|
| 316 |
|
| 317 |
}
|
| 318 |
-
|
| 319 |
-
if (isJpeg) {
|
| 320 |
-
setTimeout(async () => {
|
| 321 |
-
await refreshImage();
|
| 322 |
-
}, 250);
|
| 323 |
-
}
|
| 324 |
}
|
| 325 |
|
| 326 |
async function init() {
|
|
@@ -335,6 +329,12 @@
|
|
| 335 |
|
| 336 |
feed.onload = function() {
|
| 337 |
isLoading = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 338 |
if (firstLoad) {
|
| 339 |
countryElement.textContent = "connecting...";
|
| 340 |
infoDiv.style.opacity = "0";
|
|
|
|
| 295 |
window.location.href = "?new=true";
|
| 296 |
} else {
|
| 297 |
console.log("Trying again");
|
| 298 |
+
setTimeout(refreshImage, 250);
|
| 299 |
}
|
| 300 |
return;
|
| 301 |
}
|
|
|
|
| 315 |
console.error('Fetch failed:', error);
|
| 316 |
|
| 317 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 318 |
}
|
| 319 |
|
| 320 |
async function init() {
|
|
|
|
| 329 |
|
| 330 |
feed.onload = function() {
|
| 331 |
isLoading = false;
|
| 332 |
+
if (isJpeg) {
|
| 333 |
+
setTimeout(async () => {
|
| 334 |
+
await refreshImage();
|
| 335 |
+
}, 250);
|
| 336 |
+
}
|
| 337 |
+
|
| 338 |
if (firstLoad) {
|
| 339 |
countryElement.textContent = "connecting...";
|
| 340 |
infoDiv.style.opacity = "0";
|