-
Notifications
You must be signed in to change notification settings - Fork 1
/
404.html
48 lines (46 loc) · 1.46 KB
/
404.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Ubuntu&display=swap" rel="stylesheet">
<link href="css/home.css" rel="stylesheet" type="text/css" media="all">
<title>ERROR 404</title>
</head>
<body id="corpo">
<div class="header">
<div class="image">
<img src="media/mundo.gif" class="error" alt="" srcset="">
<h2 class="title">Opss!!! Estamos com problemas de encontrar essa página...</h2>
<a href="/" id="raiz">Voltar para a página inicial</a>
</div>
</div>
<script>
function writer(elemento){
const textoArray = elemento.innerHTML.split('');
elemento.innerHTML = '';
textoArray.forEach((letra, i) => {
setTimeout(() => {
elemento.innerHTML += letra;
}, 75 * i)
//console.log(letra)
});
}
function awriter(myelemento){
const textoArray = myelemento.innerHTML.split('');
myelemento.innerHTML = '';
textoArray.forEach((letra, i) => {
setTimeout(() => {
myelemento.innerHTML += letra
}, 75 * i)
//console.log(letra)
});
}
const title = document.querySelector('h2');
const link = document.querySelector('a');
writer(title);
awriter(link);
</script>
</body>
</html>