Sundays of Pleroma: Difference between revisions

From Cor ad Cor
Jump to navigation Jump to search
No edit summary
No edit summary
Line 41: Line 41:


     return diffInDays;
     return diffInDays;
}
function AddLine(numstr){
NextYear  = Number(numstr)+1;
return "<p><b>"+NextYear.toString(NextYear)+"</b></p>";
}
}


Line 54: Line 59:
     var OutputStr = ThisYear;
     var OutputStr = ThisYear;


 
OutputStr = AddLine(ThisYear);
OutputTable.innerHTML = "<p><b>"+OutputStr+"</b></p>";
OutputTable.innerHTML = OutputStr;
</script>
</script>
</html>
</html>


[[Category:Pleroma]]
[[Category:Pleroma]]

Revision as of 00:20, 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)