mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-06 11:36:51 +03:00
49 lines
902 B
HTML
49 lines
902 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<link rel="icon" href="favicon.ico" type="image/x-icon">
|
|
<title>Reboot</title>
|
|
<meta charset="utf-8">
|
|
|
|
<style>
|
|
h1 {font-size: 2em;}
|
|
h2 {font-size: 1.5em;}
|
|
h3 {font-size: 1.2em;}
|
|
p {font-size: 1em;}
|
|
|
|
.button {
|
|
padding: 10px 20px;
|
|
width: 211px;
|
|
font-size: 16px;
|
|
}
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body style="font-family: arial; padding: 0px 10px;">
|
|
|
|
<h3>Do you really want to reboot your ESP32 now?</h3>
|
|
|
|
<table class="fixed" border="0">
|
|
<tr>
|
|
<td>
|
|
<button class="button" id="reboot" type="button" onclick="doReboot()">Yes, please reboot</button>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<script>
|
|
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);
|
|
// }
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|