Add .html suffix to html pages, updated webui.go to search for them correctly

This commit is contained in:
the-m-monk
2025-12-29 22:18:30 +10:00
parent f4944ab3b3
commit 775edabdf8
6 changed files with 24 additions and 3 deletions

30
web/login.html Normal file
View File

@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Opal Media Server</title>
</head>
<body>
<h2>Login</h2>
<form id="loginForm">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required><br><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required><br><br>
<button type="submit">Login</button>
</form>
<script src="/web/js/auth.js"></script>
<script>
const loginForm = document.getElementById('loginForm');
loginForm.addEventListener('submit', function(event) {
event.preventDefault();
getAccessToken();
});
</script>
</body>
</html>