-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
43 lines (43 loc) · 1.22 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cursor Chat Demo</title>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div id="cursor-chat-layer">
<input type="text" id="cursor-chat-box" />
</div>
<div id="app">
<h1>Cursor Chat</h1>
<p>
A small library by <a href="https://jzhao.xyz">Jacky</a> for digital
co-existing + presence :) Press <code>/</code> to start chatting and
<code>esc</code> to clear your bubble!
</p>
<p><a href="https://github.com/jackyzha0/cursor-chat">View Source</a></p>
</div>
<script type="module">
import { initCursorChat } from "./src/main.ts";
initCursorChat("demo-room", { shouldChangeUserCursor: true });
</script>
</body>
<style>
#app {
font-family: Inter, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
position: absolute;
left: 0;
right: 0;
margin: 35vh auto;
height: 30vh;
width: 30vw;
}
</style>
</html>