mirror of
https://codeberg.org/vlw/big-black-coffee-button.git
synced 2025-09-13 16:23:42 +02:00
39 lines
No EOL
1.2 KiB
HTML
39 lines
No EOL
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Big Black Coffee Button</title>
|
|
<link rel="stylesheet" href="assets/style.css">
|
|
<link rel="manifest" href="manifest.json">
|
|
<link rel="icon" href="assets/media/icon512_maskable.png">
|
|
</head>
|
|
<body class="">
|
|
<div id="login">
|
|
<h1>Big Black Coffee Button</h1>
|
|
<form>
|
|
<fieldset>
|
|
<legend>Credentials</legend>
|
|
|
|
<label for="endpoint">Endpoint URL</label>
|
|
<input id="endpoint" type="text" name="url" placeholder="https://api.vlw.se/coffee">
|
|
|
|
<label for="key">API Key</label>
|
|
<input id="key" type="password" name="key" placeholder="Pvdv6WqbDyVcJx38FjDpQtiq0teBQLGtBLDTkNG4XYHpvxWkCXcyW1uAWVLXxS947M">
|
|
|
|
<p>Credentials will be saved in <samp>localStorage</samp> until cleared</p>
|
|
|
|
<input type="submit" value="Save">
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
<div>
|
|
<button onclick="document.body.classList.remove('loggedin')">Show credentials</button>
|
|
<button id="coffee">
|
|
<img src="assets/media/coffee.svg">
|
|
</button>
|
|
</div>
|
|
<audio src="assets/media/sfx.m4a"></audio>
|
|
<script src="assets/script.mjs" type="module"></script>
|
|
</body>
|
|
</html> |