Improved RESET countdown display

pull/200/head
Hieromon Ikasamo 5 years ago
parent 3d2321156d
commit ba944b2c2a
  1. 7
      src/AutoConnectPage.cpp

@ -591,7 +591,12 @@ const char AutoConnect::_PAGE_RESETTING[] PROGMEM = {
"<title>" AUTOCONNECT_PAGETITLE_RESETTING "</title>" "<title>" AUTOCONNECT_PAGETITLE_RESETTING "</title>"
"</head>" "</head>"
"<body>" "<body>"
"<h2>{{RESET}}</h2>" "<h3><div style=\"display:inline-block\"><span>{{RESET}}</span><span id=\"cd\"></span></div></h3>"
"<script type=\"text/javascript\">"
"window.onload=function(){"
"var t={{UPTIME}},elm=document.getElementById(\"cd\"),ct=setInterval(function(){--t?elm.innerHTML=String(t)+\"&nbsp;sec.\":(elm.innerHTML=\"expiry\",clearInterval(ct))},1e3);"
"};"
"</script>"
"</body>" "</body>"
"</html>" "</html>"
}; };

Loading…
Cancel
Save