main
jerl 2023-05-13 05:01:22 -07:00
parent fd6092947f
commit 55fdc45073
2 changed files with 80 additions and 79 deletions

View File

@ -83,9 +83,7 @@ async function loadKeys(keys) {
async function loadMessages() { async function loadMessages() {
window.socket.emit( window.socket.emit(
"get_history", "get_history",
window.earliestMessage { before: window.earliestMessage, thread: window.currentThreadId }
? { before: window.earliestMessage, thread: window.currentThreadId }
: { thread: window.currentThreadId }
); );
} }

View File

@ -11,9 +11,12 @@
Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
sans-serif; sans-serif;
} }
body { body, button, input {
background: #171719; background: #020202;
color: #d8d8d8; color: #eaeaea;
}
button {
border-color: #767676;
} }
.hidden { .hidden {
display: none; display: none;
@ -35,14 +38,14 @@
<body> <body>
<div id="register" class="hidden"> <div id="register" class="hidden">
<h1>welcome to vybe</h1> <h1>welcome to vybe</h1>
<h3>this site is in beta</h3> <h3>a communication network (beta)</h3>
<p> <p>
to get started, you'll need to set up an account. we use public key to get started, you'll need an account. we use public key
cryptography for security, rather than passwords. in this early beta cryptography for security, rather than passwords. for now
version your keys are stored in your browser storage only. your keys are stored in your browser storage only.
</p> </p>
<form id="registerform"> <form id="registerform">
<label for="name">name/username</label> <label for="name">name/username: </label>
<input type="text" id="name" /> <input type="text" id="name" />
<button id="submit" type="submit">generate keys & register</button> <button id="submit" type="submit">generate keys & register</button>
</form> </form>