5,838
edits
No edit summary |
No edit summary |
||
Line 159: | Line 159: | ||
*variable '''mn''' is a list of the 12 months of the year, in an abbreviated format. You may change these as necessary, but try to keep it to an abbreviation as there is limited space. | *variable '''mn''' is a list of the 12 months of the year, in an abbreviated format. You may change these as necessary, but try to keep it to an abbreviation as there is limited space. | ||
*''''label_items'''' is a list of all possible data sets to be displayed. Again you can change these to suit | *''''label_items'''' is a list of all possible data sets to be displayed. Again you can change these to suit if you are prepared to wade through all the script and make changes elsewhere too. However, the format is a little more involved and you should take some care. Each row represents one data set, with 4 columns of settings for that data set; so the default list is an array of four by six. | ||
Example of a row,.... | Example of a row,.... | ||
Line 172: | Line 172: | ||
*Finally, 'true' will display this button at the top; 'false' will hide it. Therefore, if you do not wish to allow users to jump to the 'Rainfall data set' change the 'true' to 'false' in the 'rainfall' element of the variable. (true/false MUST be lowercase) | *Finally, 'true' will display this button at the top; 'false' will hide it. Therefore, if you do not wish to allow users to jump to the 'Rainfall data set' change the 'true' to 'false' in the 'rainfall' element of the variable. (true/false MUST be lowercase) | ||
(NOTE: [[User:Sfws|Sfws]] 12:22, 31 December 2012 (UTC) | |||
The ''switch'' part of the coding identifies the columns in dayfile.txt for the values to be displayed. If you wish to add new data sets then see the alternative JavaScript version in the forum for more explanation about the original coding, and an alternative way to specify the columns in a revised version of the above array.) | |||
<br> | |||
== Styling (applies only to original version of code) == | == Styling (applies only to original version of code) == |
edits