RTL00_WEB_WS2812/Firmware/RTLGDB/WEBFiles/index.html

53 lines
1.7 KiB
HTML
Raw Normal View History

2017-12-26 17:49:06 +00:00
<!DOCTYPE html>
2017-12-24 09:49:22 +00:00
<html>
<head>
2017-12-26 17:49:06 +00:00
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Глупая гирлянда</title>
<link href="elements.css" rel="stylesheet">
2017-12-28 20:32:41 +00:00
<style>
</style>
2017-12-24 09:49:22 +00:00
</head>
<body>
2017-12-26 17:49:06 +00:00
<div class="hblockcont">
<input type="image" src="off.gif" class='off' name='ws_isenable' onclick="changeOnOff(this)" />
2017-12-24 09:49:22 +00:00
</div>
2017-12-26 17:49:06 +00:00
<div class="tab" align="center">
2017-12-28 20:32:41 +00:00
<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>
2017-12-26 17:49:06 +00:00
</div>
2017-12-24 09:49:22 +00:00
<script src="elements.js"></script>
<script type="text/javascript">
2017-12-28 20:32:41 +00:00
function page_select(evt, tabID)
2017-12-26 17:49:06 +00:00
{
2017-12-28 20:32:41 +00:00
// Выделяем выбранную кнопку
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";
}
2017-12-26 17:49:06 +00:00
var cfg_f0 =
{
ws_isenable: "~ws_isenable~",
}
2017-12-28 20:32:41 +00:00
document.addEventListener('DOMContentLoaded', function()
{
setFormValues(document.getElementsByName("ws_isenable"), cfg_f0);
});
2017-12-24 09:49:22 +00:00
</script>
</body>
</html>