Sundays of Pleroma: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 43: | Line 43: | ||
} | } | ||
var | var OutputTable = document.getElementById("SundaysTable"); | ||
var withComma = new String(""); | // var withComma = new String(""); | ||
var totalDays = new String(""); | // var totalDays = new String(""); | ||
totalDays = getNumberOfDays(); | // totalDays = getNumberOfDays(); | ||
totalDays = totalDays.toString(); | // totalDays = totalDays.toString(); | ||
withComma = totalDays.substring(0,2) + "," + totalDays.substring(2); | // withComma = totalDays.substring(0,2) + "," + totalDays.substring(2); | ||
OutputTable.innerHTML = "<p><b>Hello, world</b></p>"; | |||
</script> | </script> | ||
</html> | </html> | ||
[[Category:Pleroma]] | [[Category:Pleroma]] |
Revision as of 00:04, 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)