-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_html.h
79 lines (71 loc) · 2.57 KB
/
index_html.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
const char index_html[] PROGMEM = R"=====(
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script>
function submitMessage() { //evia uma notificalção que a informação foi salva no esp com sucesso
alert("Informação foi salva no esp");
setTimeout(function(){ document.location.reload(false); }, 500);
}</script>
<title>Hora Do Lanche</title>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
background: linear-gradient(to right, rgb(29, 136, 207), rgb(110, 25, 143));
text-align: center;
color: #fff;
}
.container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
width: 50%;
background-color: rgba(0, 0, 0, 0.5);
padding: 1em;
border-radius: 10px;
}
button {
background-color: slateblue;
color: #fff;
border: none;
padding: 1em;
border-radius: 10px;
box-shadow: 1px 1px 6px black;
cursor: pointer;
}
button:hover {
background-color: steelblue;
}
.final-step,
.second-step {
display: none;
}
input {
padding: 5px;
border-radius: 5px;
border: none;
outline: none;
}
#resultado {
font-size: 25px;
}
</style>
<title>Bem vindo a HORA DO LANCHE</title>
</head>
<body>
<form action="/get" target="hidden-form">
Horario atual: %inputIntH% <input type="number" name="inputIntH" min="0" max="23" maxlength="2" onkeypress="return (event.charCode !=8 && event.charCode ==0 || (event.charCode >= 48 && event.charCode <= 57))" >
<input type="submit" value="Cadastrar" onclick="submitMessage()">
</form><br>
<form action="/get" target="hidden-form">
Minutos atual: %inputIntM% <input type="number" name="inputIntM" min="0" max="59" maxlength="2" onkeypress="return (event.charCode !=8 && event.charCode ==0 || (event.charCode >= 48 && event.charCode <= 57))">
<input type="submit" value="Cadastrar" onclick="submitMessage()">
</form>
<iframe style="display:none" name="hidden-form"></iframe>
</body>
</html>
)=====";