From d734e9494b9ebd9ce78b5044c9e764ffcdc45ac8 Mon Sep 17 00:00:00 2001 From: Solar Anamnesis <31825284+solaranamnesis@users.noreply.github.com> Date: Thu, 7 Nov 2024 12:18:56 -0800 Subject: [PATCH 1/4] Create script-pl.js --- script-pl.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 script-pl.js diff --git a/script-pl.js b/script-pl.js new file mode 100644 index 0000000..fce8ddb --- /dev/null +++ b/script-pl.js @@ -0,0 +1 @@ +function renderBooks(){fetch("books.json").then((t=>t.json())).then((t=>{const e=document.getElementById("book-list");function n(t){e.innerHTML="",t.sort(((t,e)=>t.year.match(/\d+/)[0]>e.year.match(/\d+/)[0]?1:e.year.match(/\d+/)[0]>t.year.match(/\d+/)[0]?-1:0)).forEach((t=>{const n=document.createElement("li");n.className="box",n.innerHTML=`\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t${t.title}\n\t\t\t\t\t\t — ${t.author} (${t.year}) \t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tJęzyki: ${t.languages}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tTematy: ${t.subjects}\n\t\t\t\t\t\t\t\t\n `,e.appendChild(n)}))}function a(t,e,n){return n.indexOf(t)===e}function l(){const e=document.getElementById("language-select").value,a=document.getElementById("year-select").value,l=document.getElementById("subject-select").value,s=document.getElementById("author-select").value;n(t.filter((t=>{const n="Wybierz język"===e||t.languages.includes(e),r="Wybierz rok"===a||t.year.includes(a),c="Wybierz temat"===l||t.subjects.includes(l),o="Wybierz autora"===s||t.author.includes(s);return n&&r&&c&&o})))}function s(t,e){const n=document.getElementById(t);e.forEach((t=>{const e=document.createElement("option");e.value=t,e.textContent=t,n.appendChild(e)}))}const r=t.flatMap((t=>t.languages.split(",").map((t=>t.trim())))).filter(a).sort(),c=t.map((t=>t.year.match(/\d+/)[0])).filter(a).sort(),o=t.flatMap((t=>t.subjects.split(",").map((t=>t.trim())))).filter(a).sort(),d=t.flatMap((t=>t.author.split(",").map((t=>t.trim())))).filter(a).sort();s("language-select",r),s("year-select",c),s("subject-select",o),s("author-select",d),n(t),document.getElementById("language-select").addEventListener("change",l),document.getElementById("year-select").addEventListener("change",l),document.getElementById("subject-select").addEventListener("change",l),document.getElementById("author-select").addEventListener("change",l)})).catch((t=>console.error("Error:",t)))}document.addEventListener("DOMContentLoaded",renderBooks); From 453e812b0914d822b6aed4fb34e98188f1207591 Mon Sep 17 00:00:00 2001 From: Solar Anamnesis <31825284+solaranamnesis@users.noreply.github.com> Date: Thu, 7 Nov 2024 12:19:30 -0800 Subject: [PATCH 2/4] Create index-pl.html --- index-pl.html | 1 + 1 file changed, 1 insertion(+) create mode 100644 index-pl.html diff --git a/index-pl.html b/index-pl.html new file mode 100644 index 0000000..691d32d --- /dev/null +++ b/index-pl.html @@ -0,0 +1 @@ +Wydawnictwo Solar Anamnesis

Wydawnictwo Solar Anamnesis

Odkryj Tajemnicę

Wirtualna Biblioteka

Interakcja ze wszystkimi książkami w bibliotece.

Linki

Znajdź dalsze informacje i zasoby.

O Nas

Dowiedz się więcej o naszej misji i wizji.

Filtruj książki

Zobacz książki

    From 1755eb71592058edd6ad05d5cb944febeb35ad24 Mon Sep 17 00:00:00 2001 From: Solar Anamnesis <31825284+solaranamnesis@users.noreply.github.com> Date: Thu, 7 Nov 2024 12:19:54 -0800 Subject: [PATCH 3/4] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 08fda3f..a9903c8 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,4 @@ In the spirit of inspiration, we pay homage to the nine Muses of Greek mythology [Persian (فارسی)](https://www.solaranamnesis.pub/index-fa.html) [Kiswahili](https://www.solaranamnesis.pub/index-sw.html) [Bahasa Indonesia](https://www.solaranamnesis.pub/index-id.html) +[Język Polski](https://www.solaranamnesis.pub/index-pl.html) From e987054aa7222f9445533c6e88d4c3c09ced27e9 Mon Sep 17 00:00:00 2001 From: Solar Anamnesis <31825284+solaranamnesis@users.noreply.github.com> Date: Thu, 7 Nov 2024 12:20:28 -0800 Subject: [PATCH 4/4] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index eeb6ef9..f459a48 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Solar Anamnesis Publishing

    Solar Anamnesis Publishing

    Explore the Mystery

    Virtual Library

    Interact with all the books in the library.

    Links

    Find further information and resources.

    About Us

    Learn more about our mission and vision.

    Filter Books

    View Books

      +Solar Anamnesis Publishing

      Solar Anamnesis Publishing

      Explore the Mystery

      Virtual Library

      Interact with all the books in the library.

      Links

      Find further information and resources.

      About Us

      Learn more about our mission and vision.

      Filter Books

      View Books