mirror of
https://github.com/ADElectronics/RTL00_WEB_WS2812.git
synced 2026-07-04 16:55:40 +00:00
SDK update
This commit is contained in:
parent
7ac60bf6e1
commit
68362feaa1
1153 changed files with 97410 additions and 592771 deletions
58
Firmware/WEBFiles/index.html
Normal file
58
Firmware/WEBFiles/index.html
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<title>Глупая гирлянда</title>
|
||||
<link href="elements.css" rel="stylesheet">
|
||||
<style> </style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="hblockcont">
|
||||
<input type="image" src="off.gif" class='off' id="ws_isenable" onclick="changeOnOff(this)" />
|
||||
</div>
|
||||
|
||||
<div class="tab" align="center">
|
||||
<button class="tablinks" onclick="page_select(event, 0)">Режим работы</button>
|
||||
<button class="tablinks" onclick="page_select(event, 1)">Настройки Wi-Fi</button>
|
||||
</div>
|
||||
|
||||
<div style="width:100%;">
|
||||
<iframe id="child_page" frameborder="0" scrolling="auto" ></iframe>
|
||||
</div>
|
||||
|
||||
<script src="elements.js"></script>
|
||||
<script type="text/javascript">
|
||||
function page_select(evt, tabID)
|
||||
{
|
||||
// Выделяем выбранную кнопку
|
||||
tablinks = document.getElementsByClassName("tablinks");
|
||||
for (i = 0; i < tablinks.length; i++) {
|
||||
tablinks[i].className = tablinks[i].className.replace(" active", "");
|
||||
}
|
||||
evt.currentTarget.className += " active";
|
||||
|
||||
// Показываем выбранный контент
|
||||
if (tabID == '0') document.getElementById("child_page").src = "filters.html";
|
||||
else if (tabID == '1') document.getElementById("child_page").src = "settings.html";
|
||||
}
|
||||
|
||||
function isenable_select(elem, val) {
|
||||
if (val.ws_isenable == '0') {
|
||||
elem.src = 'off.gif';
|
||||
elem.className = 'off';
|
||||
}
|
||||
else {
|
||||
elem.src = 'on.gif';
|
||||
elem.className = 'on';
|
||||
}
|
||||
}
|
||||
|
||||
var cfg_f0 =
|
||||
{
|
||||
ws_isenable: "~ws_isenable~",
|
||||
}
|
||||
isenable_select(document.getElementById("ws_isenable"), cfg_f0);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue