Spaces:
Running
Running
Commit
·
3361d0f
1
Parent(s):
2e9aed5
Update templates/index.html
Browse files- templates/index.html +7 -3
templates/index.html
CHANGED
@@ -181,11 +181,13 @@
|
|
181 |
|
182 |
|
183 |
<script>
|
184 |
-
let
|
185 |
-
|
186 |
document.addEventListener("DOMContentLoaded", function() {
|
187 |
const feed = document.getElementById("feed");
|
188 |
-
feed.src =
|
|
|
|
|
189 |
feed.style.opacity = "0.5";
|
190 |
|
191 |
const country = document.getElementById("country");
|
@@ -212,6 +214,8 @@
|
|
212 |
img.onload = function() {
|
213 |
old = newUrl;
|
214 |
feed.src = this.src;
|
|
|
|
|
215 |
feed.style.opacity = "1";
|
216 |
setTimeout(refreshImage, 1000);
|
217 |
country.textContent = "{{ country }}"
|
|
|
181 |
|
182 |
|
183 |
<script>
|
184 |
+
let loadingGif = "{{ url_for('static', filename='loading.gif') }}";
|
185 |
+
let currentFeed;
|
186 |
document.addEventListener("DOMContentLoaded", function() {
|
187 |
const feed = document.getElementById("feed");
|
188 |
+
feed.src = loadingGif;
|
189 |
+
feed.height = "225px";
|
190 |
+
feed.width = "225px";
|
191 |
feed.style.opacity = "0.5";
|
192 |
|
193 |
const country = document.getElementById("country");
|
|
|
214 |
img.onload = function() {
|
215 |
old = newUrl;
|
216 |
feed.src = this.src;
|
217 |
+
feed.height = "auto";
|
218 |
+
feed.width = "100%";
|
219 |
feed.style.opacity = "1";
|
220 |
setTimeout(refreshImage, 1000);
|
221 |
country.textContent = "{{ country }}"
|