From 41eb0ad64e6d003368ccf8f3212f190a829aae10 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 14 Nov 2017 20:22:31 +0000 Subject: Print motd on console and web ui --- xmrstak/http/webdesign.cpp | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'xmrstak/http/webdesign.cpp') diff --git a/xmrstak/http/webdesign.cpp b/xmrstak/http/webdesign.cpp index 3c33e1f..963c080 100644 --- a/xmrstak/http/webdesign.cpp +++ b/xmrstak/http/webdesign.cpp @@ -1,6 +1,6 @@ #include -extern const char sHtmlCssEtag [] = "00000008"; +extern const char sHtmlCssEtag [] = "00000009"; extern const char sHtmlCssFile [] = "body {" "font-family: Tahoma, Arial, sans-serif;" @@ -92,6 +92,23 @@ extern const char sHtmlCssFile [] = ".flex-item {" "width: 33%;" "margin: 3px;" + "}" + + ".motd-box {" + "background-color: #ccc;" + "padding: 0px 10px 5px 10px;" + "margin-bottom: 10px;" + "}" + + ".motd-head {" + "border-bottom: 1px solid #000;" + "margin-bottom: 0.5em;" + "padding: 0.5em 0em;" + "font-weight: bold;" + "}" + + ".motd-body {" + "overflow: hidden;" "}"; size_t sHtmlCssSize = sizeof(sHtmlCssFile) - 1; @@ -130,6 +147,10 @@ extern const char sHtmlCommonHeader [] = "" "

%s

"; +extern const char sHtmlMotdBoxStart[] = "
"; +extern const char sHtmlMotdEntry[] = "
Message from %s
%s
"; +extern const char sHtmlMotdBoxEnd[] = "
"; + extern const char sHtmlHashrateBodyHigh [] = "
" "" -- cgit v1.1