2020-12-29 09:53:15 +00:00
|
|
|
const char HTTP_HEAD_LAST_SCRIPT[] PROGMEM =
|
|
|
|
"function jd(){" // Add label name='' based on provided id=''
|
|
|
|
"var t=0,i=document.querySelectorAll('input,button,textarea,select');"
|
|
|
|
"while(i.length>=t){"
|
|
|
|
"if(i[t]){"
|
|
|
|
"i[t]['name']=(i[t].hasAttribute('id')&&(!i[t].hasAttribute('name')))?i[t]['id']:i[t]['name'];"
|
|
|
|
"}"
|
|
|
|
"t++;"
|
|
|
|
"}"
|
|
|
|
"}"
|
2021-10-03 19:11:14 +01:00
|
|
|
"function sf(s){"
|
|
|
|
"var t=0,i=document.querySelectorAll('.hf');"
|
|
|
|
"while(i.length>=t){"
|
|
|
|
"if(i[t]){"
|
|
|
|
"i[t].style.display=s?'block':'none';"
|
|
|
|
"}"
|
|
|
|
"t++;"
|
|
|
|
"}"
|
|
|
|
"}"
|
2020-12-29 09:53:15 +00:00
|
|
|
"wl(jd);" // Add name='' to any id='' in input,button,textarea,select
|
|
|
|
"</script>";
|