BraydenMoore commited on
Commit
6c0c3d9
·
1 Parent(s): 2a92843

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +4 -1
templates/index.html CHANGED
@@ -238,7 +238,7 @@
238
  lat, lon: {{ loc }}
239
  </span>
240
 
241
- <span id="show-more">more <i style="margin-bottom:20px; color:rgb(53, 53, 53);" class="fa-solid fa-caret-down"></i></span>
242
 
243
  <span class="tag"><br>a brayden moore website<br></span>thanks for visiting
244
 
@@ -433,6 +433,7 @@
433
  const infoText = document.getElementById('info-text');
434
  const additionalInfo = document.getElementById('additional-info');
435
  const showMore = document.getElementById('show-more');
 
436
 
437
  // Initial setup
438
  additionalInfo.style.height = '0';
@@ -444,9 +445,11 @@
444
  const scrollHeight = additionalInfo.scrollHeight;
445
  additionalInfo.style.height = `${scrollHeight}px`;
446
  showMore.textContent = 'less';
 
447
  } else {
448
  additionalInfo.style.height = '0';
449
  showMore.textContent = 'more';
 
450
  }
451
  });
452
  });
 
238
  lat, lon: {{ loc }}
239
  </span>
240
 
241
+ <span id="show-more">more <i style="margin-bottom:20px; color:rgb(53, 53, 53);" id="more-button" class="fa-solid fa-caret-down"></i></span>
242
 
243
  <span class="tag"><br>a brayden moore website<br></span>thanks for visiting
244
 
 
433
  const infoText = document.getElementById('info-text');
434
  const additionalInfo = document.getElementById('additional-info');
435
  const showMore = document.getElementById('show-more');
436
+ const moreButton = document.getElementById('more-button');
437
 
438
  // Initial setup
439
  additionalInfo.style.height = '0';
 
445
  const scrollHeight = additionalInfo.scrollHeight;
446
  additionalInfo.style.height = `${scrollHeight}px`;
447
  showMore.textContent = 'less';
448
+ moreButton.className = "fa-solid fa-caret-up";
449
  } else {
450
  additionalInfo.style.height = '0';
451
  showMore.textContent = 'more';
452
+ moreButton.className = "fa-solid fa-caret-down";
453
  }
454
  });
455
  });