-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
144 lines (141 loc) · 4.03 KB
/
index.html
File metadata and controls
144 lines (141 loc) · 4.03 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Exemplo API Status - Central Macatuba</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.6;
color: #000000;
background-color: #FFFFFF;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
header {
text-align: center;
margin-bottom: 40px;
border-bottom: 3px solid #FF0000;
padding-bottom: 20px;
}
h1 {
color: #FF0000;
margin-bottom: 10px;
}
h2 {
color: #FF0000;
border-left: 4px solid #FF0000;
padding-left: 15px;
margin-top: 30px;
}
h3, h4, h5, h6 {
color: #FF0000;
}
.subtitle {
font-size: 1.1em;
color: #000000;
}
.section {
margin-bottom: 40px;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
background-color: #FFFFFF;
}
th, td {
border: 1px solid #000000;
padding: 12px;
text-align: left;
color: #000000;
background-color: #FFFFFF;
}
th {
background-color: #FF0000;
font-weight: bold;
color: #FFFFFF;
}
tr:nth-child(even) {
background-color: #F5F5F5;
}
a {
color: #FF0000;
text-decoration: none;
font-weight: bold;
}
a:hover {
text-decoration: underline;
color: #CC0000;
}
button {
background-color: #FF0000;
color: #FFFFFF;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
font-weight: bold;
font-size: 1em;
}
button:hover {
background-color: #CC0000;
}
pre {
background-color: #F5F5F5;
border: 1px solid #FF0000;
border-left: 4px solid #FF0000;
padding: 15px;
overflow-x: auto;
color: #000000;
}
code {
background-color: #F5F5F5;
color: #000000;
padding: 2px 6px;
border-radius: 3px;
}
.footer {
text-align: center;
margin-top: 40px;
padding-top: 20px;
border-top: 2px solid #FF0000;
color: #000000;
font-size: 0.9em;
}
input, textarea, select {
background-color: #FFFFFF;
color: #000000;
border: 1px solid #FF0000;
padding: 8px;
border-radius: 3px;
}
input:focus, textarea:focus, select:focus {
outline: none;
border-color: #CC0000;
box-shadow: 0 0 5px #FF0000;
}
</style>
</head>
<body>
<h1>Exemplo API Status</h1>
<p>Exemplo de integração com o serviço Status.</p>
<button onclick="testar()">Testar API</button>
<pre id="resultado">Os resultados aparecerão aqui...</pre>
<script>
async function testar() {
try {
const res = await fetch('https://publica.api.centralmacatuba.eu.org/status/verificar.php');
const data = await res.json();
document.getElementById('resultado').textContent = JSON.stringify(data, null, 2);
} catch (e) {
document.getElementById('resultado').textContent = 'Erro ao conectar com a API pública.';
}
}
</script>
<p><a href="../">Voltar para a Home</a></p>
</body>
</html>