From 7e2fba27bae5df85e56579f6219924976ee49f9e Mon Sep 17 00:00:00 2001 From: Max Value Date: Tue, 7 Apr 2026 12:13:39 +0100 Subject: [PATCH] Added details tag stay open --- commercial/groke/index.html | 2 +- commercial/le-blanc-fine-art/index.html | 2 +- commercial/live-music/index.html | 2 +- commercial/on-set/index.html | 2 +- personal/cotton-town/index.html | 2 +- personal/memorabilia/index.html | 2 +- personal/photojournalism/index.html | 2 +- personal/riders/index.html | 2 +- script.js | 16 +++++++++++++--- 9 files changed, 21 insertions(+), 11 deletions(-) diff --git a/commercial/groke/index.html b/commercial/groke/index.html index 2ab97ff..60a5dc7 100644 --- a/commercial/groke/index.html +++ b/commercial/groke/index.html @@ -26,7 +26,7 @@
  • -
    +
    Commercial
    • GROKE
    • diff --git a/commercial/le-blanc-fine-art/index.html b/commercial/le-blanc-fine-art/index.html index bd602b2..d05af75 100644 --- a/commercial/le-blanc-fine-art/index.html +++ b/commercial/le-blanc-fine-art/index.html @@ -26,7 +26,7 @@
  • -
    +
    Commercial
    • GROKE
    • diff --git a/commercial/live-music/index.html b/commercial/live-music/index.html index ce14316..5336791 100644 --- a/commercial/live-music/index.html +++ b/commercial/live-music/index.html @@ -26,7 +26,7 @@
  • -
    +
    Commercial
    • GROKE
    • diff --git a/commercial/on-set/index.html b/commercial/on-set/index.html index 0e2b467..3038256 100644 --- a/commercial/on-set/index.html +++ b/commercial/on-set/index.html @@ -26,7 +26,7 @@
  • -
    +
    Commercial
    • GROKE
    • diff --git a/personal/cotton-town/index.html b/personal/cotton-town/index.html index e9839fe..5c916fe 100644 --- a/personal/cotton-town/index.html +++ b/personal/cotton-town/index.html @@ -15,7 +15,7 @@

      Chester Robert Jones

      • -
        +
        Personal
        • Riders
        • diff --git a/personal/memorabilia/index.html b/personal/memorabilia/index.html index 50d6b48..031b6bb 100644 --- a/personal/memorabilia/index.html +++ b/personal/memorabilia/index.html @@ -15,7 +15,7 @@

          Chester Robert Jones

          • -
            +
            Personal
            • Riders
            • diff --git a/personal/photojournalism/index.html b/personal/photojournalism/index.html index a910d98..63af4d1 100644 --- a/personal/photojournalism/index.html +++ b/personal/photojournalism/index.html @@ -15,7 +15,7 @@

              Chester Robert Jones

              • -
                +
                Personal
                • Riders
                • diff --git a/personal/riders/index.html b/personal/riders/index.html index 02e59a6..3903929 100644 --- a/personal/riders/index.html +++ b/personal/riders/index.html @@ -13,7 +13,7 @@

                  Chester Robert Jones

                  • -
                    +
                    Personal
                    • Riders
                    • diff --git a/script.js b/script.js index 83d5f39..7f219b7 100644 --- a/script.js +++ b/script.js @@ -4,17 +4,21 @@ function setup () { 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; @@ -167,6 +171,7 @@ function setup () {
                    • Actual defocus on the background elements when in focus mode
                    • Added education and experiance headings to CV.. good/bad?
                    • Added text indent to any paragraph not following a heading. Aligns with standard style-guide
                    • +
                    • Added keeping the drop-downs open when clicking on a subheading

                    Still todo:

                      @@ -174,7 +179,12 @@ function setup () {
                    • Mobile view
                    • Dark mode???
                    • Annotated images
                    • +
                    • Look into image scaling mechanic
                    • Possibly closed captions on audio
                    • +
                    • Move text from inside the slideshows to below the slideshows
                    • +
                    • CV Start lower down the page
                    • +
                    • Slideshow larger when alone on a page
                    • +
                    • About me text bigger
                    `; -- 2.39.2