mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Merge pull request #251 from IoTManagerProject/ver4dev
мелкое исправление версии ota
This commit is contained in:
@@ -1,41 +1,47 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
|
||||
<title>IoT Manager 4.4.1</title>
|
||||
<link rel="icon" type="image/png" href="/favicon.ico" />
|
||||
<link rel="stylesheet" href="https://iotmanager.org/esp01ota/build/bundle.css?440" />
|
||||
<title>IoT Manager 4.4.3</title>
|
||||
<link rel="icon" type="image/png" href="/favicon.ico" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://iotmanager.org/esp01ota/build/bundle.css?443"
|
||||
/>
|
||||
</head>
|
||||
|
||||
<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>
|
||||
<script>
|
||||
let script = document.createElement("script");
|
||||
script.src = "https://iotmanager.org/esp01ota/build/bundle.js?443";
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user