From c7b3bc2d2f0b28abaa15df5c069b44c42f639758 Mon Sep 17 00:00:00 2001 From: Marcus Date: Tue, 16 Apr 2024 03:06:05 +0200 Subject: [PATCH] firmware wip - add JSreplaceStr --- Arduino/CanGrow/CanGrow.ino | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Arduino/CanGrow/CanGrow.ino b/Arduino/CanGrow/CanGrow.ino index 83ecde2..2b9dc7a 100644 --- a/Arduino/CanGrow/CanGrow.ino +++ b/Arduino/CanGrow/CanGrow.ino @@ -157,6 +157,7 @@ const char HTMLheader[] PROGMEM = R"EOF(
  • System settings
  • WiFi settings
  • Help
  • +
  • @@ -232,7 +233,7 @@ a:active { border-bottom-left-radius: 3px; } -.nav li a { +.nav li a , .nav span { color: #ddd; display: block; font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; @@ -911,6 +912,7 @@ void WEBlogout() { void WEBhelp() { String body = FPSTR(HTMLheader); body += FPSTR(HTMLhelp); + body += JSreplaceStr("GrowName", "abcdefgh"); body += FPSTR(HTMLfooter); webserver.send(200, "text/html", body); } @@ -1067,7 +1069,10 @@ void POSTwifiSettings() { } - +String JSreplaceStr(String elementID, String content) { + String jsReturn = ""; + return jsReturn; +}