mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 02:39:57 +02:00
Add files
This commit is contained in:
parent
57c97b3f07
commit
fe456b62b3
4 changed files with 50 additions and 1 deletions
27
Software/src/devboard/webserver/advanced_battery_html.cpp
Normal file
27
Software/src/devboard/webserver/advanced_battery_html.cpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
#include "advanced_battery_html.h"
|
||||
#include <Arduino.h>
|
||||
#include "../../datalayer/datalayer.h"
|
||||
|
||||
String advanced_battery_processor(const String& var) {
|
||||
if (var == "X") {
|
||||
String content = "";
|
||||
//Page format
|
||||
content += "<style>";
|
||||
content += "body { background-color: black; color: white; }";
|
||||
content += "</style>";
|
||||
|
||||
// Start a new block with a specific background color
|
||||
content += "<div style='background-color: #303E47; padding: 10px; margin-bottom: 10px;border-radius: 50px'>";
|
||||
|
||||
content += "<h4 style='color: white;'>SSID: <span id='SSID'></span> <button onclick='editSSID()'>Edit</button></h4>";
|
||||
|
||||
content += "</div>";
|
||||
|
||||
content += "<button onclick='goToMainPage()'>Back to main page</button>";
|
||||
content += "<script>";
|
||||
content += "function goToMainPage() { window.location.href = '/'; }";
|
||||
content += "</script>";
|
||||
return content;
|
||||
}
|
||||
return String();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue