diff options
author | Unknown <fireice2@o2.pl> | 2017-11-14 20:22:31 +0000 |
---|---|---|
committer | Unknown <fireice2@o2.pl> | 2017-11-14 20:22:31 +0000 |
commit | 41eb0ad64e6d003368ccf8f3212f190a829aae10 (patch) | |
tree | 347bd2f368f7553cc0a04fae985779f081f126d2 /xmrstak/http/webdesign.cpp | |
parent | 608139ccde751eb053b54e8d41899aec9208017d (diff) | |
download | xmr-stak-41eb0ad64e6d003368ccf8f3212f190a829aae10.zip xmr-stak-41eb0ad64e6d003368ccf8f3212f190a829aae10.tar.gz |
Print motd on console and web ui
Diffstat (limited to 'xmrstak/http/webdesign.cpp')
-rw-r--r-- | xmrstak/http/webdesign.cpp | 23 |
1 files changed, 22 insertions, 1 deletions
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 <stdlib.h> -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 [] = "</div>" "<h4>%s</h4>"; +extern const char sHtmlMotdBoxStart[] = "<div class='motd-box'>"; +extern const char sHtmlMotdEntry[] = "<div class='motd-head'>Message from %s</div><div class='motd-body'>%s</div>"; +extern const char sHtmlMotdBoxEnd[] = "</div>"; + extern const char sHtmlHashrateBodyHigh [] = "<div class=data>" "<table>" |