feat: add variants.js skeleton and wire into index.html + test.html
This commit is contained in:
parent
1b515c7d54
commit
2877d0ae35
3 changed files with 35 additions and 0 deletions
|
|
@ -211,6 +211,7 @@
|
||||||
|
|
||||||
<!-- Scripts -->
|
<!-- Scripts -->
|
||||||
<script src="holidays.js"></script>
|
<script src="holidays.js"></script>
|
||||||
|
<script src="variants.js"></script>
|
||||||
<script src="calculator.js"></script>
|
<script src="calculator.js"></script>
|
||||||
<script src="storage.js"></script>
|
<script src="storage.js"></script>
|
||||||
<script src="app.js"></script>
|
<script src="app.js"></script>
|
||||||
|
|
|
||||||
|
|
@ -140,6 +140,7 @@
|
||||||
<div id="test-results"></div>
|
<div id="test-results"></div>
|
||||||
|
|
||||||
<script src="holidays.js"></script>
|
<script src="holidays.js"></script>
|
||||||
|
<script src="variants.js"></script>
|
||||||
<script src="calculator.js"></script>
|
<script src="calculator.js"></script>
|
||||||
<script src="storage.js"></script>
|
<script src="storage.js"></script>
|
||||||
<script src="test-suite.js"></script>
|
<script src="test-suite.js"></script>
|
||||||
|
|
|
||||||
33
variants.js
Normal file
33
variants.js
Normal file
|
|
@ -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;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue