Sundays of Pleroma: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 106: | Line 106: | ||
const XmasInYear = new Date(XmasStr); | const XmasInYear = new Date(XmasStr); | ||
var DoWx = XmasInYear.getDay(); | var DoWx = XmasInYear.getDay(); | ||
// copy pattern from fixed array to derived array | |||
Scaffold.push(aYear.toString()); | |||
Scaffold.push(aYear.toString()); | |||
const cycle = ["A","B","C"]; | const cycle = ["A","B","C"]; | ||
// year A = 2023 | |||
firstremainder = aYear % 2023; | firstremainder = aYear % 2023; | ||
ABCindex = firstremainder % 3; | ABCindex = firstremainder % 3; | ||
Scaffold.push(cycle[ABCindex]); | Scaffold.push(cycle[ABCindex]); | ||
for (var j = 0; j<=7; j++) { | for (var j = 0; j<=7; j++) { | ||
Scaffold.push(FixedPattern[DoWx][j]); | Scaffold.push(FixedPattern[DoWx][j]); | ||
} | } | ||
// console.log(Scaffold); | |||
DerivedArray.push(Scaffold); | DerivedArray.push(Scaffold); | ||
// console.log(DerivedArray); | |||
} | } | ||
Line 133: | Line 131: | ||
row.appendChild(cell); | row.appendChild(cell); | ||
row.setAttribute("align","center"); | row.setAttribute("align","center"); | ||
row.setAttribute("style","font-weight:bold"); | row.setAttribute("style","font-weight:bold; background:#EAECF0"); | ||
} | } | ||
tblBody.appendChild(row); | tblBody.appendChild(row); |
Revision as of 15:02, 12 November 2024
Seven patterns
P1 | Xt King | Advent I | Christmas Day |
---|---|---|---|
9 Oct | 20 Nov | 27 Nov | Sunday |
15 Oct | 26 Nov | 3 Dec | Monday |
14 Oct | 25 Nov | 2 Dec | Tuesday |
13 Oct | 24 Nov | 1 Dec | Wednesday |
12 Oct | 23 Nov | 30 Nov | Thursday |
11 Oct | 22 Nov | 29 Nov | Friday |
10 Oct | 21 Nov | 28 Nov | Saturday |
Next ten years