X-Git-Url: http://www.average.org/gitweb/?p=pulsecounter.git;a=blobdiff_plain;f=web%2Findex.html;h=50998a2b0a6963003fe1ec2aafc72bda60dae44e;hp=debb7d8b73aa02dcdb50c35a8292e4891625ebe7;hb=bf2c1c8587f80789fe2fbf8c544226c059dfba9a;hpb=947c787283d2384b67ad6b0688e228b54b8843ce diff --git a/web/index.html b/web/index.html index debb7d8..50998a2 100644 --- a/web/index.html +++ b/web/index.html @@ -9,7 +9,7 @@ var ww, wh; var hmax, hfact; var tmin, tmax, tfact; - var xzero = 36, yzero = 24; + var xzero = 40, yzero = 24; var cold_d = [], hot_d = []; function showdate(utime) { @@ -25,7 +25,7 @@ var inc, inc2, first, x, lb; if (scl < 2) { inc = 0.1; inc2 = 0.2; } - else if (scl < 5) { inc = 0.1; inc2 = 0.2; } + else if (scl < 5) { inc = 0.1; inc2 = 0.5; } else { inc = 0.5; inc2 = 1; } inc *= ord; inc2 *= ord; @@ -56,7 +56,7 @@ ctx.stroke(); ctx.fillStyle = "black"; - ctx.font = "bold 12px Courier"; + ctx.font = "bold 16px Courier"; ctx.textAlign = "left"; ctx.fillText(showdate(tmin), px(tmin), py(0) + 20); ctx.textAlign = "right"; @@ -82,14 +82,14 @@ ctx.stroke(); ctx.fillStyle = "black"; - ctx.font = "bold 12px Courier"; + ctx.font = "bold 16px Courier"; ctx.textAlign = "right"; ctx.fillText(0, px(tmin) - 6, py(0)); for (i = 0; comb[1][i]; i++) { ctx.fillText(comb[1][i].toFixed(1), px(tmin) - 6, py(comb[1][i])); } ctx.textAlign = "left"; - ctx.fillText("l/min", px(tmin) + 4, py(hmax) + 8); + ctx.fillText("l/min", px(tmin) + 4, py(hmax) + 12); } /* @ updates global var `hmax` */