Add autofocus

This commit is contained in:
Raven Scott 2024-09-26 19:56:40 -04:00
parent 82ce418c09
commit 5a8f4cbada

View File

@ -7,6 +7,13 @@
<title><%= title %></title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="<%= process.env.HOST_URL %>/css/styles.css">
<script>
window.onload = function() {
const input = document.getElementById("search-input");
input.focus();
input.setSelectionRange(input.value.length, input.value.length);
};
</script>
</head>
<body>
<!-- Navbar -->