/
SoRusV
/
src_xendil
Обзор
Документация
Войти
/
SoRusV
/
src_xendil
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
html/src/MTimer.htm
205 строк
10 KB
ruslan
Initial commit
29 окт 2024, 11:18
29 окт 2024, 11:18
5c4dcf5
Код
Авторство
О чём код?
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Language" content="ru"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <link href="style.css" rel="stylesheet"> <script type="text/javascript" src="SCORD.js"></script> <script type="text/javascript" src="menu.js"></script> <script src="dynamicTable.js"></script> </head> <!--<style>--> <!--input::-webkit-outer-spin-button,--> <!--input[type=number] {--> <!-- -moz-appearance:textfield;--> <!--}--> <!--</style>--> <body> <!--<iframe align="left" id="idFrameMenu" name=nFrameMenu hidden width="200" height=100% ></iframe>--> <div class="tab" id="MenuNet"></div> <div id="idMenuTab" class="cMenuTab"></div> <div id="idHelpBtn" onclick="myhref('http://xendil.com/ru/help1/timer/');">?</div> <div id="idDivWait" > <h1 id="idDivWaitH">Wait...</h1> <div id="idWaitClose" onmousedown="WaitClose()">x</div> <a id="idHomeLink" onclick="myhref('http://xendil.com');">http://xendil.com</a> </div> <table> <caption>Timers</caption> <thead> <tr> <td scope="col">#</td> <td scope="col">E</td> <td scope="col">Name</td> <td scope="col">Chanel</td> <td scope="col" class="cHide">G_/P_</td> <td scope="col">WDay Su-Sa</td> <td scope="col">T Start</td> <td scope="col">dT on</td> <td scope="col">dT off</td> <td scope="col">Count</td> <td scope="col">Status</td> <!--<td scope="col">Pulse</td>--> <td scope="col"></td> </tr> </thead> <tbody id="{@LTimer@:{}}" > <tr > <td> <input type="number" id="@T{Index}" onchange="onIndexRowChange('{@LTimer@:{}}', this)" value="-1" min=-1 max=100 style="width: 30px"> </td> <td> <input type="checkbox" id="@T{@Enabled@:0}" checked=0 > </td> <td> <input type="text" id="@T{@Name@:0}" value="Name" style="width: 67px" > </td> <td> <nobr> <!--<span class="kvadrat"></span>--> <span id="idColor" style="background-color: #F7EBCC">    </span> <select id="idLChanel" onchange="onChangeChanel(this);"></select> </nobr> </td> <td class="cHide"> <div id="@T{@GPIO_PWM@:0}">-1</div> </td> <td> <nobr> <input type="checkbox" id="@T{@WDay@:[0]}" checked=0 > <input type="checkbox" id="@T{@WDay@:[1]}" checked=0 > <input type="checkbox" id="@T{@WDay@:[2]}" checked=0 > <input type="checkbox" id="@T{@WDay@:[3]}" checked=0 > </nobr> <nobr> <input type="checkbox" id="@T{@WDay@:[4]}" checked=0 > <input type="checkbox" id="@T{@WDay@:[5]}" checked=0 > <input type="checkbox" id="@T{@WDay@:[6]}" checked=0 > </nobr> </td> <td> <!--<nobr>--> <!--<input type="text" id="@T{@TimeStart@:{@H@:0}}" class="cHour" value=00 max=23 onkeyup="onkeyupM(this);">:--> <!--<input type="text" id="@T{@TimeStart@:{@M@:0}}" class="cMin" value=00 max=59 onkeyup="onkeyupM(this)">--> <!--:--> <!--<input type="text" id="@T{@TimeStart@:{@S@:0}}" class="cSec" value=00 max=59 onkeyup="onkeyupM(this);">--> <!--<!–.–>--> <!--<!–<input type="text" id="@T{@TimeStart@:{@MS@:0}}" class="cMSec" value=000 max=999 onkeyup="onkeyupM(this, 3);">–>--> <!--</nobr>--> <input type="text" id="@T{@TimeStart@:0}" value="00:00" class="cTime" onkeydown="return onKeyDownEditTime(this, '23:59:59.999')" onkeyup="return onKeyUpEditTime(this, '23:59:59.999')"> </td> <td> <nobr id="idIntervalOnTime"> <!--<input type="text" id="@T{@IntervalOn@:{@H@:0}}" class="cHour" value=00 max=23 onkeyup="onkeyupM(this);">:--> <!--<input type="text" id="@T{@IntervalOn@:{@M@:0}}" class="cMin" value=00 max=59 onkeyup="onkeyupM(this);">:--> <!--<input type="text" id="@T{@IntervalOn@:{@S@:0}}" class="cSec" value=00 max=59 onkeyup="onkeyupM(this);">.--> <!--<input type="text" id="@T{@IntervalOn@:{@MS@:0}}" class="cMSec" value=000 max=999 onkeyup="onkeyupM(this, 3);">--> <input type="text" id="@T{@IntervalOn@:0}" value="00:00:00" class="cTime" onkeydown="return onKeyDownEditTime(this, '23:59:59.999')" onkeyup="return onKeyUpEditTime(this, '23:59:59.999')"> <button type="button" onclick=PulseMs(this)>T</button> </nobr> <nobr id="idYE"> <input type="text" id="@T{@YE@:0}" value=0 min=0 style="width: 4em"><span id="idDimension">[ml]</span> <button type="button" onclick=PulseYE(this)>T</button> </nobr> </td> <td> <!--<nobr>--> <!--<input type="text" id="@T{@IntervalOff@:{@H@:0}}" class="cHour" value=00 max=23 onkeyup="onkeyupM(this);">:--> <!--<input type="text" id="@T{@IntervalOff@:{@M@:0}}" class="cMin" value=00 max=59 onkeyup="onkeyupM(this);">--> <!--:--> <!--<input type="text" id="@T{@IntervalOff@:{@S@:0}}" class="cSec" value=00 max=59 onkeyup="onkeyupM(this);">--> <!--<!–.–>--> <!--<!–<input type="text" id="@T{@IntervalOff@:{@MS@:0}}" class="cMSec" value=000 max=999 onkeyup="onkeyupM(this, 3);">–>--> <!--</nobr>--> <input type="text" id="@T{@IntervalOff@:0}" value="00:00" class="cTime" onkeydown="return onKeyDownEditTime(this, '23:59:59.999')" onkeyup="return onKeyUpEditTime(this, '23:59:59.999')"> </td> <td> <input type="number" id="@T{@Count@:0}" value="0" step="1" min=0 max=1000000 style="width: 4em"> </td> <td> <div id="@T@S{@Status@:0}" style="background: #ff0000">Disable</div> </td> <!--<td>--> <!--<button type="button" onclick=Pulse(this)>Pulse</button>--> <!--</td>--> <td> <nobr> <button type="button" id="idButAdd" class="add">+</button> <button type="button" id="idButDel" class="del">-</button> </nobr> </td> </tr> </tbody> </table> <table id="TTimer" style="display: none" > <caption>Timer chanels</caption> <thead> <tr> <td scope="col">#</td> <!--<td scope="col">Type</td>--> <td scope="col">Regime</td> <td scope="col">Name</td> <td scope="col">C</td> <td scope="col" class="cHide">G_/P_</td> <td scope="col">Rest</td> </tr> </thead> <tbody id="{@LPWMChanelTimer@:{}}" > <tr visible="false"> <td> <div id="@T{Index}"></div> </td> <td> <select id ="@T{@Regime@:0}" class="selectpicker show-tick"> <option>Off</option> <option>On</option> <option>Auto</option> </select> </td> <td> <div id="@T{@Name@:0}"></div> </td> <td> <input type="color" id="@T{@Color@:0}" > </td> <td class="cHide"> <div id="@T{@GPIO_PWM@:0}">-1</div> </td> <td> <nobr id="idIntervalOnTime"> <input type="text" id="idRestTime" value="00:00" class="cTime" onkeydown="return onKeyDownEditTime(this, '99:59:59.999')" onkeyup="return onKeyUpEditTime(this, '99:59:59.999')"> <button type="button" onclick=SaveRestMs(this)>Save</button> </nobr> <nobr id="idYE"> <input type="text" id="@T@S{@Rest@:0}" value=0 min=0 style="width: 4em"><span id="idDimension">[ml]</span> <button type="button" onclick=SaveRestYE(this)>Save</button> </nobr> <!--<input type="color" id="@T{@Rest@:0}" >--> </td> <td style="visibility: hidden"> <nobr> <button type="button" id="idButAdd" class="add">+</button> <button type="button" id="idButDel" class="del">-</button> </nobr> </td> </tr> </tbody> </table> <p></p> <input value="Send" id="BtnSend" onclick=ShowWait(FSend) type=button class="cHide"> <input value="Save" id="BtnSave" onclick=ShowWait(FSave) type=button> <input value="Refresh" id="BtnRefresh" onclick=ShowWait(FRefresh) type=button> </form> <script src="MTimer.js"></script> <script> </script> </body> </html>