From 9486c208b3f1ee988b31b17e7db666e2bbe1ecbd Mon Sep 17 00:00:00 2001 From: schneefux Date: Tue, 18 Nov 2014 19:34:37 +0100 Subject: Neues Feature: Nachricht des Tages --- knockout.html | 7 +++++++ www/index.html | 2 +- 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 @@ 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 @@
-

Version

+

Version

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; -- cgit v1.3.1