AnnualDataSummary: Difference between revisions

no edit summary
No edit summary
No edit summary
* (both versions) Assume the dayfile.txt is read from a subfolder called 'data'.
* (JS version only) Insert the table it generates into a HTML element with attribute ''id='tableData' ''
* (both versions) Assume the date format in the dayfile is ''dd/mm/yy'' (the month is always in the middle for all Cumulus log files)
* (both versions) Assume the data in the dayfile is separated with a ''comma''
 
* (JS Version only) '''tableDiv''' - the HTML element ''id attribute'' on your webpage to insert the table into
* (both versions) '''field_delimiter''' - the symbol separating each of your fields in the dayfile.txt. For most people this is a '''comma''' but (if you use comma to separate integer and decimal parts of real numbers) it could be a semi-colon (''';''') or other symbol.
* (both versions) '''date_delimiter''' - the symbol separating your date format. SeeIn [[setup]].the UK this is '''/''' however in other countries it may be '''-'''
 
Change as needed, save and test
5,838

edits