Sundays of Pleroma: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 50: | Line 50: | ||
// withComma = totalDays.substring(0,2) + "," + totalDays.substring(2); | // withComma = totalDays.substring(0,2) + "," + totalDays.substring(2); | ||
const TodayDate = new Date(); | |||
var ThisYear = TodayDate.getFullYear(); | |||
var OutputStr = ThisYear: | |||
OutputTable.innerHTML = "<p><b> | OutputTable.innerHTML = "<p><b>"+OutputStr+"</b></p>"; | ||
</script> | </script> | ||
</html> | </html> | ||
[[Category:Pleroma]] | [[Category:Pleroma]] |
Revision as of 00:08, 10 November 2024
find the current year
find day of the week of Christmas this year
create output string
- start table
- start line
- header line one
- start line
- header line two
- start line
Call AddLine to output row for one year
repeat nine times
- increment year by one
- AddLine(nextYear)