5,838
edits
m (→Alternative JavaScript: Tweaks for clarification) |
m (→Alternative JavaScript: Amended to reflect May 2013 changes in posted script) |
||
*Follow the instructions below for the PHP version.
== Alternative JavaScript ==
*An [http://sandaysoft.com/forum/viewtopic.php?f=18&t=8690 alternative Javascript/jQuery solution] is in the 3rd party tools sub forum within the Cumulus forum
*
*Also like the revised 1.2 PHP version, the alternative JavaScript version will pass validation, as ''all the coding is to the latest standards (ECMA-292, CSS3, HTML5)''. The original PHP and JS versions below, use non-standard attributes to handle for example the highlighting facility,
*
*From May 2013 it ''adds minimum and maximum for each month to the bottom of the table'' as an alternative to looking at each individual day.
*For greater ease of customisation, the forum versions use a different sequence in ''''label_items'''', and include the ability to apply your own formatting according to value for any selected category. The forum example includes colouring the rainfall rate according to intensity groups used by UK Meteorological Office.▼
*By placing a redesigned 'label_items' in the HTML (
▲*
*A number of headings and messages are defined in the HTML, but used by the script. This arrangement makes the revised version more informative, but
▲*By placing a redesigned 'label_items' in the HTML (so much easier to edit), my newer version makes it easier to add new criterions and adapt to any future changes in [[dayfile.txt]].
*
▲*A number of headings and messages are defined in the HTML, but used by the script. This arrangement makes the revised version more informative, but preserves the ability to tailor to your preferences on wording and language.
▲*If you select the 29 January 2013 version, it includes a CSS based on tailoring the standard Cumulus one, but you may want to make the new page match your existing pages. It includes HTML compatible with standard Cumulus pages (it does not need any Cumulus processing), but again that may need tailoring to match your other pages, but the HTML in the forum does offer the ability to display the raw dayfile.txt if JavaScript is not enabled in the viewer's browser.
*One site using in January 2013 a variant based on this alternative code, with its own look to the page, is [http://sassafras.id.au/projects/weather/dailyrecords.shtml found here].
|
edits