BraydenMoore commited on
Commit
60731a9
·
1 Parent(s): ad998a1

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +5 -3
templates/index.html CHANGED
@@ -227,11 +227,10 @@
227
  </div>
228
 
229
  <p id="info-text" style="color:rgb(53, 53, 53); font-family: 'Helvetica'; font-weight: 50;">
230
-
231
  time: <span id="time"></span><br>
232
- <span id="show-more">...</span>
233
  <span id="additional-info">
234
- owner: {{ owner }}<br>
235
  ip: {{ ip }}<br>
236
  lat, lon: {{ loc }}
237
  <br><br>
@@ -428,13 +427,16 @@
428
  document.addEventListener('DOMContentLoaded', function() {
429
  const infoText = document.getElementById('info-text');
430
  const additionalInfo = document.getElementById('additional-info');
 
431
 
432
  additionalInfo.style.display = 'none';
433
 
434
  infoText.addEventListener('click', function() {
435
  additionalInfo.style.display = (additionalInfo.style.display === 'none') ? 'block' : 'none';
 
436
  });
437
  });
 
438
 
439
  </script>
440
  </body>
 
227
  </div>
228
 
229
  <p id="info-text" style="color:rgb(53, 53, 53); font-family: 'Helvetica'; font-weight: 50;">
230
+ owner: {{ owner }}<br>
231
  time: <span id="time"></span><br>
232
+ <span id="show-more">...</span><br>
233
  <span id="additional-info">
 
234
  ip: {{ ip }}<br>
235
  lat, lon: {{ loc }}
236
  <br><br>
 
427
  document.addEventListener('DOMContentLoaded', function() {
428
  const infoText = document.getElementById('info-text');
429
  const additionalInfo = document.getElementById('additional-info');
430
+ const showMore = document.getElementById('show-more');
431
 
432
  additionalInfo.style.display = 'none';
433
 
434
  infoText.addEventListener('click', function() {
435
  additionalInfo.style.display = (additionalInfo.style.display === 'none') ? 'block' : 'none';
436
+ showMore.style.display = (additionalInfo.style.display === 'none') ? 'inline' : 'none';
437
  });
438
  });
439
+
440
 
441
  </script>
442
  </body>