Integrate RTC chip #16

Merged
W1CDN merged 5 commits from add-rtc into main 2023-09-03 11:00:47 -05:00
Showing only changes of commit d5852bb3bb - Show all commits

View File

@ -60,10 +60,6 @@ const char index_html[] PROGMEM = R"rawliteral(
<title>ESP Input Form</title> <title>ESP Input Form</title>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<script> <script>
function submitMessage() {
<!--alert("Saved value to ESP SPIFFS");-->
setTimeout(function(){ document.location.reload(false); }, 500);
}
var putDate = function(form) { var putDate = function(form) {
form.inputTimeUnix.value = Math.floor(Date.now() / 1000); form.inputTimeUnix.value = Math.floor(Date.now() / 1000);
}; };
@ -91,12 +87,9 @@ const char index_html[] PROGMEM = R"rawliteral(
WPM (current value %inputWPM%): <input type="number " name="inputWPM" value = %inputWPM%> (doesn't work yet)<br> WPM (current value %inputWPM%): <input type="number " name="inputWPM" value = %inputWPM%> (doesn't work yet)<br>
<input type="hidden" name="inputTimeUnix" id="js_time_unix"> <input type="hidden" name="inputTimeUnix" id="js_time_unix">
<script>
<!-- document.write(Date.now()); -->
</script>
inputFloat (current value %inputFloat%): <input type="number " name="inputFloat" value = %inputFloat%><br> inputFloat (current value %inputFloat%): <input type="number " name="inputFloat" value = %inputFloat%><br>
<input type="submit" value="Submit" onclick="submitMessage()"> <input type="submit" value="Submit"">
</form> </form>
<iframe style="display:none" name="hidden-form"></iframe> <iframe style="display:none" name="hidden-form"></iframe>
</body></html>)rawliteral"; </body></html>)rawliteral";