|
|
|
@@ -58,10 +58,10 @@ static const char PAGE_INDEX2[] PROGMEM = R"=====(
|
|
|
|
|
<div>
|
|
|
|
|
<label><input id='_st' name='_st' type='checkbox' style="width: 10%; float: left; margin-top: 5px;" onclick='hSC();' {c}>Statická IP konfigurace</label>
|
|
|
|
|
<div id="staticip">
|
|
|
|
|
<label>IP adresa<br><input type="text" name="_i" pattern='((^|\.)((25[0-5])|(2[0-4]\d)|(1\d\d)|([1-9]?\d))){4}$' title='ip adresa ve formatu <cislo>.<cislo>.<cislo>.<cislo>' value='{i}'></label><br>
|
|
|
|
|
<label>Síťová maska<br><input type="text" name="_m" pattern='((^|\.)((25[0-5])|(2[0-4]\d)|(1\d\d)|([1-9]?\d))){4}$' title='ip adresa ve formatu <cislo>.<cislo>.<cislo>.<cislo>' value='{m}'></label><br>
|
|
|
|
|
<label>Síťová brána<br><input type="text" name="_g" pattern='((^|\.)((25[0-5])|(2[0-4]\d)|(1\d\d)|([1-9]?\d))){4}$' title='ip adresa ve formatu <cislo>.<cislo>.<cislo>.<cislo>' value='{g}'></label><br>
|
|
|
|
|
<label>Server DNS<br><input type="text" name="_d" pattern='((^|\.)((25[0-5])|(2[0-4]\d)|(1\d\d)|([1-9]?\d))){4}$' title='ip adresa ve formatu <cislo>.<cislo>.<cislo>.<cislo>' value='{d}'></label><br>
|
|
|
|
|
<label>IP adresa<br><input type="text" name="_i" value='{i}'></label><br>
|
|
|
|
|
<label>Síťová maska<br><input type="text" name="_m" value='{m}'></label><br>
|
|
|
|
|
<label>Síťová brána<br><input type="text" name="_g" value='{g}'></label><br>
|
|
|
|
|
<label>Server DNS<br><input type="text" name="_d" value='{d}'></label><br>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<script>hAP();hSC();</script>
|
|
|
|
@@ -81,9 +81,22 @@ static const char PAGE_PARAM[] PROGMEM = R"=====(
|
|
|
|
|
static const char PAGE_END[] PROGMEM = R"=====(
|
|
|
|
|
<br>
|
|
|
|
|
<button type='submit'>Uložit a restartovat</button></form>
|
|
|
|
|
</div></body></html>
|
|
|
|
|
</div>)====="
|
|
|
|
|
#if defined APP_NAME && defined APP_VERSION
|
|
|
|
|
R"=====(<div style='text-align:right;font-size:11px;'><hr/>)====="
|
|
|
|
|
APP_NAME
|
|
|
|
|
" v"
|
|
|
|
|
APP_VERSION
|
|
|
|
|
R"=====(</div>
|
|
|
|
|
)====="
|
|
|
|
|
#else
|
|
|
|
|
R"=====(<div style='text-align:right;font-size:11px;'><hr/><a href='http://xpablo.cz' target='_blank' style='color:#aaa;'>WiFiConfig by xPablo</a></div>)====="
|
|
|
|
|
#endif
|
|
|
|
|
R"=====(</body></html>
|
|
|
|
|
)=====";
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
<div style='text-align:right;font-size:11px;'><hr/><a href='http://xpablo.cz' target='_blank' style='color:#aaa;'>WiFiConfig by xPablo</a></div>
|
|
|
|
|
*/
|
|
|
|
|
// Nenalezeno zadne SSID
|
|
|
|
|
static const char PAGE_NO_SSID[] PROGMEM = R"=====(
|
|
|
|
|
<div>Nenalezená žádná síť. Občerstvi stránku pro nové hledání.</div>
|
|
|
|
@@ -91,13 +104,13 @@ static const char PAGE_NO_SSID[] PROGMEM = R"=====(
|
|
|
|
|
|
|
|
|
|
// Konfigurace ulozena - restartuji...
|
|
|
|
|
static const char PAGE_SAVED[] PROGMEM = R"=====(
|
|
|
|
|
<!DOCTYPE html><html lang="cs"><head><meta http-equiv="refresh" content="10;url=/"/>
|
|
|
|
|
<!DOCTYPE html><html lang="cs"><head><meta http-equiv="refresh" content="5;url=/"/>
|
|
|
|
|
<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1"/>
|
|
|
|
|
<title>xPablo Setup - Konfigurace uložena</title>
|
|
|
|
|
<style>div,input {margin-bottom: 5px;}body{width:200px;display:block;margin-left:auto;margin-right:auto;}</style>
|
|
|
|
|
</head><body>
|
|
|
|
|
Uloženo do EEPROM...<br/>
|
|
|
|
|
Restart za 10 sekund.
|
|
|
|
|
Restart za 5 sekund.
|
|
|
|
|
</body></html>
|
|
|
|
|
)=====";
|
|
|
|
|
|
|
|
|
@@ -111,11 +124,29 @@ static const char PAGE_CAPTIVEPORTALCATCH[] PROGMEM = R"=====(
|
|
|
|
|
<form action="/config" method="get"><button>Konfigurace WiFi</button></form><br/><form action="/i" method="get"><button>Informace o modulu</button></form><br/><form action="/r" method="post"><button class="red">Reset</button></form><br>
|
|
|
|
|
)=====";
|
|
|
|
|
|
|
|
|
|
// druha cast (mezi 1. a druhou cast muzeme doplnit dodatecne informace)
|
|
|
|
|
// druha cast (mezi 1. a 2. cast muzeme doplnit dodatecne informace)
|
|
|
|
|
static const char PAGE_CAPTIVEPORTALCATCH2[] PROGMEM = R"=====(
|
|
|
|
|
</div></body></html>
|
|
|
|
|
</div>
|
|
|
|
|
)====="
|
|
|
|
|
#if defined APP_NAME && defined APP_VERSION
|
|
|
|
|
R"=====(<div style='text-align:right;font-size:11px;'><hr/>)====="
|
|
|
|
|
APP_NAME
|
|
|
|
|
" v"
|
|
|
|
|
APP_VERSION
|
|
|
|
|
R"=====(</div>
|
|
|
|
|
)====="
|
|
|
|
|
#else
|
|
|
|
|
R"=====(<div style='text-align:right;font-size:11px;'><hr/><a href='http://xpablo.cz' target='_blank' style='color:#aaa;'>WiFiConfig by xPablo</a></div>)====="
|
|
|
|
|
#endif
|
|
|
|
|
R"=====(</body></html>
|
|
|
|
|
)=====";
|
|
|
|
|
|
|
|
|
|
static const char PAGE_RESTART[] PROGMEM = R"=====(
|
|
|
|
|
Restartuji...
|
|
|
|
|
<!DOCTYPE html><html lang="cs"><head><meta http-equiv="refresh" content="5;url=/"/>
|
|
|
|
|
<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1"/>
|
|
|
|
|
<title>xPablo Setup - Restart</title>
|
|
|
|
|
<style>div,input {margin-bottom: 5px;}body{width:200px;display:block;margin-left:auto;margin-right:auto;}</style>
|
|
|
|
|
</head><body>
|
|
|
|
|
Restartuji...
|
|
|
|
|
</body></html>
|
|
|
|
|
)=====";
|
|
|
|
|