Корректируем новую схему с новыми устройствами esp01

This commit is contained in:
2022-10-12 15:48:05 +03:00
parent 3af9b457de
commit 0e44ba1a3e
20 changed files with 380 additions and 502 deletions

View File

@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html lang="en">
<head>
@@ -5,12 +6,36 @@
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>IoT Manager 4.4.1</title>
<link rel="icon" type="image/png" href="https://iotmanager.org/favicon.ico" />
<link rel="stylesheet" href="https://iotmanager.org/build/bundle.css?441" />
<script defer src="https://iotmanager.org/build/bundle.js?441"></script>
<link rel="icon" type="image/png" href="/favicon.ico" />
<link rel="stylesheet" href="https://iotmanager.org/esp01ota/build/bundle.css?440" />
</head>
<body></body>
<body>
<script>
let script = document.createElement('script');
script.src = "https://iotmanager.org/esp01ota/build/bundle.js?440";
script.onload = execute;
document.head.append(script);
script.onerror = error;
function error() {
console.log("ошибка при загрузке ресурса");
}
function execute() {
console.log("скрипт загружен");
document.getElementById("my-form").style.display="none";
}
</script>
<div style="display: flex; align-items: center; justify-content: center;" >
<form method="GET" action="http://192.168.4.1/set" id="my-form">
<br><br><h1>Настройка WiFi</h1><br>
<div>
<input name="routerssid" type="text" placeholder="WIFI">
</div><br>
<div>
<input name="routerpass" placeholder="Password">
</div><br><br>
<input type="submit" value="сохранить">
</form>
</div>
</body>
</html>