Tasmota/tasmota/html_uncompressed/HTTP_GV_PAGE.h

25 lines
997 B
C
Raw Normal View History

2024-01-13 14:16:34 +00:00
const char HTTP_GV_PAGE[] PROGMEM =
2024-01-28 16:34:15 +00:00
"<!DOCTYPE html>"
"<html lang='en'>"
"<head>"
2024-01-13 14:16:34 +00:00
"<title>%s - GPIO Viewer</title>" // SettingsTextEscaped(SET_DEVICENAME).c_str()
2024-01-28 16:34:15 +00:00
"<meta charset='UTF-8'>"
2024-01-13 14:16:34 +00:00
"<base href='%s'>" // GV_BASE_URL
2024-01-28 16:34:15 +00:00
"<link rel='icon' href='favicon.ico'>"
"<meta name='viewport' content='width=device-width, initial-scale=1.0'>"
"<script type='module' crossorigin src='GPIOViewerVue.js'>"
2024-01-13 14:16:34 +00:00
"</script>"
2024-01-28 16:34:15 +00:00
"<link rel='stylesheet' crossorigin href='assets/main.css'>"
2024-01-13 14:16:34 +00:00
"</head>"
"<body>"
2024-01-28 16:34:15 +00:00
"<div id='app'></div>"
"<script>"
"window.gpio_settings = {"
"ip:'%s'," // WiFi.localIP().toString().c_str()
"port:'%d'," // GV_PORT
"freeSketchRam:'%d KB'" // ESP_getFreeSketchSpace() / 1024
"};"
"</script>"
2024-01-13 14:16:34 +00:00
"</body>"
2024-01-28 16:34:15 +00:00
"</html>";