diff options
| -rw-r--r-- | knockout.html | 7 | ||||
| -rw-r--r-- | www/index.html | 2 | ||||
| -rw-r--r-- | www/js/index.js | 5 |
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; |
