1,685
edits
m (→Usage) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 67: | Line 67: | ||
''DoGaugeSettings();'' | ''DoGaugeSettings();'' | ||
This applies the gauges settings from ''cumulusutils.ini'' which requires the CUtils specific ''gauges.js'' | This applies the gauges settings from ''cumulusutils.ini'' which requires the CUtils specific ''gauges.js''.<br> | ||
Gauges which use the CMX gauges library are untouched. | Gauges which use the CMX gauges library are untouched. | ||
Line 90: | Line 91: | ||
''LoadUtilsReport(string, bool);'' => Loads the intended report in the DIV with ID ''CUReportView'' | ''LoadUtilsReport(string, bool);'' => Loads the intended report in the DIV with ID ''CUReportView'' | ||
Argument 1: The name of the report to load into DIV with ID: ''CUReportView'' | Argument 1: The name of the report to load into DIV with ID: ''CUReportView''<br> | ||
In principle any text can be loaded in the DIV with ID ''CUReportView'' but for proper formatting it requires HTML. It can contain any javascript if that is contained in <SCRIPT></SCRIPT tags. | Argument 2: Boolean (true/false) indicating the report will be refreshed after ''<interval>'' amount of minutes. Normally true for charts. | ||
In principle any text can be loaded in the DIV with ID ''CUReportView'' but for proper formatting it requires HTML. <br> | |||
It can contain any javascript if that is contained in <SCRIPT></SCRIPT> tags. | |||
=== CreateSun / CreateMoon === | === CreateSun / CreateMoon === | ||
Line 101: | Line 104: | ||
''CreateMoon();'' | ''CreateMoon();'' | ||
These functions create the sun and the moon discs in the DIVs with the IDs ''d3SunDisc'' and ''d3MoonDisc'' respectively. | These functions create the sun and the moon discs in the DIVs with the IDs ''d3SunDisc'' and ''d3MoonDisc'' respectively.<br> | ||
These functions require the ''d3 library'' to be loaded. | These functions require the ''d3 library'' to be loaded. | ||
[[Category:CumulusUtils]] | [[Category:CumulusUtils]] |