Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
uo276976 committed Nov 14, 2024
1 parent cbec53a commit 66d11d7
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions pages/resultadosDeBusqueda.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,39 @@
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>
<script>
function performSearch() {
const query = document.getElementById("searchInput").value;
if (query) {
window.location.href = `/pages/resultadosDeBusqueda.html?q=${encodeURIComponent(query)}`;
}
}
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Resultados de Búsqueda</title>
<link rel="stylesheet" href="../css/resultados-styles.css" type="text/css">
<link rel="stylesheet" href="../css/styles.css" type="text/css">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body>
<header>
<nav aria-label="Menú principal">
<a href="#" class="active" aria-current="page">Inicio</a>
<a href="pages/aficiones.html">Aficiones</a>
<a href="pages/proyectos.html">Proyectos</a>
<a href="pages/contacto.html">Contacto</a>
</nav>
<div class="search-bar">
<input type="text" id="searchInput" placeholder="Buscar...">
<button id="searchButton" onclick="performSearch()">Buscar</button>
</div>
</header>

<main id="searchResultsContainer">
<h1>Resultados de Búsqueda</h1>
<!-- Results will be dynamically added here -->
</main>
<script>
$(document).ready(function () {
// Retrieve search term from the URL
Expand Down Expand Up @@ -87,38 +120,5 @@
return matrix[b.length][a.length];
}
</script>
<script>
function performSearch() {
const query = document.getElementById("searchInput").value;
if (query) {
window.location.href = `/pages/resultadosDeBusqueda.html?q=${encodeURIComponent(query)}`;
}
}
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Resultados de Búsqueda</title>
<link rel="stylesheet" href="../css/resultados-styles.css" type="text/css">
<link rel="stylesheet" href="../css/styles.css" type="text/css">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body>
<header>
<nav aria-label="Menú principal">
<a href="#" class="active" aria-current="page">Inicio</a>
<a href="pages/aficiones.html">Aficiones</a>
<a href="pages/proyectos.html">Proyectos</a>
<a href="pages/contacto.html">Contacto</a>
</nav>
<div class="search-bar">
<input type="text" id="searchInput" placeholder="Buscar...">
<button id="searchButton" onclick="performSearch()">Buscar</button>
</div>
</header>

<main id="searchResultsContainer">
<h1>Resultados de Búsqueda</h1>
<!-- Results will be dynamically added here -->
</main>
</body>
</html>

0 comments on commit 66d11d7

Please sign in to comment.