Skip to content

Commit

Permalink
F L A T
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxitux committed Jun 12, 2017
1 parent bc53cb6 commit 248707e
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 16 deletions.
2 changes: 1 addition & 1 deletion rendergraph.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var rendergraph = function() {

var colorlist = ['#f00','#0f0','#00f'],
var colorlist = ['#3bbe7c','#f1a62f','#e13545'],
valuemarkerspacing = 30,
timemarkerspacing = 150,
timemarkerwidth = 80,
Expand Down
33 changes: 30 additions & 3 deletions sere.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ function drawClock(canvas,value,width) {
var endAnglei = null;

var colors = [];
/*
colors.push('#18ff00');
colors.push('#42ff00');
colors.push('#6cff00');
Expand All @@ -116,6 +117,32 @@ function drawClock(canvas,value,width) {
colors.push('#ff4000');
colors.push('#ff2500');
colors.push('#ff1800');
*/

colors.push('#3bbe7c');
colors.push('#f7e930');
colors.push('#f1a62f');
colors.push('#e13545');
/*
colors.push('#');
colors.push('#');
colors.push('#');
colors.push('#');
colors.push('#');
colors.push('#');
colors.push('#');
colors.push('#');
colors.push('#');
colors.push('#');
colors.push('#');
colors.push('#');
colors.push('#');
colors.push('#');
colors.push('#');
colors.push('#');
colors.push('#');
colors.push('#');
*/

var startColor = null;
var endColor = null;
Expand Down Expand Up @@ -174,8 +201,8 @@ function drawClock(canvas,value,width) {
// Draw clock hand
canvas.beginPath();
canvas.arc(cx,cy-maxy*0.05,maxy*0.025,2*Math.PI,false);
canvas.fillStyle='black';
canvas.strokeStyle='black';
canvas.fillStyle='#231f20';
canvas.strokeStyle='#231f20';
canvas.lineWidth = maxy*0.05;
canvas.fill();
canvas.stroke();
Expand All @@ -187,7 +214,7 @@ function drawClock(canvas,value,width) {
dx = -(radius*1.3) * Math.sin(angle);
dy = (radius*1.3) * Math.cos(angle);
canvas.lineTo(cx+dx,cy+dy-maxy*0.03);
canvas.strokeStyle = 'black';
canvas.strokeStyle = '#231f20';
canvas.stroke();

}
Expand Down
28 changes: 16 additions & 12 deletions template.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
body {
font-family: Verdana;
margin: 0;
background-color: #f0f0f0;
background-color: #DADFE1;
font-size: 100%;
}

h1 {
font-size: 1.3em;
font-weight: 100;
text-align: center;
color: #eee;
background-color: #222;
color: #ececec;
background-color: #1BBC9B;
padding: 5px;
margin: 0;
}
Expand All @@ -19,12 +19,12 @@ h2 {
font-size: 1.1em;
font-weight: 100;
text-align: center;
color: #aaa;
margin: 0;
color: #666;
}

a, a:link, a:visited, a:hover, a:active {
color: #00f;
color: #1BBC9B;
}

a {
Expand Down Expand Up @@ -54,7 +54,7 @@ h3, h4 {
font-weight: 300;
font-size: 1em;
text-align: center;
color: #666;
color: #1BBC9B;
}

h3 {
Expand All @@ -79,15 +79,19 @@ text-align: center;
}

.metrics, .small-metrics {
/*
-webkit-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0 0 5px 0 #bbb;
box-shadow: 0 0 5px 0 #bbb;
*/
margin: 5px;
display: inline-block;
vertical-align: top;
background-color: #fafafa;
background-color: #ECECEC;
/*
border: 1px solid #bbb;
*/
max-width: 280px;
min-width: 140px;
}
Expand Down Expand Up @@ -116,6 +120,7 @@ word-wrap: break-word;
font-size: .75em;
width: 280px;
text-align: left;
color: #6C7A89;
}

.netunit {
Expand Down Expand Up @@ -149,15 +154,15 @@ text-align: left;
}

.psleeping {
color: #999;
color: #6C7A89;
}

.pwaiting {
color: #fb0;
color: #f1a62f;
}

.prunning {
color: #f00;
color: #e13545;
}

.uptime {
Expand Down Expand Up @@ -185,14 +190,13 @@ font-size: 0.75em;
height: 360px;
position: relative;
z-index: 50;
margin-bottom: 50px;
margin-bottom: 100px;
}

.graph h2 {
border: 0;
font-size: 1.3em;
margin-top: 10px;
color: #666;
}

/* -- graph axis lines and value markers -- */
Expand Down

0 comments on commit 248707e

Please sign in to comment.