-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (40 loc) · 1.24 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ShareTXT</title>
<meta
name="description"
content="Share text between browsers in real time."
/>
<link rel="stylesheet" href="static/styles.css" type="text/css" />
</head>
<body>
<div>
<div class="container">
<h1>ShareTXT</h1>
<div class="message">
Open this URL on another browser window to share text between
browsers.
</div>
<div class="message">
<span id="client-count"></span> connected in <i id="room-name"></i>
</div>
<div class="input-container">
<textarea id="input" placeholder="Input text to share"></textarea>
</div>
<div class="status-container">
<div class="status">
<span id="word-count"></span> | <span id="status"></span>
</div>
</div>
</div>
</div>
<script>
const ws_message_endpoint = "{{ ws_message }}";
const ws_heartbeat_endpoint = "{{ ws_heartbeat }}";
</script>
<script type="module" src="static/script.js"></script>
</body>
</html>