add focus on login page load

This commit is contained in:
Ryan Peters 2023-05-16 17:16:31 -04:00
parent bdb0fc4906
commit 34d389cf6e
2 changed files with 12 additions and 1 deletions

View File

@ -7,3 +7,12 @@
<form method="post"> <form method="post">
<input type="password" name="passphrase" placeholder="Passphrase" /> <input type="password" name="passphrase" placeholder="Passphrase" />
</form> </form>
@section scripts {
<script>
$(function () {
$('input[name=passphrase]').focus();
});
</script>
}

View File

@ -14,6 +14,8 @@
<script src="~/lib/jquery/dist/jquery.min.js"></script> <script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="~/lib/signalr/dist/browser/signalr.min.js"></script> <script src="~/lib/signalr/dist/browser/signalr.min.js"></script>
<script src="~/js/site.js" asp-append-version="true"></script> <script src="~/js/site.js" asp-append-version="true"></script>
@RenderSection("scripts", false)
</body> </body>
</html> </html>