-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (71 loc) · 2.16 KB
/
index.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
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
<!DOCTYPE html>
<html lang="es">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<!-- <title>Hello, world!</title> -->
<title>Harry Alvarado - WebSite</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Este sitio es una total locura 😎💥" />
<link rel="icon" type="image/x-icon" href="programmer.ico" />
<link rel="stylesheet" href="style.css" />
</head>
<body style="font-family: monospace">
<div class="container mt-5">
<h1>¡Hey, hola!</h1>
<h5>Algunas anotaciones. 📝</h5>
<div class="container mb-50">
<h4>Blogs</h4>
<ul>
<li>
<a
href="https://harryalvarado28.gitbook.io/aprendizaje-automatico/"
>
Aprendizaje Automatico
</a>
</li>
</ul>
<ul>
<li>
<a
href="https://harryalvarado28.blogspot.com/2021/10/patrones-de-arquitectura.html"
>
Patrones de Arquitectura
</a>
</li>
</ul>
<h4>Redes</h4>
<a href="https://github.com/HarryAlvarado28">
<img src="asset/github.png" alt="github logo" width="85px" />
</a>
</div>
</div>
<div class="text-center">
<p id="mi-ip"></p>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script>
async function getIpClient() {
try {
const response = await axios.get(
"https://api.ipify.org?format=json"
);
console.log(response);
return response;
} catch (error) {
console.error(error);
return "No hay mejor lugar como 127.0.0.1";
}
}
getIpClient().then((value) => {
if (value.data.ip)
document.getElementById("mi-ip").innerHTML =
"<h3>Tu dirección IP: " + value.data.ip + " 🔥 </h3> ";
});
</script>
</div>
</body>
</html>