From a864c25de0116a87fbeaee8bdf411e9ad698201d Mon Sep 17 00:00:00 2001 From: NightScript <18664762+NightScript370@users.noreply.github.com> Date: Thu, 26 Dec 2024 17:32:02 -0500 Subject: [PATCH] Joey Zaghi request: Select individual Zemanim for the excel/ics export --- _includes/modals/export.html | 64 +++++++ assets/js/WebsiteCalendar.js | 6 +- assets/js/features/excelPrepare.js | 18 +- assets/js/features/export.js | 281 ++++++++++++++++++++++++++++ assets/js/features/icsPrepare.js | 2 +- assets/js/zmanimListUpdater.js | 286 ++--------------------------- pages/calendar.html | 15 +- 7 files changed, 379 insertions(+), 293 deletions(-) create mode 100644 _includes/modals/export.html create mode 100644 assets/js/features/export.js diff --git a/_includes/modals/export.html b/_includes/modals/export.html new file mode 100644 index 0000000..a17225b --- /dev/null +++ b/_includes/modals/export.html @@ -0,0 +1,64 @@ +
\ No newline at end of file diff --git a/assets/js/WebsiteCalendar.js b/assets/js/WebsiteCalendar.js index 80646dd..ce66363 100644 --- a/assets/js/WebsiteCalendar.js +++ b/assets/js/WebsiteCalendar.js @@ -4,6 +4,9 @@ import * as KosherZmanim from "../libraries/kosherZmanim/kosher-zmanim.esm.js" import { he as n2heWords, he_rt as n2ruWords } from "../libraries/n2words.esm.js"; import { AmudehHoraahZmanim, OhrHachaimZmanim } from "./ROYZmanim.js"; +/** @typedef {{ hb: string, en: string, "en-et": string; "ru"?: string; }} langType */ +/** @typedef {{display: -2|-1|0|1, code: string[], luxonObj: KosherZmanim.Temporal.ZonedDateTime, title: langType, merge_title: langType; function: string}} zmanData */ + export default class WebsiteCalendar extends KosherZmanim.JewishCalendar { formatJewishFullDate() { @@ -111,8 +114,7 @@ class WebsiteCalendar extends KosherZmanim.JewishCalendar { * @param {{ hourCalculator: "degrees" | "seasonal"; tzeithIssurMelakha: { minutes: number; degree: number;}; tzeitTaanitHumra: boolean; }} funcSettings */ getZmanimInfo(independent, zmanCalc, zmanList, funcSettings) { - /** @typedef {{ hb: string, en: string, "en-et": string; "ru"?: string; }} langType */ - /** @type {Record