mirror of https://github.com/arendst/Tasmota.git
Update xdrv_01_webserver.ino
This commit is contained in:
parent
3a3a26bf5e
commit
8c473adc86
|
@ -59,17 +59,16 @@ const char HTTP_HEAD[] PROGMEM =
|
|||
"function eb(s){"
|
||||
"return document.getElementById(s);" // Alias to save code space
|
||||
"}"
|
||||
// "eb=s=>document.getElementById(s);" // Alias to save code space - ES6 fails on old browsers like IE
|
||||
|
||||
"function qs(s){" // Alias to save code space
|
||||
"return document.querySelector(s);"
|
||||
"}"
|
||||
// "qs=s=>document.querySelector(s);" // Alias to save code space - ES6 fails on old browsers like IE
|
||||
|
||||
"function sp(i){" // Toggle password visibility
|
||||
"eb(i).type=(eb(i).type==='text'?'password':'text');"
|
||||
"}"
|
||||
// "sp=i=>eb(i).type=(eb(i).type==='text'?'password':'text');" // Toggle password visibility - ES6 fails on old browsers like IE
|
||||
// Following bytes saving ES6 syntax fails on old browsers like IE 11 - https://kangax.github.io/compat-table/es6/
|
||||
// "eb=s=>document.getElementById(s);" // Alias to save code space
|
||||
// "qs=s=>document.querySelector(s);" // Alias to save code space
|
||||
// "sp=i=>eb(i).type=(eb(i).type==='text'?'password':'text');" // Toggle password visibility
|
||||
|
||||
// https://www.htmlgoodies.com/beyond/javascript/article.php/3724571/Using-Multiple-JavaScript-Onload-Functions.htm
|
||||
"function wl(f){" // Execute multiple window.onload
|
||||
|
|
Loading…
Reference in New Issue