for (element of elements) {
let parent = element.parentNode;
+ parent.dataset.open = parent.open;
parent.open = true;
- parent.dataset.open = false;
let closedHeight = element.offsetHeight;
let openHeight = parent.offsetHeight;
- parent.style.height = `${closedHeight}px`;
+ if (parent.dataset.open === "true") {
+ parent.style.height = `${openHeight}px`;
+ } else {
+ parent.style.height = `${closedHeight}px`;
+ }
+
parent.style.overflow = "hidden";
element.addEventListener('click', function(e) {
- console.log("details");
e.preventDefault();
let parent = e.target.parentNode;
<li>Actual defocus on the background elements when in focus mode</li>
<li>Added education and experiance headings to CV.. good/bad?</li>
<li>Added text indent to any paragraph not following a heading. Aligns with standard style-guide</li>
+ <li>Added keeping the drop-downs open when clicking on a subheading</li>
</ul>
<p>Still todo:</p>
<ul>
<li>Mobile view</li>
<li>Dark mode???</li>
<li>Annotated images</li>
+ <li>Look into image scaling mechanic</li>
<li>Possibly closed captions on audio</li>
+ <li>Move text from inside the slideshows to below the slideshows</li>
+ <li>CV Start lower down the page</li>
+ <li>Slideshow larger when alone on a page</li>
+ <li>About me text bigger</li>
</ul>
</details>`;