summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2019-05-24 14:16:40 +0200
committerRamón M. Gómez <ramongomez@us.es>2019-05-24 14:16:40 +0200
commit9d70a3d4ee6af7137932a6cd10b2afe4d2c24754 (patch)
tree7b93670ebab05691b5be6b14b1e3532db65ae678
parent41c655ecc659d90f3c01244cd5d596c5a3a4368a (diff)
#908 OGAgent for ogLive launches the Browser with an animation while getting initial configuration.
-rw-r--r--admin/Sources/Clients/ogagent/src/opengnsys/modules/server/OpenGnSys/__init__.py23
1 files changed, 22 insertions, 1 deletions
diff --git a/admin/Sources/Clients/ogagent/src/opengnsys/modules/server/OpenGnSys/__init__.py b/admin/Sources/Clients/ogagent/src/opengnsys/modules/server/OpenGnSys/__init__.py
index 70c3fd4e..223875af 100644
--- a/admin/Sources/Clients/ogagent/src/opengnsys/modules/server/OpenGnSys/__init__.py
+++ b/admin/Sources/Clients/ogagent/src/opengnsys/modules/server/OpenGnSys/__init__.py
@@ -246,8 +246,29 @@ class OpenGnSysWorker(ServerWorker):
message = """
<html>
<head></head>
+<style>
+ #barra { width: 20px; height: 10px; position: relative; background: darkslategrey; }
+</style>
<body>
-<h1 style="margin: 5em; font-size: xx-large;">OpenGnsys 3</h1>
+<h1 style="margin: 5em 0 0 5em; font-size: 250%; color: darkslategrey;">
+ <span id="opengnsys"><span style="font-weight: lighter;">Open</span>Gnsys 3</div>
+ <div id="barra"></span>
+</h1>
+<script>
+ var elem = document.getElementById("barra");
+ var max = document.getElementById("opengnsys").offsetWidth;
+ var pos = 0;
+ var inc = true;
+ var id = setInterval(frame, 5);
+ function frame() {
+ if (inc) {
+ if (pos == max - 20) { inc = false; } else { pos++; }
+ } else {
+ if (pos == 0) { inc = true; } else { pos--; }
+ }
+ elem.style.left = pos + 'px';
+ }
+</script>
</body>
</html>"""
f = open('/tmp/init.html', 'w')