-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
165 lines (150 loc) · 5.13 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
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
<!DOCTYPE HTML>
<html lang="es">
<head>
<meta charset="UTF-8">
<!--Metadatos de los documentos HTML5-->
<meta name="author" content="Jorge López Peláez">
<meta name="description" content="Descripción general">
<meta name="keywords" content="personal, foto, vídeo, descripción, contacto, Jorge">
<!--Definición de la ventana gráfica-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Jorge López - ¿quién soy?</title>
<link rel="stylesheet" type="text/css" href="estilo/estilo.css">
<link rel="stylesheet" type="text/css" href="estilo/layout.css">
<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
<!-- <script type="text/javascript">
(function (c, l, a, r, i, t, y) {
c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments) };
t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jyqnw7jc0h");
</script> -->
<!-- Begin Inspectlet Asynchronous Code -->
<!-- <script type="text/javascript">
(function () {
window.__insp = window.__insp || [];
__insp.push(['wid', 1893481580]);
var ldinsp = function () {
if (typeof window.__inspld != "undefined") return; window.__inspld = 1; var insp = document.createElement('script'); insp.type = 'text/javascript'; insp.async = true; insp.id = "inspsync"; insp.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://cdn.inspectlet.com/inspectlet.js?wid=1893481580&r=' + Math.floor(new Date().getTime() / 3600000); var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(insp, x);
};
setTimeout(ldinsp, 0);
})();
</script> -->
<!-- End Inspectlet Asynchronous Code -->
</head>
<script>
function search() {
var terminoBusqueda = $('#searchInput').val()
var files = 0
// Cargar el mapa del sitio desde el archivo XML
$.ajax({
type: "GET",
url: "sitemap.xml",
dataType: "xml",
success: function (xml) {
// Recorrer cada página en el mapa del sitio
$(xml).find('page').each(function () {
var pageUrl = $(this).attr('url')
console.log(window.location.href)
console.log(pageUrl)
// Realizar una búsqueda en la página
$.ajax({
type: "GET",
url: pageUrl,
success: function (pageContent) {
files++
console.log(window.location.href)
console.log(pageUrl)
// Realizar la búsqueda en el contenido de la página
if (pageContent.includes(terminoBusqueda)) {
console.log("Coincidencia encontrada en la página: " + pageUrl)
console.log(window.location.href)
console.log(pageUrl)
newUrl = "http://localhost" + pageUrl
// newUrl = "https://uo276514.github.io" + pageUrl
console.log(newUrl)
window.location.href = newUrl
} else if (files == 4) {
alert("Búsqueda no encontrada, prueba con palabras más concretas")
}
},
error: function (xhr, status, error) {
console.error("Error al cargar la página: " + pageUrl)
}
});
});
},
error: function (xhr, status, error) {
console.error("Error al cargar el mapa del sitio: " + error)
}
});
}
</script>
<body>
<header>
<h1>Jorge López Peláez</h1>
<div class="buscador">
<label for="searchInput">Buscador: </label>
<input type="text" id="searchInput" placeholder="Buscar...">
<button onclick="search()">Buscar</button>
</div>
</header>
<nav>
<a href="index.html">Índice</a>
<a href="aficiones.html">Aficiones</a>
</nav>
<main>
<h2>¿Quién soy?</h2>
<p>
Nací en Segovia el 16 de agosto de 2001, pero llevo viviendo en Oviedo desde los 3 años de edad.
Soy un alumno de primer curso del Máster en Ingeniería Web (<a href="https://miw.uniovi.es/"
title="enlace al sitio web oficial del MIW de la Universidad de Oviedo">MIW</a>) de la Universidad de
Oviedo.
</p>
<h2>¿Qué más hay sobre mi?</h2>
<p>
Estudié desde los 3 años en el Colegio Auseva Maristas, en Oviedo. Al terminar los estudios de Bachillerato,
comencé el
grado de Ingeniería del Software de la Universidad de Oviedo.
</p>
<p>
En cuanto a <a href="aficiones.html"
title="enlace a la sección de mi web sobre mis aficiones">aficiones</a>,
me gusta ver deporte, entre ellos:
</p>
<ul>
<li>Fórmula 1</li>
<li>Fútbol</li>
<li>Tenis</li>
<li>Balonmano</li>
</ul>
<p>
Además de verlos también me gusta jugar:
</p>
<ul>
<li>Fútbol</li>
<li>Tenis</li>
<li>Balonmano</li>
<li>Baloncesto</li>
<li>Pádel</li>
</ul>
<p>
Por último, también me gusta jugar a videojuegos, salir con mis amigos o hacer planes con mi familia.
</p>
</main>
<section>
<h2>Una foto mía</h2>
<picture>
<img src="multimedia/foto_orla.jpg" alt="Imagen personal de Jorge López Peláez">
</picture>
</section>
<footer>
<h2>Contáctame</h2>
<p>
Si deseas contactar conmigo puedes hacerlo por <a
href="https://www.linkedin.com/in/jorge-l%C3%B3pez-pel%C3%A1ez-954b95253/"
title="enlace al linkedin de Jorge">LinkedIn</a>
</p>
</footer>
</body>
</html>