]> arthur.barton.de Git - netdata.git/commitdiff
minor fixes
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Mon, 18 Jan 2016 22:54:38 +0000 (00:54 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Mon, 18 Jan 2016 22:54:38 +0000 (00:54 +0200)
web/dashboard.css
web/dashboard.js
web/index.html

index 18ea1a3aeba0a1ce1830f518e608e9f0ede51294..5c756d5523a46f7c2dd5a64d7e6fbec1e5702b55 100755 (executable)
@@ -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 {
index 3781c9d86b889b6d260287e47a26d3361be60d4e..b6d0132692f0e0ec859797786982db720ad9f07f 100755 (executable)
                // 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;
index 11669ba466cbafaeff40817dbeb552a504c7f222..a2a43ae7e3c222a32025c489e24617671c197fda 100755 (executable)
        <!-- <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">