From d6b6f08ebe0e713c2d86564603725554822350d2 Mon Sep 17 00:00:00 2001 From: Lazy Hippopotamus Date: Tue, 9 Apr 2024 13:19:33 -0400 Subject: [PATCH] some gremlin keeps deleting my code so imma push now --- output/about.html | 3 +- output/admin.html | 1 + output/contact-us.html | 3 +- output/culture.html | 5 ++- output/humanistic-judaism.html | 3 +- output/index.html | 3 +- output/intro-to-judaism.html | 3 +- output/library/library-entry-2.html | 3 +- output/library/library-entry.html | 3 +- output/librarymain.html | 5 ++- output/main.css | 2 +- output/main.js | 10 +++++- output/manifest.json | 2 +- output/membership.html | 3 +- output/torahstudy.js | 45 +++++++++++++++++++++++++-- site/admin.html | 32 +++++++++++++++++++ site/culturalstuff/culture2.html | 5 --- site/culturalstuff/culture3.html | 5 --- site/culturalstuff/cultureVideo.html | 10 ------ site/culturalstuff/daoudandsaleh.html | 11 +++++++ site/culturalstuff/video1.html | 11 +++++++ site/culturalstuff/video2.html | 11 +++++++ site/librarymain.html | 6 ++++ site/main.css | 2 +- site/main.js | 10 +++++- site/manifest.json | 2 +- site/templates/default.html | 3 +- site/torahstudy.js | 45 +++++++++++++++++++++++++-- 28 files changed, 193 insertions(+), 54 deletions(-) create mode 100755 output/admin.html create mode 100644 site/admin.html delete mode 100644 site/culturalstuff/culture2.html delete mode 100644 site/culturalstuff/culture3.html delete mode 100644 site/culturalstuff/cultureVideo.html create mode 100644 site/culturalstuff/daoudandsaleh.html create mode 100644 site/culturalstuff/video1.html create mode 100644 site/culturalstuff/video2.html diff --git a/output/about.html b/output/about.html index 0cc8393..4093c2e 100755 --- a/output/about.html +++ b/output/about.html @@ -64,8 +64,7 @@
-
Avraham Society
- May replace this space with a logo? the current logo would not look good there, but something like what Kabbalah has would. I can do the logo design if it's simple enough; my art talent is pretty weak though. +
Avraham Society
diff --git a/output/admin.html b/output/admin.html new file mode 100755 index 0000000..91e72fa --- /dev/null +++ b/output/admin.html @@ -0,0 +1 @@ + Avraham Society Administration Page

This is the self-contained administration page for the Avraham Society website.

You cannot make changes until you are logged in.
Parsha Calendar
\ No newline at end of file diff --git a/output/contact-us.html b/output/contact-us.html index 07b6afd..1d51467 100755 --- a/output/contact-us.html +++ b/output/contact-us.html @@ -64,8 +64,7 @@
-
Avraham Society
- May replace this space with a logo? the current logo would not look good there, but something like what Kabbalah has would. I can do the logo design if it's simple enough; my art talent is pretty weak though. +
Avraham Society
diff --git a/output/culture.html b/output/culture.html index 2078c9a..23f9235 100755 --- a/output/culture.html +++ b/output/culture.html @@ -64,15 +64,14 @@
-
Avraham Society
- May replace this space with a logo? the current logo would not look good there, but something like what Kabbalah has would. I can do the logo design if it's simple enough; my art talent is pretty weak though. +
Avraham Society

Culture

-

Text related to the cultural image.

Text related to the cultural image.

Text related to the cultural image.

Text related to the cultural image.

+

Saleh and Daoud Al-Kuwaiti were Kuwaiti born musicians that belonged to the Jewish Community of Kuwait and contributed to the Kuwaiti Sawt genre. The Al-Kuwaiti Brothers street in Tel Aviv is named after them.

David “Dudu” Tassa is the grandson of Daoud Al-Kuwaiti and is the leader of the band Dudu Tassa & the Kuwaitis. He is a successful musician in Israel and has songs in Arabic.

Text related to the cultural image.

Hussain Al-Failakawi is a local YouTuber in Kuwait. In this Arabic video he visited the Jewish Cemetery of Kuwait and has a message from Dudu Tassa.

diff --git a/output/humanistic-judaism.html b/output/humanistic-judaism.html index ecdb814..b140c4b 100755 --- a/output/humanistic-judaism.html +++ b/output/humanistic-judaism.html @@ -64,8 +64,7 @@
-
Avraham Society
- May replace this space with a logo? the current logo would not look good there, but something like what Kabbalah has would. I can do the logo design if it's simple enough; my art talent is pretty weak though. +
Avraham Society
diff --git a/output/index.html b/output/index.html index 55ab679..fbc3053 100755 --- a/output/index.html +++ b/output/index.html @@ -64,8 +64,7 @@
-
Avraham Society
- May replace this space with a logo? the current logo would not look good there, but something like what Kabbalah has would. I can do the logo design if it's simple enough; my art talent is pretty weak though. +
Avraham Society
diff --git a/output/intro-to-judaism.html b/output/intro-to-judaism.html index 983621c..69b8458 100755 --- a/output/intro-to-judaism.html +++ b/output/intro-to-judaism.html @@ -64,8 +64,7 @@
-
Avraham Society
- May replace this space with a logo? the current logo would not look good there, but something like what Kabbalah has would. I can do the logo design if it's simple enough; my art talent is pretty weak though. +
Avraham Society
diff --git a/output/library/library-entry-2.html b/output/library/library-entry-2.html index 2204a7a..86ceb57 100755 --- a/output/library/library-entry-2.html +++ b/output/library/library-entry-2.html @@ -68,8 +68,7 @@
-
Avraham Society
- May replace this space with a logo? the current logo would not look good there, but something like what Kabbalah has would. I can do the logo design if it's simple enough; my art talent is pretty weak though. +
Avraham Society
diff --git a/output/library/library-entry.html b/output/library/library-entry.html index 5f0b388..3614829 100755 --- a/output/library/library-entry.html +++ b/output/library/library-entry.html @@ -68,8 +68,7 @@
-
Avraham Society
- May replace this space with a logo? the current logo would not look good there, but something like what Kabbalah has would. I can do the logo design if it's simple enough; my art talent is pretty weak though. +
Avraham Society
diff --git a/output/librarymain.html b/output/librarymain.html index 3a7a5c9..8e32e0d 100755 --- a/output/librarymain.html +++ b/output/librarymain.html @@ -64,8 +64,7 @@
-
Avraham Society
- May replace this space with a logo? the current logo would not look good there, but something like what Kabbalah has would. I can do the logo design if it's simple enough; my art talent is pretty weak though. +
Avraham Society
@@ -74,7 +73,7 @@

Daily Study

Weekly Chok L'Yisrael Torah section:
+

Daily Study

Weekly Chok L'Yisrael Torah section:
Bustan Al Uqul:
Tomer Devorah:
diff --git a/output/main.css b/output/main.css index f539e42..545d96b 100755 --- a/output/main.css +++ b/output/main.css @@ -193,7 +193,7 @@ div#banner { } #banner > a { - height: 2em; + height: 3em; float: left; } diff --git a/output/main.js b/output/main.js index f0a5032..e3edf1d 100755 --- a/output/main.js +++ b/output/main.js @@ -10,4 +10,12 @@ if (localStorage.refered) { document.getElementById("shape").scrollIntoView({ "behavior": "smooth" }); -} \ No newline at end of file +} + +Array.from(document.getElementsByClassName("ytframe")).forEach(frame => { // resizes youtube videos to fit their containers + var w1 = frame.getBoundingClientRect().width; + frame.width = "100%"; + var w2 = frame.getBoundingClientRect().width; + frame.width = w2 + "px"; + frame.height = frame.getBoundingClientRect().height * w2 / w1; +}); \ No newline at end of file diff --git a/output/manifest.json b/output/manifest.json index f503b18..09c32f1 100755 --- a/output/manifest.json +++ b/output/manifest.json @@ -1,6 +1,6 @@ { "name": "Avraham Society", - "short_name": "AvrahamSociety", + "short_name": "Avraham Society", "start_url": ".", "display": "standalone", "background_color": "#000000", diff --git a/output/membership.html b/output/membership.html index a1a14ff..eab64a8 100755 --- a/output/membership.html +++ b/output/membership.html @@ -64,8 +64,7 @@
-
Avraham Society
- May replace this space with a logo? the current logo would not look good there, but something like what Kabbalah has would. I can do the logo design if it's simple enough; my art talent is pretty weak though. +
Avraham Society
diff --git a/output/torahstudy.js b/output/torahstudy.js index df5ebc4..52498af 100755 --- a/output/torahstudy.js +++ b/output/torahstudy.js @@ -1,6 +1,6 @@ // Manages the Torah Study section of the Library -var chocklyisrael = [ // 54 Torah sections, updates every sunday (or whatever day he wants really) +const chocklyisrael = [ // 54 Torah sections, updates every sunday (or whatever day he wants really) "Bereishit", "Noach", "Lech Lecha", @@ -56,6 +56,43 @@ var chocklyisrael = [ // 54 Torah sections, updates every sunday (or whatever da "Haazinu", "Zot Haberakha" ]; + +const tomerdevorah = [ + "I & II", + "III", + "IV", + "V & VI", + "VII", + "VIII", + "IX & X" +]; + +function roman(num) { // roman numeral converter for numbers <10 (used for Bustan Al-Uqul) + if (num < 4) { + var ret = ""; + for (var i = 0; i < num; i++) { + ret += 'I'; + } + return ret; + } + else if (num == 4) { + return "IV"; + } + else if (num >= 5 && num <= 8) { + var ret = "V"; + for (var i = 0; i < num - 5; i++) { + ret += 'I'; + } + return ret; + } + else if (num == 9) { + return "IX"; + } + else { + return "X"; + } +} + const oneDay = 24 * 60 * 60 * 1000; // hours * minutes * seconds * milliseconds const tripDay = 6; // saturday @@ -74,4 +111,8 @@ if (now.getDay() == tripDay) { tripsSince += 26; // Tazria -document.getElementById("torahsection").innerText = chocklyisrael[tripsSince]; \ No newline at end of file +var daysSinceSat = (now.getDay() + 1 + (now.getHours() > 12 ? 1 : 0)) % 7; + +document.getElementById("torahsection").innerText = chocklyisrael[tripsSince]; +document.getElementById("bustanaluqul").innerText = roman(daysSinceSat); +document.getElementById("tomerdevorah").innerText = tomerdevorah[daysSinceSat]; \ No newline at end of file diff --git a/site/admin.html b/site/admin.html new file mode 100644 index 0000000..3d2e24f --- /dev/null +++ b/site/admin.html @@ -0,0 +1,32 @@ +[!][@on minify] + + + + + Avraham Society Administration Page + + + +
+

This is the self-contained administration page for the Avraham Society website.

+ You cannot make changes until you are logged in. +
+
+ Parsha Calendar +
+ + + \ No newline at end of file diff --git a/site/culturalstuff/culture2.html b/site/culturalstuff/culture2.html deleted file mode 100644 index 95a9a79..0000000 --- a/site/culturalstuff/culture2.html +++ /dev/null @@ -1,5 +0,0 @@ -[?][@on minify] -[=img "https://media.istockphoto.com/id/1337471900/vector/star-of-david-graphic-abstract-background-with-three-doves.webp?s=2048x2048&w=is&k=20&c=M47-JucDhH5TQs500koB-siTbCxce2DLUfQjC5Y9gKA="] -[=text-] - Text related to the cultural image. -[/] \ No newline at end of file diff --git a/site/culturalstuff/culture3.html b/site/culturalstuff/culture3.html deleted file mode 100644 index 95a9a79..0000000 --- a/site/culturalstuff/culture3.html +++ /dev/null @@ -1,5 +0,0 @@ -[?][@on minify] -[=img "https://media.istockphoto.com/id/1337471900/vector/star-of-david-graphic-abstract-background-with-three-doves.webp?s=2048x2048&w=is&k=20&c=M47-JucDhH5TQs500koB-siTbCxce2DLUfQjC5Y9gKA="] -[=text-] - Text related to the cultural image. -[/] \ No newline at end of file diff --git a/site/culturalstuff/cultureVideo.html b/site/culturalstuff/cultureVideo.html deleted file mode 100644 index 57c143d..0000000 --- a/site/culturalstuff/cultureVideo.html +++ /dev/null @@ -1,10 +0,0 @@ -[?][@on minify] -[=videoEmbed-] - -[/] -[=text-] -Text related to the cultural image. -[/] \ No newline at end of file diff --git a/site/culturalstuff/daoudandsaleh.html b/site/culturalstuff/daoudandsaleh.html new file mode 100644 index 0000000..a92b473 --- /dev/null +++ b/site/culturalstuff/daoudandsaleh.html @@ -0,0 +1,11 @@ +[?][@on minify] +[=videoEmbed-] + +[/] +[=text-] +Saleh and Daoud Al-Kuwaiti were Kuwaiti born musicians that belonged to the Jewish Community of Kuwait and contributed +to the Kuwaiti Sawt genre. The Al-Kuwaiti Brothers street in Tel Aviv is named after them. +[/] \ No newline at end of file diff --git a/site/culturalstuff/video1.html b/site/culturalstuff/video1.html new file mode 100644 index 0000000..c952446 --- /dev/null +++ b/site/culturalstuff/video1.html @@ -0,0 +1,11 @@ +[?][@on minify] +[=videoEmbed-] + +[/] +[=text-] +David “Dudu” Tassa is the grandson of Daoud Al-Kuwaiti and is the leader of the band Dudu Tassa & the Kuwaitis. He is a +successful musician in Israel and has songs in Arabic. +[/] \ No newline at end of file diff --git a/site/culturalstuff/video2.html b/site/culturalstuff/video2.html new file mode 100644 index 0000000..ec7aefa --- /dev/null +++ b/site/culturalstuff/video2.html @@ -0,0 +1,11 @@ +[?][@on minify] +[=videoEmbed-] + +[/] +[=text-] +Hussain Al-Failakawi is a local YouTuber in Kuwait. In this Arabic video he visited the Jewish Cemetery of Kuwait and +has a message from Dudu Tassa. +[/] \ No newline at end of file diff --git a/site/librarymain.html b/site/librarymain.html index d7944af..eb196b5 100644 --- a/site/librarymain.html +++ b/site/librarymain.html @@ -18,6 +18,12 @@
Weekly Chok L'Yisrael Torah section:
+
+ Bustan Al Uqul: +
+
+ Tomer Devorah: +
diff --git a/site/main.css b/site/main.css index f539e42..545d96b 100644 --- a/site/main.css +++ b/site/main.css @@ -193,7 +193,7 @@ div#banner { } #banner > a { - height: 2em; + height: 3em; float: left; } diff --git a/site/main.js b/site/main.js index f0a5032..e3edf1d 100644 --- a/site/main.js +++ b/site/main.js @@ -10,4 +10,12 @@ if (localStorage.refered) { document.getElementById("shape").scrollIntoView({ "behavior": "smooth" }); -} \ No newline at end of file +} + +Array.from(document.getElementsByClassName("ytframe")).forEach(frame => { // resizes youtube videos to fit their containers + var w1 = frame.getBoundingClientRect().width; + frame.width = "100%"; + var w2 = frame.getBoundingClientRect().width; + frame.width = w2 + "px"; + frame.height = frame.getBoundingClientRect().height * w2 / w1; +}); \ No newline at end of file diff --git a/site/manifest.json b/site/manifest.json index f503b18..09c32f1 100644 --- a/site/manifest.json +++ b/site/manifest.json @@ -1,6 +1,6 @@ { "name": "Avraham Society", - "short_name": "AvrahamSociety", + "short_name": "Avraham Society", "start_url": ".", "display": "standalone", "background_color": "#000000", diff --git a/site/templates/default.html b/site/templates/default.html index 6cb0453..f70adbf 100644 --- a/site/templates/default.html +++ b/site/templates/default.html @@ -64,8 +64,7 @@
-
Avraham Society
- May replace this space with a logo? the current logo would not look good there, but something like what Kabbalah has would. I can do the logo design if it's simple enough; my art talent is pretty weak though. +
Avraham Society
diff --git a/site/torahstudy.js b/site/torahstudy.js index df5ebc4..52498af 100644 --- a/site/torahstudy.js +++ b/site/torahstudy.js @@ -1,6 +1,6 @@ // Manages the Torah Study section of the Library -var chocklyisrael = [ // 54 Torah sections, updates every sunday (or whatever day he wants really) +const chocklyisrael = [ // 54 Torah sections, updates every sunday (or whatever day he wants really) "Bereishit", "Noach", "Lech Lecha", @@ -56,6 +56,43 @@ var chocklyisrael = [ // 54 Torah sections, updates every sunday (or whatever da "Haazinu", "Zot Haberakha" ]; + +const tomerdevorah = [ + "I & II", + "III", + "IV", + "V & VI", + "VII", + "VIII", + "IX & X" +]; + +function roman(num) { // roman numeral converter for numbers <10 (used for Bustan Al-Uqul) + if (num < 4) { + var ret = ""; + for (var i = 0; i < num; i++) { + ret += 'I'; + } + return ret; + } + else if (num == 4) { + return "IV"; + } + else if (num >= 5 && num <= 8) { + var ret = "V"; + for (var i = 0; i < num - 5; i++) { + ret += 'I'; + } + return ret; + } + else if (num == 9) { + return "IX"; + } + else { + return "X"; + } +} + const oneDay = 24 * 60 * 60 * 1000; // hours * minutes * seconds * milliseconds const tripDay = 6; // saturday @@ -74,4 +111,8 @@ if (now.getDay() == tripDay) { tripsSince += 26; // Tazria -document.getElementById("torahsection").innerText = chocklyisrael[tripsSince]; \ No newline at end of file +var daysSinceSat = (now.getDay() + 1 + (now.getHours() > 12 ? 1 : 0)) % 7; + +document.getElementById("torahsection").innerText = chocklyisrael[tripsSince]; +document.getElementById("bustanaluqul").innerText = roman(daysSinceSat); +document.getElementById("tomerdevorah").innerText = tomerdevorah[daysSinceSat]; \ No newline at end of file