Add autofocus
This commit is contained in:
parent
82ce418c09
commit
5a8f4cbada
@ -7,6 +7,13 @@
|
|||||||
<title><%= title %></title>
|
<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="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">
|
<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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- Navbar -->
|
<!-- Navbar -->
|
||||||
|
Loading…
Reference in New Issue
Block a user