-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
63 lines (57 loc) · 1.35 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
54
55
56
57
58
59
60
61
62
63
<!doctype html>
<html>
<head>
<title>Ace CRDT</title>
<style>
html, body {
height: 100%;
}
h1 {
font-size: 1.5rem;
margin: 0;
}
body {
display: flex;
flex-direction: column;
}
#editor {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
font-family: monospace;
font-size: 1.5rem;
}
#editor-container {
position: relative;
width: 100%;
flex: 1 1;
}
</style>
</head>
<body>
<div>
<h1>Collaborative text editing using CRDT</h1>
<p>
This demo makes sense when more than one person connects and
writes at the same time, some quirks are to be expected, but the
text should remain the same across clients. The contents are
cleared at least once per day.
<strong>Please be kind to each other.</strong>
<br>
Source and details:
<a href="https://github.com/maca/ace-crdt">
https://github.com/maca/ace-crdt
</a>
</p>
</div>
<div id="editor-container">
<div id="editor"></div>
</div>
<script src="/socket.io/socket.io.js"></script>
<script src="/ace.js"></script>
<script src="/rga.js"></script>
<script src="/editor.js"></script>
</body>
</html>