Set up scheduled program cycles #24
@@ -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
 | 
					    // Refresh page after submit so values are right https://stackoverflow.com/a/1860732/2152245
 | 
				
			||||||
    window.onload = function() {
 | 
					    window.onload = function() {
 | 
				
			||||||
      document.getElementById("hidden-form").onload = function() {
 | 
					      //document.getElementById("hidden-form").onload = function() {
 | 
				
			||||||
        top.location.reload();
 | 
					        //top.location.reload();
 | 
				
			||||||
      }
 | 
					      //}
 | 
				
			||||||
      // Current start date to string 
 | 
					      // Current start date to string 
 | 
				
			||||||
      s = %inputStartTimeUnix%;
 | 
					      s = %inputStartTimeUnix%;
 | 
				
			||||||
      current_start = new Date(s * 1000);
 | 
					      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>
 | 
					  <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>):
 | 
					    <p>Sending program (cycle doesn't work yet) (current value: <b>%inputSend%</b>):
 | 
				
			||||||
    <select name="inputSend" id="send-program">
 | 
					    <select name="inputSend" id="send-program">
 | 
				
			||||||
@@ -597,8 +597,8 @@ void setup() {
 | 
				
			|||||||
    // else {
 | 
					    // else {
 | 
				
			||||||
    //   inputMessage = "No message sent";
 | 
					    //   inputMessage = "No message sent";
 | 
				
			||||||
    // }
 | 
					    // }
 | 
				
			||||||
    request->send(200, "text/plain", inputMessage);
 | 
					    //request->send(200, "text/plain", inputMessage);
 | 
				
			||||||
 | 
					    request->redirect("/");
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
  server.onNotFound(notFound);
 | 
					  server.onNotFound(notFound);
 | 
				
			||||||
  server.begin();
 | 
					  server.begin();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user