BraydenMoore commited on
Commit
72f6a3f
·
1 Parent(s): c22c38a

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +3 -0
templates/index.html CHANGED
@@ -181,6 +181,8 @@
181
 
182
 
183
  <script>
 
 
184
  document.addEventListener("DOMContentLoaded", function() {
185
  const feed = document.getElementById("feed");
186
  feed.style.opacity = "0.5";
@@ -207,6 +209,7 @@
207
 
208
  const img = new Image();
209
  img.onload = function() {
 
210
  feed.src = this.src;
211
  feed.style.opacity = "1";
212
  setTimeout(refreshImage, 1000);
 
181
 
182
 
183
  <script>
184
+ let oldUrl = "{{ url_for('static', filename='loading.gif') }}";
185
+
186
  document.addEventListener("DOMContentLoaded", function() {
187
  const feed = document.getElementById("feed");
188
  feed.style.opacity = "0.5";
 
209
 
210
  const img = new Image();
211
  img.onload = function() {
212
+ old = newUrl;
213
  feed.src = this.src;
214
  feed.style.opacity = "1";
215
  setTimeout(refreshImage, 1000);