64 lines
2.2 KiB
HTML
64 lines
2.2 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<link rel="stylesheet" href="style.css" />
|
|
</head>
|
|
<body>
|
|
<div id="chat">
|
|
<div id="inputContainer">
|
|
<button id="rootButton" class="thread-control">Root</button>
|
|
<input type="text" id="messageInput" placeholder="" />
|
|
<button id="sendButton">Send</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="bottom_group">
|
|
<div id="userList">
|
|
<b>Online:</b>
|
|
</div>
|
|
|
|
<div id="bottom_bar">
|
|
<div id="name_area">
|
|
<input
|
|
type="text"
|
|
id="nameInput"
|
|
placeholder="Enter username"
|
|
/>
|
|
<button id="nameButton">Set Name</button>
|
|
</div>
|
|
<div id="bottom_text">
|
|
<i>COMS</i> by Jacob Signorovitch.
|
|
<a href="#" id="help">Help</a> |
|
|
<a href="//git.signorovitch.org/jacob/coms">Code</a> |
|
|
<a href="#">API</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="module" src="app.js"></script>
|
|
<dialog id="help_dialog">
|
|
Click on messages to reply to them.<br />
|
|
<kbd>Enter</kbd> to send the current message.<br />
|
|
<kbd>Esc</kbd> to cancel a reply.<br />
|
|
<kbd>↑</kbd> and <kbd>↓</kbd> to navigate the message tree by
|
|
keyboard.
|
|
<a id="help_dismiss" href="#">Dismiss.</a>
|
|
</dialog>
|
|
<script>
|
|
const help = document.getElementById("help");
|
|
const help_dialog = document.getElementById("help_dialog");
|
|
const help_dismiss = document.getElementById("help_dismiss");
|
|
help.addEventListener("click", (e) => {
|
|
e.preventDefault();
|
|
help_dialog.showModal();
|
|
});
|
|
help_dismiss.addEventListener("click", (e) => {
|
|
e.preventDefault();
|
|
help_dialog.close();
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|