| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>Gauge</title> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| 6 | </head> |
| 7 | <style> |
| 8 | html { |
| 9 | height: 100%; |
| 10 | } |
| 11 | |
| 12 | body { |
| 13 | margin: 0; |
| 14 | background-repeat: no-repeat; |
| 15 | background: #003366; |
| 16 | /* gecko based browsers */ |
| 17 | background: -moz-linear-gradient(top, #003366, #000000); |
| 18 | |
| 19 | /* webkit based browsers */ |
| 20 | background: -webkit-gradient(linear, left top, left bottom, from(#003366), to(#000000)); |
| 21 | } |
| 22 | |
| 23 | .footer { |
| 24 | position:absolute; |
| 25 | bottom:0; |
| 26 | } |
| 27 | |
| 28 | </style> |
| 29 | <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="parseOnLoad: 1, async:1"></script> |
| 30 | <script language="JavaScript" type="text/javascript"> |
| 31 | require(['dojox/gauges/GlossyCircularGauge', |
| 32 | 'dojox/gauges/GlossySemiCircularGauge', 'dojox/gauges/GlossyHorizontalGauge', |
| 33 | 'dojo/parser'], function(){ |
| 34 | }) |
| 35 | </script> |
| 36 | |
| 37 | <body> |
| 38 | <h2 align='center' style='color:gray;'>Glossy Gauges</h2> |
| 39 | <table style='height:100%; width:100%'> |
| 40 | <tr> |
| 41 | <td align='center'> |
| 42 | <div id="CircularGauge" background='{color : "rgba(0,0,0,0)"}'useTooltip='false' data-dojo-type='dojox.gauges.GlossyCircularGauge' width='200' height='200' value='20'> |
| 43 | </div> |
| 44 | </td> |
| 45 | <td align='center'> |
| 46 | <div id="CircularGauge2" background='{color : "rgba(0,0,0,0)"}' useTooltip='false' data-dojo-type='dojox.gauges.GlossySemiCircularGauge' value='60' width='250' height='200'> |
| 47 | </td> |
| 48 | </tr> |
| 49 | <tr > |
| 50 | <td valign='middle' align='center' colspan='2'> |
| 51 | <div id="HGauge3" style='margin:30px 0px 0px 0px' useTooltip='false' background='{color : "rgba(0,0,0,0)"}' data-dojo-type='dojox.gauges.GlossyHorizontalGauge' width='400' height='60' value='20'> |
| 52 | </div> |
| 53 | </td> |
| 54 | </tr> |
| 55 | </table> |
| 56 | <div class='footer'> |
| 57 | <p style='color:gray; font-size:'xx-small'>Click a gauge to change its value.</p> |
| 58 | </div> |
| 59 | </div> |
| 60 | </body> |
| 61 | </html> |