mirror of
https://github.com/ADElectronics/RTL00_WEB_WS2812.git
synced 2024-12-05 02:10:29 +00:00
58 lines
No EOL
1.9 KiB
HTML
58 lines
No EOL
1.9 KiB
HTML
<!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> |