From 2877d0ae35bb7eacb401e95480581dd4f10760f3 Mon Sep 17 00:00:00 2001 From: Kenearos Date: Tue, 12 May 2026 00:12:22 +0200 Subject: [PATCH] feat: add variants.js skeleton and wire into index.html + test.html --- index.html | 1 + test.html | 1 + variants.js | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 variants.js diff --git a/index.html b/index.html index 8242828..06c9265 100644 --- a/index.html +++ b/index.html @@ -211,6 +211,7 @@ + diff --git a/test.html b/test.html index 763e9de..3dc6e49 100644 --- a/test.html +++ b/test.html @@ -140,6 +140,7 @@
+ diff --git a/variants.js b/variants.js new file mode 100644 index 0000000..a297212 --- /dev/null +++ b/variants.js @@ -0,0 +1,33 @@ +/** + * Bonus-Varianten (NRW Psychiatrie 2011) + * Pure functions: day classification + V1/V2/V3 evaluation. + * Loaded after holidays.js and before calculator.js. + */ + +// Will be implemented in subsequent tasks. +function classify(date, holidayProvider) { + throw new Error('classify: not implemented'); +} + +function classifyDuties(duties, holidayProvider) { + throw new Error('classifyDuties: not implemented'); +} + +function variant1(classified, isVacation) { + throw new Error('variant1: not implemented'); +} + +function variant2(classified, isVacation) { + throw new Error('variant2: not implemented'); +} + +function variant3(classified, isVacation) { + throw new Error('variant3: not implemented'); +} + +// Expose globally +window.classify = classify; +window.classifyDuties = classifyDuties; +window.variant1 = variant1; +window.variant2 = variant2; +window.variant3 = variant3;