SteelSeries Gauges: Difference between revisions

no edit summary
No edit summary
No edit summary
= SteelSeries JavaScript Gauges =
[[Image:gauge.png]]
Based on the JavaScript/HTML5 Canvas SteelSeries gauges, this weather gauge page, blah,is blah,now blah..available in version 2.0
 
== Quick Start Guide for Cumulus Users ==
6. If you have installed to a web folder different from your Cumulus 'root' you will also need to edit the "gauges-ss.html" file, and amend the relative path to your Cumulus "weatherstyle.css" file.
 
7. Copy (or move) the folders 'css' and 'scripts' and their contents (the files that are contained in the ZIP file) to the folder where your "gauges-ss.htm" file is located (probably the same folder where all your other Cumulus HTM files are located).
 
=== Relative Paths ===
To switch languages dynamically, you need to add script to your page which sets the LANG object to equal the desired language and then calls the changeLang() function. e.g.
 
// Dynamic script to change the default language to German
changeLang(LANG.DE);
 
* * * *
* * * * o
 
== JavaScript Files ==
 
Some of the JavaScript files are pre-minimised in the package, the un-minimised versions of these script can be found in the /scripts/src folder. The 'src' folder is not used by the web page in normal use, but for debugging purposes you may want to change the page to these source scripts.
 
All the JavaScript files have been created using a UTF-8 character encoding, when editing the files please use an editor that is capable of retaining the correct file encoding.
 
Once you are happy with your web page I recommend that you minimise all your scripts, and possibly concatenate them - if you do this though, ensure that you maintain the script load order. Concatenation is not as big a speed up as it used to be as most modern browsers no longer 'block' when downloading a script file.
 
== Weather Display Users ==