summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-11-18 19:34:37 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2016-08-15 20:02:49 +0200
commit9486c208b3f1ee988b31b17e7db666e2bbe1ecbd (patch)
treef722161726aa4b5002e5e5659ede9868c16e4890
parent29c1dbf23cf29204ec03ed72ffe19e754825d459 (diff)
downloadwvs-vplan-9486c208b3f1ee988b31b17e7db666e2bbe1ecbd.tar.gz
wvs-vplan-9486c208b3f1ee988b31b17e7db666e2bbe1ecbd.zip
Neues Feature: Nachricht des Tages
-rw-r--r--knockout.html7
-rw-r--r--www/index.html2
-rw-r--r--www/js/index.js5
3 files changed, 12 insertions, 2 deletions
diff --git a/knockout.html b/knockout.html
index 80a6957..69bb597 100644
--- a/knockout.html
+++ b/knockout.html
@@ -5,6 +5,9 @@
</head>
<body>
<ul>
+ <!-- Nachricht des Tages, seit 1.0.2 -->
+ <li id="motd">
+ </li>
<li id="0.8_alpha"><!-- id = Versionsstring -->
<!-- ok / hangon (seit 0.9.5) / info / warn / force -->
force
@@ -50,6 +53,10 @@
</li>
<li id="1.0.1">
ok
+ </li>
+ <li id="1.0.2">
+ ok
+ </li>
</ul>
</body>
</html>
diff --git a/www/index.html b/www/index.html
index d8ca2a1..da8ca5e 100644
--- a/www/index.html
+++ b/www/index.html
@@ -130,7 +130,7 @@
<div data-role="footer">
<p id="versioninfo" style="display: none; text-align: center"></p>
- <p style="font-size: 0.8em;font-weight: 300; text-align: center">Version <span class="version"></span></p>
+ <p style="font-size: 0.8em;font-weight: 300; text-align: center">Version <span class="version"></span> <span class="motd"></span></p>
</div>
</div> <!-- page -->
diff --git a/www/js/index.js b/www/js/index.js
index a6dc18e..ab7a740 100644
--- a/www/js/index.js
+++ b/www/js/index.js
@@ -55,10 +55,13 @@ function updateCheck(){
request.done(function(resultHtml){
var appStatus = $('li[id="' + version + '"]', resultHtml).text().trim();
+ var motd = $('li[id="motd"]', resultHtml).html().trim();
+
var loginOk = true;
- console.log('Appstatus: ' + appStatus);
+ console.log('Appstatus: ' + appStatus + ' Nachricht des Tages: ' + motd);
+ $('.motd').html(motd);
switch(appStatus){
case 'ok':
break;