From 19c440d978ad7aa8404355b899d7048af51481f8 Mon Sep 17 00:00:00 2001 From: Ringo Wantanabe Date: Wed, 29 Aug 2018 19:34:59 +0100 Subject: [PATCH] Add css --- config.js | 4 +- www/css/main.css | 53 +++++++++++++++++ www/index.html | 52 +++++++++------- www/js/renderer.js | 144 ++++++++++++++++++++++++++++++++++++++++++--- 4 files changed, 222 insertions(+), 31 deletions(-) create mode 100644 www/css/main.css diff --git a/config.js b/config.js index 760c481..55c2ab8 100644 --- a/config.js +++ b/config.js @@ -10,8 +10,8 @@ var config = { RTBWCTL_FILENAME: "./backend/rtbwctl.py", BACKEND_SOCKET: "./backend/rtbw.sock", - BUFFER_PURGE_TIME: 600000, //10 minutes - SUPERBUFFER_PURGE_TIME: 86400000 //24 hours + BUFFER_PURGE_TIME: 1800000, //30 minutes + SUPERBUFFER_PURGE_TIME: 43200000 //12 hours }; module.exports = config; diff --git a/www/css/main.css b/www/css/main.css new file mode 100644 index 0000000..72614a7 --- /dev/null +++ b/www/css/main.css @@ -0,0 +1,53 @@ +body { + font-family: Arial, Helvetica, sans-serif; + font-size:10pt; + background-color: #1d1f21; + color: #c5c8c6; +} + +h1, h2, h3 { + font-family: Helvetica; + color: #f5f8f6; +} + +em { + color: #e5e8e6; +} + +.error { + color: #ff2826; +} + +.status { + font-style: italic; + font-family: Tahoma; + font-size:12pt; + +} + +.expand { + border-radius: 5px; + border: 1px solid #e5e8e6; + padding: 1px; + padding-left: 2px; + padding-right: 2px; + + font-family: monospace; + color: #f1f2f1; + font-size:11pt; +} + +.expshare { + border:solid; + border-radius: 10px; + color: #e5e8e6; +} + +.tab { + border: 1px solid; + border-radius: 3px; +} + +.ctlcont { + padding-top: 4px; +} diff --git a/www/index.html b/www/index.html index 3d0ee9e..492fb17 100644 --- a/www/index.html +++ b/www/index.html @@ -1,6 +1,7 @@ + @@ -9,7 +10,7 @@ -
Connecting...
+
Connecting...

Real-time board watcher readout

@@ -30,7 +31,7 @@

  • Avg. posts per cycle: 0
  • -