@@ -400,7 +400,7 @@ extern ESP_WM_LITE_Configuration defaultConfig;
400
400
401
401
// -- HTML page fragments
402
402
403
- const char ESP_WM_LITE_HTML_HEAD_START[] /* PROGMEM*/ = " <!DOCTYPE html><html><head><title>ESP_WM_LITE</title>" ;
403
+ const char ESP_WM_LITE_HTML_HEAD_START[] /* PROGMEM*/ = " <!DOCTYPE html><html><head><title>ESP_WM_LITE</title><meta name='viewport' content='width=device-width, initial-scale=1'> " ;
404
404
405
405
const char ESP_WM_LITE_HTML_HEAD_STYLE[] /* PROGMEM*/ =
406
406
" <style>div,input{padding:5px;font-size:1em;}input{width:95%;}body{text-align: center;}button{background-color:#16A1E7;color:#fff;line-height:2.4rem;font-size:1.2rem;width:100%;}fieldset{border-radius:0.3rem;margin:0px;}</style>" ;
@@ -1369,7 +1369,7 @@ class ESP_WiFiManager_Lite
1369
1369
#endif
1370
1370
1371
1371
#if USING_CORS_FEATURE
1372
- const char * _CORS_Header = WM_HTTP_CORS_ALLOW_ALL; // "*";
1372
+ const char * _CORS_Header = WM_HTTP_CORS_ALLOW_ALL; // "*";
1373
1373
#endif
1374
1374
1375
1375
// ////////////////////////////////////
@@ -2634,6 +2634,7 @@ class ESP_WiFiManager_Lite
2634
2634
#endif
2635
2635
2636
2636
#if SCAN_WIFI_NETWORKS
2637
+
2637
2638
ESP_WML_LOGDEBUG1 (WiFiNetworksFound, F (" SSIDs found, generating HTML now" ));
2638
2639
// Replace HTML <input...> with <select...>, based on WiFi network scan in startConfigurationMode()
2639
2640
@@ -2661,9 +2662,7 @@ class ESP_WiFiManager_Lite
2661
2662
ESP_WML_LOGDEBUG1 (F (" pitem:" ), pitem);
2662
2663
pitem.replace (" [[input_id1]]" , " <input id='id1' list='SSIDs'>" + String (ESP_WM_LITE_DATALIST_START) + " 'SSIDs'>" +
2663
2664
ListOfSSIDs + ESP_WM_LITE_DATALIST_END);
2664
-
2665
2665
ESP_WML_LOGDEBUG1 (F (" pitem:" ), pitem);
2666
-
2667
2666
#else
2668
2667
pitem.replace (" [[input_id]]" , " <select id='id'>" + ListOfSSIDs + ESP_WM_LITE_SELECT_END);
2669
2668
pitem.replace (" [[input_id1]]" , " <select id='id1'>" + ListOfSSIDs + ESP_WM_LITE_SELECT_END);
0 commit comments