This commit is contained in:
technyon
2023-01-25 22:53:11 +01:00
parent a8527027cd
commit 10a916d57d
4 changed files with 7 additions and 20 deletions

View File

@@ -49,12 +49,6 @@ void WebCfgServer::initialize()
}
sendCss();
});
_server.on("/inter.css", [&]() {
if (_hasCredentials && !_server.authenticate(_credUser, _credPassword)) {
return _server.requestAuthentication();
}
sendFontsInterMinCss();
});
_server.on("/favicon.ico", HTTP_GET, [&]() {
if (_hasCredentials && !_server.authenticate(_credUser, _credPassword)) {
return _server.requestAuthentication();
@@ -735,9 +729,10 @@ void WebCfgServer::buildHtmlHeader(String &response)
{
response.concat("<HTML><HEAD>");
response.concat("<meta name='viewport' content='width=device-width, initial-scale=1'>");
response.concat("<style>");
response.concat(stylecss);
response.concat("</style>");
// response.concat("<style>");
// response.concat(stylecss);
// response.concat("</style>");
response.concat("<link rel='stylesheet' href='/style.css'>");
response.concat("<TITLE>NUKI Hub</TITLE></HEAD><BODY>");
}
@@ -941,12 +936,6 @@ void WebCfgServer::sendCss()
_server.send(200, "text/plain", stylecss, sizeof(stylecss));
}
void WebCfgServer::sendFontsInterMinCss()
{
// escaped by https://www.cescaper.com/
// _server.send(200, "text/plain", intercss, sizeof(intercss));
}
void WebCfgServer::sendFavicon()
{
_server.send(200, "image/png", (const char*)favicon_32x32, sizeof(favicon_32x32));