From: Max Value Date: Sun, 10 May 2026 13:30:08 +0000 (+0100) Subject: Final commit before rewrite X-Git-Url: https://git.ozva.co.uk/?a=commitdiff_plain;h=962bff7c5da4bb77ca44bd9ed9f80d5b78bfb93b;p=chester Final commit before rewrite --- diff --git a/about/index.html b/about/index.html index 0abfd04..5160aa2 100644 --- a/about/index.html +++ b/about/index.html @@ -19,7 +19,7 @@
  • -
    +
    Personal
  • -
    +
    Commercial
    • GROKE
    • diff --git a/commercial/groke/index.html b/commercial/groke/index.html index e841e24..80a8675 100644 --- a/commercial/groke/index.html +++ b/commercial/groke/index.html @@ -19,7 +19,7 @@
    • -
      +
      Personal
    • -
      +
      Commercial
      • GROKE
      • @@ -53,64 +53,63 @@
        -
        +
        + src="/media/photos_3840/groke21.jpg" /> + src="/media/photos_3840/groke13.jpg" /> + src="/media/photos_3840/groke6.jpg" /> + src="/media/photos_3840/groke24.jpg" /> + src="/media/photos_3840/groke23.jpg" /> + src="/media/photos_3840/groke14.jpg" /> + src="/media/photos_3840/groke20.jpg" /> + src="/media/photos_3840/groke25.jpg" /> + src="/media/photos_3840/groke28.jpg" /> + src="/media/photos_3840/groke3.jpg" /> + src="/media/photos_3840/groke19.jpg" /> + src="/media/photos_3840/groke17.jpg" /> + src="/media/photos_3840/groke27.jpg" /> + src="/media/photos_3840/groke2.jpg" /> + src="/media/photos_3840/groke7.jpg" /> + src="/media/photos_3840/groke15.jpg" /> + src="/media/photos_3840/groke11.jpg" /> + src="/media/photos_3840/groke10.jpg" /> + src="/media/photos_3840/groke26.jpg" /> + src="/media/photos_3840/groke1.jpg" /> + src="/media/photos_3840/groke16.jpg" /> + src="/media/photos_3840/groke18.jpg" /> + src="/media/photos_3840/groke12.jpg" /> + src="/media/photos_3840/groke29.jpg" /> + src="/media/photos_3840/groke8.jpg" /> + src="/media/photos_3840/groke5.jpg" /> + src="/media/photos_3840/groke4.jpg" /> + src="/media/photos_3840/groke9.jpg" />
        diff --git a/commercial/le-blanc-fine-art/index.html b/commercial/le-blanc-fine-art/index.html index 54d7b45..fd43256 100644 --- a/commercial/le-blanc-fine-art/index.html +++ b/commercial/le-blanc-fine-art/index.html @@ -19,7 +19,7 @@
      • -
        +
        Personal
      • -
        +
        Commercial
        • GROKE
        • diff --git a/commercial/live-music/index.html b/commercial/live-music/index.html index e8357bc..91fc216 100644 --- a/commercial/live-music/index.html +++ b/commercial/live-music/index.html @@ -19,7 +19,7 @@
        • -
          +
          Personal
        • -
          +
          Commercial
          • GROKE
          • @@ -54,32 +54,6 @@
            - - - - - - - - - - - - - + + + + + + + + + + + + +
            diff --git a/commercial/on-set/index.html b/commercial/on-set/index.html index 66dfc74..be60acd 100644 --- a/commercial/on-set/index.html +++ b/commercial/on-set/index.html @@ -19,7 +19,7 @@
          • -
            +
            Personal
          • -
            +
            Commercial
            • GROKE
            • diff --git a/contacts/index.html b/contacts/index.html index 010af74..576ca8d 100644 --- a/contacts/index.html +++ b/contacts/index.html @@ -19,7 +19,7 @@
            • -
              +
              Personal
            • -
              +
              Commercial
              • GROKE
              • diff --git a/cv/index.html b/cv/index.html index 10e9d7f..92636ab 100644 --- a/cv/index.html +++ b/cv/index.html @@ -18,7 +18,7 @@
              • -
                +
                Personal
              • -
                +
                Commercial
                • GROKE
                • diff --git a/index.html b/index.html index c10812b..61aa1f9 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,7 @@
                • -
                  +
                  Personal
                • -
                  +
                  Commercial
                  • GROKE
                  • @@ -55,27 +55,36 @@
                    + src="/media/photos_3840/riders-haseen.jpg" /> + + + + src="/media/photos_3840/photojournalism17.jpg" /> + src="/media/photos_3840/photojournalism16.jpg" /> + src="/media/photos_3840/groke3.jpg" /> + src="/media/photos_3840/live-music19.jpg" /> + src="/media/photos_3840/live-music32.jpg" /> + src="/media/photos_3840/le-blanc-fine-art1.jpg" /> + + src="/media/photos_3840/on-set14.jpg" /> + src="/media/photos_3840/groke21.jpg" /> + + src="/media/photos_3840/groke13.jpg" />
                    diff --git a/media/photos/photojournalism1.jpg b/media/photos/photojournalism1.jpg index f034707..8e15947 100644 Binary files a/media/photos/photojournalism1.jpg and b/media/photos/photojournalism1.jpg differ diff --git a/media/photos/photojournalism10.jpg b/media/photos/photojournalism10.jpg new file mode 100644 index 0000000..cd6cb9d Binary files /dev/null and b/media/photos/photojournalism10.jpg differ diff --git a/media/photos/photojournalism11.jpg b/media/photos/photojournalism11.jpg new file mode 100644 index 0000000..afbd70e Binary files /dev/null and b/media/photos/photojournalism11.jpg differ diff --git a/media/photos/photojournalism12.jpg b/media/photos/photojournalism12.jpg new file mode 100644 index 0000000..bfdef4c Binary files /dev/null and b/media/photos/photojournalism12.jpg differ diff --git a/media/photos/photojournalism13.jpg b/media/photos/photojournalism13.jpg new file mode 100644 index 0000000..caf8dfb Binary files /dev/null and b/media/photos/photojournalism13.jpg differ diff --git a/media/photos/photojournalism14.jpg b/media/photos/photojournalism14.jpg new file mode 100644 index 0000000..f034707 Binary files /dev/null and b/media/photos/photojournalism14.jpg differ diff --git a/media/photos/photojournalism15.jpg b/media/photos/photojournalism15.jpg new file mode 100644 index 0000000..39ff1e4 Binary files /dev/null and b/media/photos/photojournalism15.jpg differ diff --git a/media/photos/photojournalism16.jpg b/media/photos/photojournalism16.jpg new file mode 100644 index 0000000..318437e Binary files /dev/null and b/media/photos/photojournalism16.jpg differ diff --git a/media/photos/photojournalism17.jpg b/media/photos/photojournalism17.jpg new file mode 100644 index 0000000..2d95592 Binary files /dev/null and b/media/photos/photojournalism17.jpg differ diff --git a/media/photos/photojournalism18.jpg b/media/photos/photojournalism18.jpg new file mode 100644 index 0000000..1a67c41 Binary files /dev/null and b/media/photos/photojournalism18.jpg differ diff --git a/media/photos/photojournalism19.jpg b/media/photos/photojournalism19.jpg new file mode 100644 index 0000000..2dbf48a Binary files /dev/null and b/media/photos/photojournalism19.jpg differ diff --git a/media/photos/photojournalism2.jpg b/media/photos/photojournalism2.jpg index 39ff1e4..47978da 100644 Binary files a/media/photos/photojournalism2.jpg and b/media/photos/photojournalism2.jpg differ diff --git a/media/photos/photojournalism20.jpg b/media/photos/photojournalism20.jpg new file mode 100644 index 0000000..cca30a5 Binary files /dev/null and b/media/photos/photojournalism20.jpg differ diff --git a/media/photos/photojournalism21.jpg b/media/photos/photojournalism21.jpg new file mode 100644 index 0000000..9c180e1 Binary files /dev/null and b/media/photos/photojournalism21.jpg differ diff --git a/media/photos/photojournalism3.jpg b/media/photos/photojournalism3.jpg index 318437e..db3f6b9 100644 Binary files a/media/photos/photojournalism3.jpg and b/media/photos/photojournalism3.jpg differ diff --git a/media/photos/photojournalism4.jpg b/media/photos/photojournalism4.jpg index 2d95592..c69eb6b 100644 Binary files a/media/photos/photojournalism4.jpg and b/media/photos/photojournalism4.jpg differ diff --git a/media/photos/photojournalism5.jpg b/media/photos/photojournalism5.jpg index 1a67c41..7a5e702 100644 Binary files a/media/photos/photojournalism5.jpg and b/media/photos/photojournalism5.jpg differ diff --git a/media/photos/photojournalism6.jpg b/media/photos/photojournalism6.jpg index 2dbf48a..5c26cfe 100644 Binary files a/media/photos/photojournalism6.jpg and b/media/photos/photojournalism6.jpg differ diff --git a/media/photos/photojournalism7.jpg b/media/photos/photojournalism7.jpg index cca30a5..e0e653d 100644 Binary files a/media/photos/photojournalism7.jpg and b/media/photos/photojournalism7.jpg differ diff --git a/media/photos/photojournalism8.jpg b/media/photos/photojournalism8.jpg index 9c180e1..30f372a 100644 Binary files a/media/photos/photojournalism8.jpg and b/media/photos/photojournalism8.jpg differ diff --git a/media/photos/photojournalism9.jpg b/media/photos/photojournalism9.jpg new file mode 100644 index 0000000..3247119 Binary files /dev/null and b/media/photos/photojournalism9.jpg differ diff --git a/personal/cotton-town/index.html b/personal/cotton-town/index.html index b487bf4..2c19591 100644 --- a/personal/cotton-town/index.html +++ b/personal/cotton-town/index.html @@ -19,7 +19,7 @@
                  • -
                    +
                    Personal
                  • -
                    +
                    Commercial
                    • GROKE
                    • diff --git a/personal/memorabilia/index.html b/personal/memorabilia/index.html index 230ec26..1ba0420 100644 --- a/personal/memorabilia/index.html +++ b/personal/memorabilia/index.html @@ -19,7 +19,7 @@
                    • -
                      +
                      Personal
                    • -
                      +
                      Commercial
                      • GROKE
                      • @@ -62,17 +62,17 @@
                        + src="/media/photos_3840/zine6.png" /> + src="/media/photos_3840/zine4.png" /> + src="/media/photos_3840/zine2.png" /> + src="/media/photos_3840/zine1.png" /> + src="/media/photos_3840/zine5.png" />
                        diff --git a/personal/photojournalism/index.html b/personal/photojournalism/index.html index f08aae1..7e71090 100644 --- a/personal/photojournalism/index.html +++ b/personal/photojournalism/index.html @@ -19,7 +19,7 @@
                      • -
                        +
                        Personal
                      • -
                        +
                        Commercial
                        • GROKE
                        • @@ -55,21 +55,51 @@
                          - + src="/media/photos_3840/photojournalism4.jpg" /> - + + + + + + + + + + + + + + + + +
                          diff --git a/personal/riders/index.html b/personal/riders/index.html index 1f4af46..c80a620 100644 --- a/personal/riders/index.html +++ b/personal/riders/index.html @@ -17,7 +17,7 @@
                        • -
                          +
                          Personal
                        • -
                          +
                          Commercial
                          • GROKE
                          • diff --git a/script.js b/script.js index 49a97b1..219af3b 100644 --- a/script.js +++ b/script.js @@ -1,5 +1,10 @@ function setup () { // setup the details elements + let b = 1; + if(window.innerHeight > window.innerWidth){ + console.log("portrait"); + b = 1.5; + } const elements = document.querySelectorAll("nav details summary"); for (element of elements) { let parent = element.parentNode; @@ -7,13 +12,12 @@ function setup () { parent.dataset.open = parent.open; parent.open = true; - let closedHeight = element.offsetHeight; - let openHeight = parent.offsetHeight; + let l = parent.dataset.lines; if (parent.dataset.open === "true") { - parent.style.height = `${openHeight}px`; + parent.style.height = `calc(${(Number(l)+1)*b}em + ${((Number(l)+1)*b) * 10}px)`; } else { - parent.style.height = `${closedHeight}px`; + parent.style.height = `calc(${b}em + ${b}0px)`; } parent.style.overflow = "hidden"; @@ -22,12 +26,14 @@ function setup () { e.preventDefault(); let parent = e.target.parentNode; + let l = parent.dataset.lines; + if (parent.dataset.open == "true") { - parent.style.height = `${closedHeight}px`; + parent.style.height = `calc(${b}em + ${b}0px)`; parent.dataset.open = false; } else { - parent.style.height = `${openHeight}px`; + parent.style.height = `calc(${(Number(l)+1)*b}em + ${((Number(l)+1)*b) * 10}px)`; parent.dataset.open = true; } }); @@ -200,6 +206,7 @@ function setup () { }); // add in the change notes chester +/* const template = document.createElement('template'); template.innerHTML = `