Added a pattern to the static IP fields

pull/137/head
Hieromon Ikasamo 5 years ago
parent 042e9300a1
commit 650885f0cf
  1. 4
      src/AutoConnectPage.cpp

@ -713,6 +713,10 @@ const char AutoConnect::_PAGE_CONFIGNEW[] PROGMEM = {
"</div>"
"</div>"
"<script type=\"text/javascript\">"
"window.onload=function(){"
"['sip','gw','nm','ns1','ns2'].forEach(function(n,o,t){"
"io=document.getElementById(n),io.placeholder='0.0.0.0',io.pattern='^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$'})"
"};"
"function onFocus(e){"
"document.getElementById('ssid').value=e,document.getElementById('passphrase').focus()"
"}"

Loading…
Cancel
Save