Skip to content

Commit

Permalink
Add more Yardhzeits, add Tehilim Yomi
Browse files Browse the repository at this point in the history
  • Loading branch information
NightScript370 committed Aug 9, 2024
1 parent 6e267a0 commit b378ef5
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 11 deletions.
10 changes: 10 additions & 0 deletions _data/learning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,13 @@
en: Daily Chafetz Chayim
et: Chafetz Chayim Yomi
hb: חפץ חיים יומי
- limud: TehilimHodshi
text:
en: Daily Psalms (Monthly)
et: Tehilim Yomi (Monthly)
hb: תהילים יומי (חדשי)
- limud: TehilimShvui
text:
en: Daily Psalms (Weekly)
et: Tehilim Yomi (Weekly)
hb: תהילים יומי (שבועי)
4 changes: 4 additions & 0 deletions _data/tvLearn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
text: Bavli/בבלי
- limud: DafYerushalmi
text: Yerushalmi-V/ירושלמי (ו)
- limud: TehilimHodshi
text: Tehilim (Monthly)/תהילים (חדשי)
- limud: TehilimShvui
text: Tehilim (Weekly)/תהילים (שבועי)
- limud: ccYomi
text: Ḥafes Ḥayim/חפץ חיים
2 changes: 1 addition & 1 deletion assets/js/flyers/multiZman.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const rYisraeliCal = new rYisraelizmanim(fallbackGL);

/** @type {string[]} */
let calendars = [];
const jCal = new WebsiteLimudCalendar(5784, KosherZmanim.JewishDate.AV, 9)
const jCal = new WebsiteLimudCalendar(5784, KosherZmanim.JewishDate.AV, 6)
const shabbatDate = jCal.getDate();

switch (document.getElementById('gridElement').getAttribute('data-flyerType')) {
Expand Down
6 changes: 6 additions & 0 deletions assets/js/shul-wall/limud.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ for (const dafYerushalmi of document.querySelectorAll('[data-zfReplace="DafYerus
dafYerushalmi.innerHTML = dafYerushalmiObject.getMasechta() + " " + hNum.formatHebrewNumber(dafYerushalmiObject.getDaf());
}
}
for (const tehilimShvui of document.querySelectorAll('[data-zfReplace="TehilimShvui"]')) {
tehilimShvui.innerHTML = KosherZmanim.TehilimYomi.byWeek(jCal).map(num => num.toString()).join(' - ');
}
for (const TehilimHodshi of document.querySelectorAll('[data-zfReplace="TehilimHodshi"]')) {
TehilimHodshi.innerHTML = KosherZmanim.TehilimYomi.byDayOfMonth(jCal).map(met => met.toString()).join(' - ');
}

const chafetzChayimYomi = jCal.getChafetzChayimYomi();
for (const ccYomi of document.querySelectorAll('[data-zfReplace="ccYomi"]'))
Expand Down
9 changes: 8 additions & 1 deletion assets/js/zmanimListUpdater.js
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,14 @@ class zmanimListUpdater {
}

const chafetzChayimYomi = this.jCal.getChafetzChayimYomi();
dafContainer.querySelector('[data-zfReplace="ccYomi"]').innerHTML = (chafetzChayimYomi.title + (chafetzChayimYomi.section ? (": " + chafetzChayimYomi.section) : "")) || "N/A"
dafContainer.querySelector('[data-zfReplace="ccYomi"]').innerHTML = (chafetzChayimYomi.title + (chafetzChayimYomi.section ? (": " + chafetzChayimYomi.section) : "")) || "N/A";

for (const tehilimShvui of dafContainer.querySelectorAll('[data-zfReplace="TehilimShvui"]')) {
tehilimShvui.innerHTML = KosherZmanim.TehilimYomi.byWeek(this.jCal).map(num => num.toString()).join(' - ');
}
for (const TehilimHodshi of dafContainer.querySelectorAll('[data-zfReplace="TehilimHodshi"]')) {
TehilimHodshi.innerHTML = KosherZmanim.TehilimYomi.byDayOfMonth(this.jCal).map(met => met.toString()).join(' - ');
}
}

/** @param {HTMLElement} [tefilahRuleContainer] */
Expand Down
2 changes: 1 addition & 1 deletion assets/libraries/kosherZmanim/hiloulah-en.json

Large diffs are not rendered by default.

15 changes: 14 additions & 1 deletion assets/libraries/kosherZmanim/kosher-zmanim.esm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2279,7 +2279,7 @@ export declare class JewishDate {
*
* @return the day of the week as a number between 1-7.
*/
getDayOfWeek(): number;
getDayOfWeek(): 1 | 2 | 3 | 4 | 5 | 6 | 7;
/**
* Sets the Gregorian month.
*
Expand Down Expand Up @@ -8846,6 +8846,19 @@ export declare class HiloulahYomiCalculator {
he: hiloulahObj;
}>;
}
export declare class TehilimYomi {
static byDayOfMonth(jDate: JewishDate): [
number,
number
] | [
string,
string
];
static byWeek(jDate: JewishDate): [
number,
number
];
}
/**
* The HebrewDateFormatter class formats a {@link JewishDate}.
*
Expand Down
6 changes: 3 additions & 3 deletions assets/libraries/kosherZmanim/kosher-zmanim.esm.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions assets/libraries/kosherZmanim/kosher-zmanim.esm.js.map

Large diffs are not rendered by default.

0 comments on commit b378ef5

Please sign in to comment.