5,838
edits
No edit summary |
No edit summary |
||
'Annual Data Summary' is a small tool to read the [[dayfile.txt]] produced by Cumulus and summarise this in a table showing a full years worth of data.
*The tool uses HTML and jQuery (a
*The JavaScript version does not require a webserver with PHP services enabled. (Many of the free hosting services do not offer PHP so this was a solution to that problem).
*The alternative is a PHP version (included so you have the option to use either).
== Understanding the Basics ==
The 'tool' relies on
If you wish to use your own page to show the data on, do the following:
*for the JS version▼
▲: In the <head> section.....
<pre><link rel="stylesheet" type="text/css" media="screen" href="datasummary.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/
<script src="readDayfile.js" type="text/javascript"></script></pre> ▼
: This loads the stylesheet; loads a jQuery library from Google servers (rather than having the file on your server,
: Once the page is loaded it runs readDayfile.js and will look for
*for the PHP version▼
:you still need the jQuery library as above
Please note that the table needs a good amount of space to show a full year of data (at least 900 pixels unless you start reducing the font size!)
▲*for the JS version
▲<script src="readDayfile.js" type="text/javascript"></script></pre>
▲: Once the page is loaded it runs readDayfile.js and will look for your HTML element with an id attribute called 'tableData' already existing; then inserting the data table within it. You can change the DIV (or HTML5 alternative blocking elements) it inserts into (see above).
▲*for the PHP version
▲:use the code <pre><?php include('readDayfile.php');?></pre> to include the script
== Localization / Language ==
|
edits