Skip to content

Commit

Permalink
perform search
Browse files Browse the repository at this point in the history
  • Loading branch information
uo276976 committed Nov 18, 2024
1 parent 7bf7818 commit f35247d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
<title>Página Personal de Alfonso</title>
<link rel="stylesheet" href="css/styles.css" type="text/css">
<link rel="stylesheet" href="css/index-styles.css" type="text/css">
<script>
function performSearch() {
const query = document.getElementById("searchInput").value;
if (query) {
window.location.href = `resultadosDeBusqueda.html?q=${encodeURIComponent(query)}`;
}
}
</script>
</head>
<body>
<header>
Expand Down
8 changes: 8 additions & 0 deletions pages/aficiones.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
<title>Aficiones</title>
<link rel="stylesheet" href="../css/styles.css" type="text/css">
<link rel="stylesheet" href="../css/aficiones-styles.css" type="text/css">
<script>
function performSearch() {
const query = document.getElementById("searchInput").value;
if (query) {
window.location.href = `resultadosDeBusqueda.html?q=${encodeURIComponent(query)}`;
}
}
</script>
</head>
<body>
<header>
Expand Down
8 changes: 8 additions & 0 deletions pages/proyectos.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
<title>Proyectos</title>
<link rel="stylesheet" href="../css/styles.css" type="text/css">
<link rel="stylesheet" href="../css/proyectos-styles.css" type="text/css">
<script>
function performSearch() {
const query = document.getElementById("searchInput").value;
if (query) {
window.location.href = `resultadosDeBusqueda.html?q=${encodeURIComponent(query)}`;
}
}
</script>
</head>
<body>
<header>
Expand Down

0 comments on commit f35247d

Please sign in to comment.