-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (47 loc) · 1.42 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<title>Agregore Chat Example</title>
<style>
@import url("./style.css")
</style>
<template id="messageTemplate">
<dl class="message">
<dt class="message-username">Anonymous</dt>
<dd class="message-text">Hello World?</dd>
</dl>
</template>
<dialog id="aboutBox">
<h1>Agregore Chat Example</h1>
<p>
This uses the <a href="https://hypercore-protocol.org/">Hypercore Protocol</a> to connect people together and gossip messages between them with zero infrastructure.
</p>
<p>
You can find the source code <a href="https://github.com/AgregoreWeb/agregore-chat-example">here</a>. Everything is licensed under AGPL-3.0
</p>
<form method="dialog">
<button>Close</button>
</form>
</dialog>
<dialog id="urlPrompt">
Enter the hyper:// URL for your chat.
<form method="dialog">
<input id="chatURLInput" value="hyper://blog.mauve.moe/">
<button>Load</button>
</form>
</dialog>
<dialog id="namePrompt">
Enter the name you'd like to use
<form method="dialog">
<input id="chatNameInput" value="Anonymous">
<button>Save</button>
</form>
</dialog>
<main>
<section id="historyBox" aria-live="polite"></section>
<form id="inputForm">
<input id="textInput" placeholder="Enter your message here">
<button>Send</button>
<button id="aboutButton" title="About" type="button">?</button>
</form>
<button id="nameChangeButton">Anonymous</button>
</main>
<script type="module" src="scripts.js"></script>