BraydenMoore
commited on
Commit
•
e9506d8
1
Parent(s):
07e485a
Update templates/index.html
Browse files- templates/index.html +5 -5
templates/index.html
CHANGED
@@ -292,8 +292,7 @@
|
|
292 |
}
|
293 |
}
|
294 |
|
295 |
-
|
296 |
-
img.onload = async function() {
|
297 |
if (firstLoad) {
|
298 |
countryElement.textContent = "connecting...";
|
299 |
infoDiv.style.opacity = "0";
|
@@ -313,7 +312,7 @@
|
|
313 |
await refreshImage();
|
314 |
};
|
315 |
|
316 |
-
|
317 |
console.error('Error loading image', this.src);
|
318 |
const urlParams = new URLSearchParams(window.location.search);
|
319 |
|
@@ -333,11 +332,12 @@
|
|
333 |
}
|
334 |
};
|
335 |
|
336 |
-
|
337 |
-
console.log('Feed load
|
338 |
});
|
339 |
|
340 |
|
|
|
341 |
// Time count
|
342 |
document.addEventListener("DOMContentLoaded", function() {
|
343 |
const timezone = "{{ timezone }}";
|
|
|
292 |
}
|
293 |
}
|
294 |
|
295 |
+
feed.onload = async function() {
|
|
|
296 |
if (firstLoad) {
|
297 |
countryElement.textContent = "connecting...";
|
298 |
infoDiv.style.opacity = "0";
|
|
|
312 |
await refreshImage();
|
313 |
};
|
314 |
|
315 |
+
feed.onerror = function() {
|
316 |
console.error('Error loading image', this.src);
|
317 |
const urlParams = new URLSearchParams(window.location.search);
|
318 |
|
|
|
332 |
}
|
333 |
};
|
334 |
|
335 |
+
refreshImage();
|
336 |
+
console.log('Feed load initiated');
|
337 |
});
|
338 |
|
339 |
|
340 |
+
|
341 |
// Time count
|
342 |
document.addEventListener("DOMContentLoaded", function() {
|
343 |
const timezone = "{{ timezone }}";
|