BraydenMoore commited on
Commit
de9b052
·
1 Parent(s): ac758b2

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +4 -4
templates/index.html CHANGED
@@ -162,7 +162,7 @@
162
  cursor: pointer;
163
  }
164
  #additional-info {
165
- display: none;
166
  transition: 0.3s ease;
167
  }
168
 
@@ -441,11 +441,11 @@
441
  const additionalInfo = document.getElementById('additional-info');
442
  const showMore = document.getElementById('show-more');
443
 
444
- additionalInfo.style.display = 'none';
445
 
446
  infoText.addEventListener('click', function() {
447
- additionalInfo.style.display = (additionalInfo.style.display === 'none') ? 'block' : 'none';
448
- showMore.style.display = (additionalInfo.style.display === 'none') ? 'inline' : 'none';
449
  });
450
  });
451
 
 
162
  cursor: pointer;
163
  }
164
  #additional-info {
165
+ height: 0px;
166
  transition: 0.3s ease;
167
  }
168
 
 
441
  const additionalInfo = document.getElementById('additional-info');
442
  const showMore = document.getElementById('show-more');
443
 
444
+ additionalInfo.style.height = '0px';
445
 
446
  infoText.addEventListener('click', function() {
447
+ additionalInfo.style.display = (additionalInfo.style.height === '0px') ? 'auto' : '0px';
448
+ showMore.style.display = (additionalInfo.style.height === '0px') ? 'inline' : 'none';
449
  });
450
  });
451