mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-30 01:06:11 +02:00
added regex to inverter name and MQTT topic (setup.html)
beautified serial.html added ticker for wifi loop #515 reverted sunrise / sunset ticker to most recent version
This commit is contained in:
parent
c71975a164
commit
6bb8a4e448
11 changed files with 76 additions and 42 deletions
|
@ -129,7 +129,7 @@ function lbl(htmlfor, val, cl=null, id=null) {
|
|||
return e;
|
||||
}
|
||||
|
||||
function inp(name, val, max=32, cl=["text"], id=null, type=null) {
|
||||
function inp(name, val, max=32, cl=["text"], id=null, type=null, pattern=null, title=null) {
|
||||
e = document.createElement('input');
|
||||
e.classList.add(...cl);
|
||||
e.name = name;
|
||||
|
@ -137,6 +137,8 @@ function inp(name, val, max=32, cl=["text"], id=null, type=null) {
|
|||
if(null != max) e.maxLength = max;
|
||||
if(null != id) e.id = id;
|
||||
if(null != type) e.type = type;
|
||||
if(null != pattern) e.pattern = pattern;
|
||||
if(null != title) e.title = title;
|
||||
return e;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue