mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-11 14:07:00 +03:00
Update 20200925
This commit is contained in:
@@ -29,12 +29,15 @@ textarea {
|
||||
<tr><td><h2>Config.ini:</h2></td></tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<textarea id="inputTextToSave" cols="117" rows="38"></textarea>
|
||||
<textarea id="inputTextToSave" cols="100" rows="33"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button class="button" onclick="saveTextAsFile()">Update Config.ini</button></td>
|
||||
</tr>
|
||||
<td><button class="button" onclick="saveTextAsFile()">Update Config.ini</button></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button class="button" id="reboot" type="button" onclick="doReboot()">Reboot to activate updates</button></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<script type="text/javascript" src="./gethost.js"></script>
|
||||
@@ -59,6 +62,17 @@ function saveTextAsFile()
|
||||
FileSendContent(textToSave, "/config/config.ini", basepath);
|
||||
}
|
||||
}
|
||||
|
||||
function doReboot() {
|
||||
if (confirm("Are you sure you want to reboot the ESP32?")) {
|
||||
var stringota = "/reboot";
|
||||
window.location = stringota;
|
||||
window.location.href = stringota;
|
||||
window.location.assign(stringota);
|
||||
window.location.replace(stringota);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
LoadConfigNeu();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user