forked from forkineye/ESPixelStick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page_root.h
28 lines (26 loc) · 1.1 KB
/
page_root.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef PAGE_ROOT_H
#define PAGE_ROOT_H
const char PAGE_ROOT[] PROGMEM = R"=====(
<title id="title"></title>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" href="style.css" type="text/css"/>
<script src="/microajax.js"></script>
<strong>ESPixelStick</strong>
<hr>
<a href="config/net.html" style="width:250px" class="btn btn--m btn--blue">Network Configuration</a><br>
<a href="config/pixel.html" style="width:250px" class="btn btn--m btn--blue">Pixel Configuration</a><br>
<a href="admin.html" style="width:250px" class="btn btn--m btn--blue">Administration</a><br>
<a href="status/net.html" style="width:250px" class="btn btn--m btn--blue">Network Status</a><br>
<a href="status/e131.html" style="width:250px" class="btn btn--m btn--blue">E1.31 Status</a><hr>
<pre id="name"></pre>
<script>
setValues("/rootvals");
</script>
)=====";
void send_root_vals_html() {
String values = "";
values += "name|div|" + (String)config.name + "\n";
values += "title|div|" + String("ESPS - ") + (String)config.name + "\n";
web.send(200, "text/plain", values);
}
#endif