BraydenMoore commited on
Commit
b3bed5a
1 Parent(s): e815ac8

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +14 -8
templates/index.html CHANGED
@@ -162,11 +162,13 @@
162
  cursor: pointer;
163
  }
164
  #additional-info {
165
- display: none;
166
- transition: 0.3s ease;
 
 
 
 
167
  }
168
-
169
-
170
 
171
 
172
  @media only screen and (orientation: portrait) {
@@ -437,14 +439,18 @@
437
  const additionalInfo = document.getElementById('additional-info');
438
  const showMore = document.getElementById('show-more');
439
 
440
- additionalInfo.style.display = 'none';
441
-
442
  infoText.addEventListener('click', function() {
443
- additionalInfo.style.display = (additionalInfo.style.display === 'none') ? 'block' : 'none';
444
- showMore.style.display = (additionalInfo.style.display === 'none') ? 'inline' : 'none';
 
 
 
 
 
445
  });
446
  });
447
 
 
448
 
449
  </script>
450
  </body>
 
162
  cursor: pointer;
163
  }
164
  #additional-info {
165
+ max-height: 0;
166
+ overflow: hidden;
167
+ transition: max-height 0.3s ease;
168
+ }
169
+ #additional-info.expanded {
170
+ max-height: 100;
171
  }
 
 
172
 
173
 
174
  @media only screen and (orientation: portrait) {
 
439
  const additionalInfo = document.getElementById('additional-info');
440
  const showMore = document.getElementById('show-more');
441
 
 
 
442
  infoText.addEventListener('click', function() {
443
+ if (additionalInfo.classList.contains('expanded')) {
444
+ additionalInfo.classList.remove('expanded');
445
+ showMore.style.display = 'inline';
446
+ } else {
447
+ additionalInfo.classList.add('expanded');
448
+ showMore.style.display = 'none';
449
+ }
450
  });
451
  });
452
 
453
+
454
 
455
  </script>
456
  </body>