Footer, info pro ESP32, lepsi reset stranka
This commit is contained in:
		@@ -1,5 +1,8 @@
 | 
			
		||||
/*
 | 
			
		||||
 * V6.3.1- 1.9.2019 - Odstraneni HTML5 validatoru - delaly akorat problemy anedala se ulozit konfigurace i kdyz byly polozky skryty
 | 
			
		||||
 * v6.3.2- 4.10.2019 - Informace o aplikaci a jeji verzi do footeru, zrychlen restart z 10 na 5 sekund, vylepsena stranka pro reset
 | 
			
		||||
 *                      verze pro ESP32 zobrazuje neco malo informaci o stavu pripojeni a duvodu vstupu do WifiConfig
 | 
			
		||||
 *
 | 
			
		||||
 * V6.3.1- 1.9.2019 - Odstraneni HTML5 validatoru - delaly akorat problemy a nedala se ulozit konfigurace i kdyz byly polozky skryty
 | 
			
		||||
 *
 | 
			
		||||
 * V6.3 - 12.8.2019 - IP adresa Captive portalu je zmenena na 172.217.28.1 kvuli funkcnosti na Android zarizenich (viz. zmena zde https://github.com/esp8266/Arduino/blob/master/libraries/DNSServer/examples/CaptivePortal/CaptivePortal.ino)
 | 
			
		||||
 *             ladici vypis pri zachyceni presmerovani v Captive portalu.
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
 * @file WiFiConfig.h
 | 
			
		||||
 * @author Pavel Brychta, http://www.xpablo.cz
 | 
			
		||||
 *
 | 
			
		||||
 * Copyright (c) 2015-18 Pavel Brychta. All rights reserved.
 | 
			
		||||
 * Copyright (c) 2015-19 Pavel Brychta. All rights reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * This library is free software; you can redistribute it and/or
 | 
			
		||||
 * modify it under the terms of the GNU Lesser General Public
 | 
			
		||||
 
 | 
			
		||||
@@ -81,10 +81,21 @@ 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.z' target='_blank' style='color:#aaa;'>WiFiConfig by xPablo</a></div>
 | 
			
		||||
<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"=====(
 | 
			
		||||
@@ -93,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>
 | 
			
		||||
)=====";
 | 
			
		||||
 | 
			
		||||
@@ -113,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>
 | 
			
		||||
)=====";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user