From 6eb598189bb969cbe26b96aea9913bd6c97810f0 Mon Sep 17 00:00:00 2001 From: Ringo Watanabe Date: Wed, 5 Sep 2018 12:23:17 +0100 Subject: [PATCH] Fixed symlink --- .gitignore | 1 + DEPS | 1 - SETUP | 3 ++- www/css/main.css | 18 ++++++++++++++++++ www/index.html | 7 ++++++- www/js/cyclefunc.js | 2 +- www/js/renderer.js | 4 +++- 7 files changed, 31 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 83a36f1..bb603f2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ backend/ rtbwn.sock +rtbwn.pid diff --git a/DEPS b/DEPS index 17e0e25..eac1401 100644 --- a/DEPS +++ b/DEPS @@ -1,4 +1,3 @@ rtbwpy node.js ws node module - diff --git a/SETUP b/SETUP index d3305f8..aa717df 100644 --- a/SETUP +++ b/SETUP @@ -1,8 +1,9 @@ Set your reverse proxy to serve www/ statically. +Symlink interop.js to www/js/cyclefunc.js if it is not already. Edit config.js to specify the parameters of the node (api) server, and point it to the backend (rtbwpy) Set your reverse proxy to pass config.BASE_URL* to the node server (make sure websockets are sent too) Edit www/js/client.js to point to the correct api location. Start the backend (rtbwpy) in daemon mode. -Start the node server +Start the node server with ./maintain/start.sh or with node main.js diff --git a/www/css/main.css b/www/css/main.css index 11dd47a..219dcef 100644 --- a/www/css/main.css +++ b/www/css/main.css @@ -65,3 +65,21 @@ em { .ctlcont { padding-top: 4px; } + +.footer { + font-style: italic; + font-family: Tahoma; + font-size:9pt; +} + +.footer a { + color: #f5f8f6 +} + +.footer a:link { + color: rgb(102, 255, 255) +} + +.footer a:visited { + color: rgb(204, 255, 102) +} diff --git a/www/index.html b/www/index.html index 93ab9d3..caf1ba9 100644 --- a/www/index.html +++ b/www/index.html @@ -175,7 +175,12 @@
Rollover at:
- +
+ diff --git a/www/js/cyclefunc.js b/www/js/cyclefunc.js index 0bf0c53..d64bbd0 120000 --- a/www/js/cyclefunc.js +++ b/www/js/cyclefunc.js @@ -1 +1 @@ -/home/flandre/srv/rtbw/interop.js \ No newline at end of file +../../interop.js \ No newline at end of file diff --git a/www/js/renderer.js b/www/js/renderer.js index 13c493a..6b203a1 100644 --- a/www/js/renderer.js +++ b/www/js/renderer.js @@ -209,8 +209,10 @@ function updateSection(gr, pfx, allTime, allTimeAverage,data=null) if(!$(gr.anamedpie.options.showAnon).is(":checked")) { for(var i in nshare) - if(nshare[i]["key"] == "Anonymous") + if(nshare[i]["key"] == "Anonymous") { delete nshare[i]; + break; + } } for(var i in nshare) {