Commit
·
8bfcef4
1
Parent(s):
0b3a3ad
Update templates/index.html
Browse files- templates/index.html +14 -12
templates/index.html
CHANGED
|
@@ -266,6 +266,20 @@
|
|
| 266 |
<script>
|
| 267 |
|
| 268 |
// init
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 269 |
async function init() {
|
| 270 |
feed.style.width = "80px";
|
| 271 |
feed.style.height = "50px";
|
|
@@ -324,19 +338,7 @@
|
|
| 324 |
}
|
| 325 |
|
| 326 |
// Handle feed load and refresh
|
| 327 |
-
let controller;
|
| 328 |
document.addEventListener("DOMContentLoaded", function() {
|
| 329 |
-
const feed = document.getElementById("feed");
|
| 330 |
-
const infoDiv = document.getElementById("info");
|
| 331 |
-
const infoText = document.getElementById("info-text");
|
| 332 |
-
const locationName = document.getElementById("location-name");
|
| 333 |
-
const countryElement = document.getElementById("country");
|
| 334 |
-
let firstLoad = true;
|
| 335 |
-
let isJpeg = false;
|
| 336 |
-
let isLoading = false;
|
| 337 |
-
|
| 338 |
-
const loadingGif = "{{ url_for('static', filename='eye.gif') }}";
|
| 339 |
-
const newUrl = decodeURIComponent("{{ url|safe }}");
|
| 340 |
|
| 341 |
async function refreshImage() {
|
| 342 |
if(controller) {
|
|
|
|
| 266 |
<script>
|
| 267 |
|
| 268 |
// init
|
| 269 |
+
|
| 270 |
+
const feed = document.getElementById("feed");
|
| 271 |
+
const infoDiv = document.getElementById("info");
|
| 272 |
+
const infoText = document.getElementById("info-text");
|
| 273 |
+
const locationName = document.getElementById("location-name");
|
| 274 |
+
const countryElement = document.getElementById("country");
|
| 275 |
+
let firstLoad = true;
|
| 276 |
+
let isJpeg = false;
|
| 277 |
+
let isLoading = false;
|
| 278 |
+
let controller;
|
| 279 |
+
|
| 280 |
+
const loadingGif = "{{ url_for('static', filename='eye.gif') }}";
|
| 281 |
+
const newUrl = decodeURIComponent("{{ url|safe }}");
|
| 282 |
+
|
| 283 |
async function init() {
|
| 284 |
feed.style.width = "80px";
|
| 285 |
feed.style.height = "50px";
|
|
|
|
| 338 |
}
|
| 339 |
|
| 340 |
// Handle feed load and refresh
|
|
|
|
| 341 |
document.addEventListener("DOMContentLoaded", function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 342 |
|
| 343 |
async function refreshImage() {
|
| 344 |
if(controller) {
|