-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoffline.html
More file actions
256 lines (223 loc) · 5.87 KB
/
offline.html
File metadata and controls
256 lines (223 loc) · 5.87 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<!DOCTYPE html>
<html lang="pt">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<title>Estás offline.</title>
<!-- Inline the page's stylesheet. -->
<style>
body {
font-family: helvetica, arial, sans-serif;
margin: 2em;
}
h1 {
font-style: italic;
color: #b4b3b3;
font-family: "Barlow Condensed", sans-serif;
font-size: xx-large;
}
p {
margin-block: 1rem;
font-family: "Barlow Condensed", sans-serif;
font-size: x-large;
color: #fff;
}
button {
display: block;
font-family: "Barlow Condensed", sans-serif;
}
@import url('https://fonts.googleapis.com/css2?family=Tiny5&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body {
background:linear-gradient(to right, blue, yellow);
font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
main {
font-family: "Barlow Condensed", sans-serif;
font-size: x-large;
max-width: 800px;
left: 50%;
padding: 20px;
background-color: #fff;
color: #000;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 30px;
}
main div img {
size: xx-large;
}
.sobre {
margin-left: 5%;
font-family: "Ubuntu";
}
.downloadbutton {
margin-left: 5%;
width: 25%;
}
footer {
font-family: "Barlow Condensed", sans-serif;
position: fixed;
bottom: 0;
left: 0;
width: 100%;
text-align: center;
font-size:large;
background-color: #000;
color: #fff;
}
ul {
list-style-type:circle ;
margin: auto;
padding: auto;
}
header {
background-color: #f8f9fa;
padding: 20px;
display: flex;
justify-content: space-around; /* Alterado de space-between para space-around */
align-items: center;
max-width: 1200px; /* Define um tamanho máximo para o header */
margin: 0 auto; /* Centraliza o header */
border-radius: 30px;
font-size: auto;
}
header img {
max-width: 200px; /* Define uma largura máxima para a imagem */
height: auto; /* Mantém a proporção da imagem */
}
#escolha_canal {
text-decoration: none;
color: #fff;
background-color: #007bff;
padding: 10px 20px;
margin: 0 10px;
border-radius: 5px;
transition: background-color 0.3s ease;
font-family: Tiny5;
}
#escolha_player {
border: 2px solid #007bff;
border-radius: 5px;
}
.message {
text-align: center;
font-size: 24px;
color: #333;
margin-top: 20px;
}
#escolha_canal:hover {
background-color: #0056b3;
}
#nav_escolha {
margin-bottom: 20px;
display: flex;
flex-wrap: wrap;
}
#nav_escolha a {
margin: 10px;
padding: 10px;
border: none;
border-radius: 5px;
background-color: #f0f0f0;
color: #333;
text-decoration: none;
cursor: pointer;
}
@media only screen and (max-width: 600px) {
#nav_escolha a {
flex-basis: 45%; /* adjust the width of each button */
margin: 5px;
padding: 5px;
}
}
.nomecanal {
font-family: Tiny5;
font-size: xx-large;
}
.nomecanal2 {
font-family: Tiny5;
}
#escolha_player {
font-size: large;
}
.m3usobre {
color:aquamarine;
}
.contact-form {
max-width: 600px;
margin-left: 5%;
padding: 50px;
background-color: #f9f9f9;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.contact-form label {
display: block;
margin-bottom: 8px;
font-weight: bold;
}
.contact-form input,
.contact-form textarea {
width: 100%;
padding: 10px;
margin-bottom: 20px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 16px;
}
.contact-form button {
display: inline-block;
padding: 10px 20px;
background-color: #4caf50;
color: #fff;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.contact-form button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<h1>Estás offline:</h1>
<p>Carrega neste botão aqui em baixo para recarregar a página.</p>
<button type="button">⤾ Reload</button>
<!-- Inline the page's JavaScript file. -->
<script>
// Manual reload feature.
document.querySelector("button").addEventListener("click", () => {
window.location.reload();
});
// Listen to changes in the network state, reload when online.
// This handles the case when the device is completely offline.
window.addEventListener('online', () => {
window.location.reload();
});
// Check if the server is responding and reload the page if it is.
// This handles the case when the device is online, but the server
// is offline or misbehaving.
async function checkNetworkAndReload() {
try {
const response = await fetch('.');
// Verify we get a valid response from the server
if (response.status >= 200 && response.status < 500) {
window.location.reload();
return;
}
} catch {
// Unable to connect to the server, ignore.
}
window.setTimeout(checkNetworkAndReload, 2500);
}
checkNetworkAndReload();
</script>
</body>
<footer>Feito por Tomás Afonso. 2025 ©</footer>
</html>