49 lines
1.4 KiB
C++
49 lines
1.4 KiB
C++
#ifndef ____style_h__
|
|
#define ____style_h__
|
|
|
|
#include "HTTPPage.h"
|
|
|
|
namespace http {
|
|
|
|
#include "HTTPPage.h"
|
|
#include "HTTPParameters.h"
|
|
|
|
class __style : public HTTPPage {
|
|
|
|
int page(HTTPParameters &p) override {
|
|
|
|
p.data << "body {background: #006;"
|
|
" color: #fff;"
|
|
" }\n"
|
|
".window {background: #668;"
|
|
" color: #fff;"
|
|
" border: 1pt solid #f00;"
|
|
" width: 400px;"
|
|
" padding: 3px;"
|
|
" }\n"
|
|
".adminheader {background: #000;"
|
|
" color: #fff;"
|
|
" border: 1pt solid #888;"
|
|
" width: 400px;"
|
|
" padding: 3px;"
|
|
" }\n"
|
|
"h1 {background: #223;"
|
|
" color: #fff;"
|
|
" padding: 5px;"
|
|
" margin: 0px 0px 5px 0px;"
|
|
" }\n"
|
|
"input[type=text] {background: #0000;"
|
|
" color: #fff;"
|
|
" border: 0px;"
|
|
" padding: 5px;"
|
|
" margin: 0px 0px 5px 0px;"
|
|
" }\n";
|
|
|
|
p.httpRequest.response.addHeader(coreutils::IMFHeader("Content-Type", "text/css"));
|
|
return 1;
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif
|