BraydenMoore commited on
Commit
c7c01be
1 Parent(s): b44051a

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +5 -1
templates/index.html CHANGED
@@ -233,6 +233,7 @@
233
  // Handle feed load and refresh
234
  let loadingGif = "{{ url_for('static', filename='eye.gif') }}";
235
  let currentFeed;
 
236
  document.addEventListener("DOMContentLoaded", function() {
237
  const feed = document.getElementById("feed");
238
  feed.style.width = "80px";
@@ -265,7 +266,10 @@
265
 
266
  const img = new Image();
267
  img.onload = function() {
268
- infoDiv.style.opacity = "0";
 
 
 
269
  old = newUrl;
270
  setTimeout(() => {
271
  feed.src = this.src;
 
233
  // Handle feed load and refresh
234
  let loadingGif = "{{ url_for('static', filename='eye.gif') }}";
235
  let currentFeed;
236
+ let firstLoad = true;
237
  document.addEventListener("DOMContentLoaded", function() {
238
  const feed = document.getElementById("feed");
239
  feed.style.width = "80px";
 
266
 
267
  const img = new Image();
268
  img.onload = function() {
269
+ if (firstLoad) {
270
+ infoDiv.style.opacity = "0";
271
+ }
272
+ firstLoad = false;
273
  old = newUrl;
274
  setTimeout(() => {
275
  feed.src = this.src;