rename css to style.css

This commit is contained in:
technyon
2023-01-25 21:28:06 +01:00
parent 8afb4b6fd4
commit d12e107141
3 changed files with 7 additions and 7 deletions

View File

@@ -43,11 +43,11 @@ void WebCfgServer::initialize()
buildHtml(response);
_server.send(200, "text/html", response);
});
_server.on("/new.css", [&]() {
_server.on("/style.css", [&]() {
if (_hasCredentials && !_server.authenticate(_credUser, _credPassword)) {
return _server.requestAuthentication();
}
sendNewCss();
sendCss();
});
_server.on("/inter.css", [&]() {
if (_hasCredentials && !_server.authenticate(_credUser, _credPassword)) {
@@ -735,7 +735,7 @@ void WebCfgServer::buildHtmlHeader(String &response)
{
response.concat("<HTML><HEAD>");
response.concat("<meta name='viewport' content='width=device-width, initial-scale=1'>");
response.concat("<link rel='stylesheet' href='/new.css'>");
response.concat("<link rel='stylesheet' href='/style.css'>");
response.concat("<TITLE>NUKI Hub</TITLE></HEAD><BODY>");
}
@@ -933,10 +933,10 @@ void WebCfgServer::handleOtaUpload()
}
}
void WebCfgServer::sendNewCss()
void WebCfgServer::sendCss()
{
// escaped by https://www.cescaper.com/
_server.send(200, "text/plain", newcss, sizeof(newcss));
_server.send(200, "text/plain", stylecss, sizeof(stylecss));
}
void WebCfgServer::sendFontsInterMinCss()