Snapshot to capture working refresh...
This commit is contained in:
parent
dab1590608
commit
a996c13e63
|
@ -91,9 +91,9 @@ const char index_html[] PROGMEM = R"rawliteral(
|
|||
}
|
||||
// Refresh page after submit so values are right https://stackoverflow.com/a/1860732/2152245
|
||||
window.onload = function() {
|
||||
document.getElementById("hidden-form").onload = function() {
|
||||
top.location.reload();
|
||||
}
|
||||
//document.getElementById("hidden-form").onload = function() {
|
||||
//top.location.reload();
|
||||
//}
|
||||
// Current start date to string
|
||||
s = %inputStartTimeUnix%;
|
||||
current_start = new Date(s * 1000);
|
||||
|
@ -110,7 +110,7 @@ const char index_html[] PROGMEM = R"rawliteral(
|
|||
|
||||
<p>Local time: <b><span id=local-time-unix></span></b></p>
|
||||
|
||||
<form action="/get" target="hidden-form" onsubmit="putDate(this);" accept-charset=utf-8>
|
||||
<form action="/get" onsubmit="putDate(this);" accept-charset=utf-8>
|
||||
|
||||
<p>Sending program (cycle doesn't work yet) (current value: <b>%inputSend%</b>):
|
||||
<select name="inputSend" id="send-program">
|
||||
|
@ -597,8 +597,8 @@ void setup() {
|
|||
// else {
|
||||
// inputMessage = "No message sent";
|
||||
// }
|
||||
request->send(200, "text/plain", inputMessage);
|
||||
|
||||
//request->send(200, "text/plain", inputMessage);
|
||||
request->redirect("/");
|
||||
});
|
||||
server.onNotFound(notFound);
|
||||
server.begin();
|
||||
|
|
Loading…
Reference in New Issue
Block a user