From 849da1b5a240ce88d5be473c83242303e2958dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Sat, 18 Oct 2014 12:25:14 +0200 Subject: [PATCH 01/13] Implement reconnecting upon connection loss TODO: test in various conditions --- css/glowingbear.css | 11 ++++++ index.html | 3 ++ js/connection.js | 88 +++++++++++++++++++++++++++++++++++++-------- js/glowingbear.js | 6 ++++ js/handlers.js | 50 +++++++++++++++++++++++++- 5 files changed, 142 insertions(+), 16 deletions(-) diff --git a/css/glowingbear.css b/css/glowingbear.css index d171615..2888d13 100644 --- a/css/glowingbear.css +++ b/css/glowingbear.css @@ -263,6 +263,17 @@ td.time { font-family: sans-serif; } +#reconnect { + top: 35px; + position: fixed; + z-index: 9999; + background-color: #eee; + color: #333; + width: 100%; + margin: 0; + padding: 5px; +} + .footer { position: fixed; bottom: 0; diff --git a/index.html b/index.html index 4ef87ee..e1700ec 100644 --- a/index.html +++ b/index.html @@ -285,6 +285,9 @@ $ openssl req -nodes -newkey rsa:4096 -keyout relay.pem -x509 -days 365 -out rel +
+ Reconnecting... Try now +