some gremlin keeps deleting my code so imma push now
This commit is contained in:
32
site/admin.html
Normal file
32
site/admin.html
Normal file
@@ -0,0 +1,32 @@
|
||||
[!][@on minify]
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Avraham Society Administration Page</title>
|
||||
<style>
|
||||
body {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
background-color: #000055;
|
||||
}
|
||||
body > div {
|
||||
padding: 100px;
|
||||
margin: 50px;
|
||||
margin-left: 20vw;
|
||||
margin-right: 20vw;
|
||||
background-color: darkblue;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<h2>This is the self-contained administration page for the Avraham Society website.</h2>
|
||||
<b id="loginnoying">You cannot make changes until you are logged in.</b> <button onclick="login()">Click me to log in</button>
|
||||
</div>
|
||||
<div>
|
||||
Parsha Calendar
|
||||
</div>
|
||||
<script src="admin.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -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.
|
||||
[/]
|
||||
@@ -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.
|
||||
[/]
|
||||
@@ -1,10 +0,0 @@
|
||||
[?][@on minify]
|
||||
[=videoEmbed-]
|
||||
<iframe width="100%" height="100%" src="https://www.youtube.com/embed/B0J27sf9N1Y"
|
||||
title="Blender Tutorial for Complete Beginners - Part 1" frameborder="0"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
||||
allowfullscreen></iframe>
|
||||
[/]
|
||||
[=text-]
|
||||
Text related to the cultural image.
|
||||
[/]
|
||||
11
site/culturalstuff/daoudandsaleh.html
Normal file
11
site/culturalstuff/daoudandsaleh.html
Normal file
@@ -0,0 +1,11 @@
|
||||
[?][@on minify]
|
||||
[=videoEmbed-]
|
||||
<iframe class="ytframe" width="996" height="747" src="https://www.youtube.com/embed/ybw7INieV10"
|
||||
title="daoud and saleh al kuwaiti - walla ajabni jamalak" frameborder="0"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
||||
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
|
||||
[/]
|
||||
[=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.
|
||||
[/]
|
||||
11
site/culturalstuff/video1.html
Normal file
11
site/culturalstuff/video1.html
Normal file
@@ -0,0 +1,11 @@
|
||||
[?][@on minify]
|
||||
[=videoEmbed-]
|
||||
<iframe class="ytframe" width="1280" height="720" src="https://www.youtube.com/embed/9A1fjI_ve7c"
|
||||
title="Wen Raich Wen - Dudu Tassa& The Kuwaitis | דודו טסה והכוויתים" frameborder="0"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
||||
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
|
||||
[/]
|
||||
[=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.
|
||||
[/]
|
||||
11
site/culturalstuff/video2.html
Normal file
11
site/culturalstuff/video2.html
Normal file
@@ -0,0 +1,11 @@
|
||||
[?][@on minify]
|
||||
[=videoEmbed-]
|
||||
<iframe class="ytframe" width="1280" height="720" src="https://www.youtube.com/embed/r2lDBjzF2o0"
|
||||
title="مقبره اليهود في الكويت لأول مره" frameborder="0"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
||||
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
|
||||
[/]
|
||||
[=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.
|
||||
[/]
|
||||
@@ -18,6 +18,12 @@
|
||||
<div>
|
||||
Weekly Chok L'Yisrael Torah section: <b id="torahsection"></b>
|
||||
</div>
|
||||
<div>
|
||||
Bustan Al Uqul: <b id="bustanaluqul"></b>
|
||||
</div>
|
||||
<div>
|
||||
Tomer Devorah: <b id="tomerdevorah"></b>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -193,7 +193,7 @@ div#banner {
|
||||
}
|
||||
|
||||
#banner > a {
|
||||
height: 2em;
|
||||
height: 3em;
|
||||
float: left;
|
||||
}
|
||||
|
||||
|
||||
10
site/main.js
10
site/main.js
@@ -10,4 +10,12 @@ if (localStorage.refered) {
|
||||
document.getElementById("shape").scrollIntoView({
|
||||
"behavior": "smooth"
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
});
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Avraham Society",
|
||||
"short_name": "AvrahamSociety",
|
||||
"short_name": "Avraham Society",
|
||||
"start_url": ".",
|
||||
"display": "standalone",
|
||||
"background_color": "#000000",
|
||||
|
||||
@@ -64,8 +64,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="top">
|
||||
<div id="title">Avraham Society<br>
|
||||
<small><b><i>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.</i></b></small>
|
||||
<div id="title">Avraham Society
|
||||
</div>
|
||||
<div id="shape"></div>
|
||||
</div>
|
||||
|
||||
@@ -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];
|
||||
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];
|
||||
Reference in New Issue
Block a user