From d13a5663650031db17e69427ef3e57ff5fba2ad2 Mon Sep 17 00:00:00 2001 From: Isa Herico Velasco <7840857+iisa@users.noreply.github.com> Date: Fri, 5 Apr 2024 14:50:02 -0700 Subject: [PATCH 01/12] DO NOT MERGE - demo better links --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index c4d1857a9..64f8a0ecd 100644 --- a/index.html +++ b/index.html @@ -30,5 +30,6 @@
  • Start in immersion mode on 1up default item
  • Replace view mode buttons with view mode cycler
  • +
  • Replace view mode buttons with view mode cycler
  • From c62decb3cef175cfbf3057ffcfc944613f07cb9b Mon Sep 17 00:00:00 2001 From: Isa Herico Velasco <7840857+iisa@users.noreply.github.com> Date: Mon, 8 Apr 2024 16:41:16 -0700 Subject: [PATCH 02/12] demo page --- index.html | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 55 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 64f8a0ecd..7d18f785a 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,60 @@ - -
  • Replace view mode buttons with view mode cycler
  • + --> From 47428d154d9f95675fc94827f1cd1e2a116b6837 Mon Sep 17 00:00:00 2001 From: Isa Herico Velasco <7840857+iisa@users.noreply.github.com> Date: Mon, 8 Apr 2024 16:45:54 -0700 Subject: [PATCH 03/12] remove unsued code --- index.html | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/index.html b/index.html index 7d18f785a..e9559e473 100644 --- a/index.html +++ b/index.html @@ -60,28 +60,5 @@

    Book



    - -
  • From Internet Archive
  • - -
  • From Internet Archive - a book with CHAPTERS
  • -
  • IIIF
  • -
  • Autoplay (kiosk mode)
  • -
  • Plugin: Full screen menu toggle
  • -
  • Start in immersion (fullscreen) mode
  • - -
  • Start in immersion mode on 1up default item
  • -
  • Replace view mode buttons with view mode cycler
  • - --> From 8ddeff44482751dd658808bf09934eaccc7ec48e Mon Sep 17 00:00:00 2001 From: Isa Herico Velasco <7840857+iisa@users.noreply.github.com> Date: Tue, 9 Apr 2024 14:16:11 -0700 Subject: [PATCH 04/12] fix link --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index e9559e473..9db6c2329 100644 --- a/index.html +++ b/index.html @@ -52,10 +52,10 @@

    Book


    From 315a1efc9a57684ea4c9ee625ee0e3e980f16c20 Mon Sep 17 00:00:00 2001 From: Isa Herico Velasco <7840857+iisa@users.noreply.github.com> Date: Wed, 10 Apr 2024 10:38:58 -0700 Subject: [PATCH 05/12] prod test --- index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 9db6c2329..7013295ff 100644 --- a/index.html +++ b/index.html @@ -46,16 +46,16 @@

    Book

    if (!newid) return; const pageInfo = newLeafOrPageNum ? `/page/${newLeafOrPageNum}` : ''; - const url = new URL(`/details/${newid}${pageInfo}`, `http://www-isa.archive.org`); + const url = new URL(`/details/${newid}${pageInfo}`, `http://archive.org`); window.location.href = url.href; });
    From 652a05a9825803a014b86a4d01375fe5709d848d Mon Sep 17 00:00:00 2001 From: Isa Herico Velasco <7840857+iisa@users.noreply.github.com> Date: Wed, 10 Apr 2024 16:01:35 -0700 Subject: [PATCH 06/12] pass thru page num --- index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 7013295ff..9c4a7cbfc 100644 --- a/index.html +++ b/index.html @@ -38,14 +38,16 @@

    Book

    const form = document.getElementById('item-link'); const newid = form.querySelector('input#item-id-field')?.value; const newLeafOrPageNum = form.querySelector('input#item-leaf-page-field')?.value; + const pageInfo = newLeafOrPageNum ? `/page/${newLeafOrPageNum}` : ''; console.log({ form, newid, + newLeafOrPageNum, + pageInfo }); if (!newid) return; - const pageInfo = newLeafOrPageNum ? `/page/${newLeafOrPageNum}` : ''; const url = new URL(`/details/${newid}${pageInfo}`, `http://archive.org`); window.location.href = url.href; }); From c6d4e2db6c8df85dde4e707f158101f7bf777c49 Mon Sep 17 00:00:00 2001 From: Isa Herico Velasco <7840857+iisa@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:25:27 -0700 Subject: [PATCH 07/12] log --- index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 9c4a7cbfc..f578d513a 100644 --- a/index.html +++ b/index.html @@ -39,16 +39,17 @@

    Book

    const newid = form.querySelector('input#item-id-field')?.value; const newLeafOrPageNum = form.querySelector('input#item-leaf-page-field')?.value; const pageInfo = newLeafOrPageNum ? `/page/${newLeafOrPageNum}` : ''; + const url = new URL(`/details/${newid}${pageInfo}`, `http://archive.org`); console.log({ form, newid, newLeafOrPageNum, - pageInfo + pageInfo, + url, }); if (!newid) return; - const url = new URL(`/details/${newid}${pageInfo}`, `http://archive.org`); window.location.href = url.href; }); From 2a073be797edd40158e457925c6c78d33958d335 Mon Sep 17 00:00:00 2001 From: Isa Herico Velasco <7840857+iisa@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:31:27 -0700 Subject: [PATCH 08/12] url log --- index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index f578d513a..f6dc93816 100644 --- a/index.html +++ b/index.html @@ -39,7 +39,8 @@

    Book

    const newid = form.querySelector('input#item-id-field')?.value; const newLeafOrPageNum = form.querySelector('input#item-leaf-page-field')?.value; const pageInfo = newLeafOrPageNum ? `/page/${newLeafOrPageNum}` : ''; - const url = new URL(`/details/${newid}${pageInfo}`, `http://archive.org`); + const str = `http://archive.org/details/${newid}${pageInfo}`; + const url = new URL(str); console.log({ form, @@ -47,6 +48,8 @@

    Book

    newLeafOrPageNum, pageInfo, url, + href: url.href, + str }); if (!newid) return; From 13b2b62a9a1532f2acb46bedbee9dec34a31511f Mon Sep 17 00:00:00 2001 From: Isa Herico Velasco <7840857+iisa@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:41:45 -0700 Subject: [PATCH 09/12] debugger --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index f6dc93816..bbc06a678 100644 --- a/index.html +++ b/index.html @@ -41,6 +41,7 @@

    Book

    const pageInfo = newLeafOrPageNum ? `/page/${newLeafOrPageNum}` : ''; const str = `http://archive.org/details/${newid}${pageInfo}`; const url = new URL(str); + debugger; console.log({ form, From dff9cee8bcc8f62d3efeb3c9fc8640ddada366e3 Mon Sep 17 00:00:00 2001 From: Isa Herico Velasco <7840857+iisa@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:46:07 -0700 Subject: [PATCH 10/12] load --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index bbc06a678..bafb4af4e 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@

    Book

    }); if (!newid) return; - window.location.href = url.href; + window.location = url.href; }); From 43f42d9bbf5b6f18392d1c5494e560dceeb80502 Mon Sep 17 00:00:00 2001 From: Isa Herico Velasco <7840857+iisa@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:49:28 -0700 Subject: [PATCH 11/12] simplify --- index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index bafb4af4e..123bd3408 100644 --- a/index.html +++ b/index.html @@ -23,14 +23,14 @@ padding: 0 10px; } -

    Book

    -