diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-01-19 00:54:38 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-01-19 00:54:38 +0200 |
commit | 60c13081dcdbfd522f2a0affe47a52c3ab0aab31 (patch) | |
tree | 5b102104e79160b01795f5cd97ef81ebd3a2f15e /web | |
parent | 2cb3cb9ffc9182505a1209b331c7fb18d66d8ee4 (diff) |
minor fixes
Diffstat (limited to 'web')
-rwxr-xr-x | web/dashboard.css | 16 | ||||
-rwxr-xr-x | web/dashboard.js | 4 | ||||
-rwxr-xr-x | web/index.html | 2 |
3 files changed, 16 insertions, 6 deletions
diff --git a/web/dashboard.css b/web/dashboard.css index 18ea1a3aeb..5c756d5523 100755 --- a/web/dashboard.css +++ b/web/dashboard.css @@ -1,5 +1,9 @@ -html { - font-family: sans-serif; +html, +body { + /*font-family: Calibri,"Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif;*/ + font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; + font-style: normal; + font-variant: normal; } .netdata-chart-alignment { @@ -246,7 +250,7 @@ html { padding: 0px; padding-left: 15px; cursor: pointer; - -webkit-font-smoothing: none; + /* -webkit-font-smoothing: none; */ } .netdata-legend-name.not-selected { font-weight: normal; @@ -344,7 +348,7 @@ html { color: #666; font-weight: normal; text-shadow: #BBB 0px 0px 1px; - -webkit-font-smoothing: none; + /* -webkit-font-smoothing: none; */ } .easyPieChartTitle { @@ -394,7 +398,9 @@ html { font-weight: bold; z-index: 1; text-shadow: #777 0px 0px 1px; - -webkit-font-smoothing: none; + /* text-shadow: #CCC 1px 1px 0px, #CCC -1px -1px 0px, #CCC 1px -1px 0px, #CCC -1px 1px 0px; */ + /* -webkit-text-stroke: 1px #777; */ + /* -webkit-font-smoothing: none; */ } .gaugeChartTitle { diff --git a/web/dashboard.js b/web/dashboard.js index 3781c9d86b..b6d0132692 100755 --- a/web/dashboard.js +++ b/web/dashboard.js @@ -4532,6 +4532,10 @@ // is always between min and max var pcent = (value - min) * 100 / (max - min); + // these should never happen + if(pcent < 0) pcent = 0; + if(pcent > 100) pcent = 100; + state.gauge_instance.set(pcent); state.___gaugeOld__.value = value; diff --git a/web/index.html b/web/index.html index 11669ba466..a2a43ae7e3 100755 --- a/web/index.html +++ b/web/index.html @@ -281,7 +281,7 @@ <!-- <script> netdataServer = "http://box:19999"; </script> --> <!-- load the dashboard manager - it will do the rest --> - <script type="text/javascript" src="dashboard.js?v21"></script> + <script type="text/javascript" src="dashboard.js?v22"></script> </head> <body data-spy="scroll" data-target="#sidebar"> |