-
Notifications
You must be signed in to change notification settings - Fork 4
/
Page_index.h
45 lines (35 loc) · 1.48 KB
/
Page_index.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// HTML PAGE
//
const char PAGE_index[] PROGMEM = R"=====(
<html>
<head>
<title>TexTime</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<strong>TexTime</strong>
<hr>
<a href="/info.html" style="width:250px" class="btn btn--m btn--blue" >System Information</a><br>
<a href="/general.html" style="width:250px" class="btn btn--m btn--blue" >General Configuration</a><br>
<a href="/network.html" style="width:250px" class="btn btn--m btn--blue" >Network Configuration</a><br>
<a href="/ntp.html" style="width:250px" class="btn btn--m btn--blue" >Time Configuration</a><br>
<a href="/mqtt.html" style="width:250px" class="btn btn--m btn--blue" >MQTT Configuration</a><br>
<a href="/update" style="width:250px" class="btn btn--m btn--blue" >Update Firmware</a><br>
<hr>
<span><a href="http://www.psykokwak.com/" style="text-decoration:none" >By Psykokwak</a></span><br>
<script>
window.onload = function ()
{
load("style.css","css", function()
{
load("microajax.js","js", function()
{
// Do something after load...
});
});
}
function load(e,t,n){if("js"==t){var a=document.createElement("script");a.src=e,a.type="text/javascript",a.async=!1,a.onload=function(){n()},document.getElementsByTagName("head")[0].appendChild(a)}else if("css"==t){var a=document.createElement("link");a.href=e,a.rel="stylesheet",a.type="text/css",a.async=!1,a.onload=function(){n()},document.getElementsByTagName("head")[0].appendChild(a)}}
</script>
</body>
)=====";