Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
122 lines (113 loc) · 4.32 KB
/
Copy pathindex.html
File metadata and controls
122 lines (113 loc) · 4.32 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<title>六字街聊天室</title>
<link rel="manifest" href="manifest.json">
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" href="style.css">
<link id="scheme-link" rel="stylesheet" href="scheme.css">
<link rel="stylesheet" href="https://crosst.chat/vendor/katex/katex.min.css">
<script src="https://crosst.chat/vendor/katex/katex.min.js"></script>
<script src="https://crosst.chat/vendor/remarkable-katex/remarkableKatex.min.js"></script>
<script src="https://crosst.chat/vendor/hljs/highlight.min.js"></script>
<link id="highlight-link" rel="stylesheet" href="https://crosst.chat/vendor/hljs/styles/rainbow.min.css">
<script src="https://crosst.chat/vendor/remarkable/remarkable.min.js"></script>
<meta name="keywords" content="聊天室, 聊天, 匿名聊天, 纯文字聊天室, WebSocket, 即时聊天, 六字街">
<meta name="description" content="六字街是一个十字街的客户端,可以方便地加入和创建聊天室,仅需一个昵称即可开始畅聊。聊天室内支持Markdown和LaTeX格式化,并拥有便于开发的API。">
</head>
<body>
<audio style="display: none" id="notify-sound" preload="auto" src="/audio/notify.mp3">
<source src="/audio/notify.mp3" type="audio/ogg">
</audio>
<article class="container">
<div id="messages" class="messages"></div>
</article>
<footer id="footer">
<div class="container">
<form id="chatform" class="message">
<textarea id="chatinput" type="text" autocomplete="off" autofocus></textarea>
</form>
</div>
</footer>
<nav id="sidebar">
<div id="sidebar-content" class="hidden">
<h2><a href="/" target="_blank" rel="noopener noreferrer">六字街</a></h2>
<h5 id="version-text" class="hidden"></h5>
<h5>6.6.6-6eta</h5>
<p>一个<a href="https://crosst.chat/" target="_blank" rel="noopener noreferrer">十字街</a>的客户端</p>
<hr>
<h3>账号管理</h3>
<p>已登录的账号:</p>
<p id ="account-name"></p>
<p>
<input id="auto-login" type="checkbox">
<label for="auto-login">下次自动以此昵称登录</label>
</p>
<p>
<button id="clear-account">清除账号信息</button>
</p>
<hr>
<h3>设置</h3>
<p>
<input id="pin-sidebar" type="checkbox">
<label for="pin-sidebar">侧边栏常开</label>
</p>
<p>
<input id="sound-switch" type="checkbox">
<label for="sound-switch">有人@我时播放提示音</label>
</p>
<p>
<input id="joined-left" type="checkbox" checked>
<label for="joined-left">用户加入和退出提醒</label>
</p>
<p>
<input id="parse-latex" type="checkbox" checked>
<label for="parse-latex">启用 LaTeX</label>
</p>
<p>
<input id="syntax-highlight" type="checkbox" checked>
<label for="syntax-highlight">启用代码高光</label>
</p>
<p>
<input id="allow-imgur" type="checkbox" checked>
<label for="allow-imgur" title="">查看图片消息</label>
</p>
<p>
<input id="allow-html" type="checkbox">
<label for="allow-html" title="">查看 HTML 消息</label>
</p>
<hr>
<p>
<h4>选择站点配色</h4>
<select id="scheme-selector"></select>
</p>
<p>
<h4>代码高光样式</h4>
<select id="highlight-selector"></select>
</p>
<hr>
<p>
<button id="clear-messages">清空本页聊天记录</button>
</p>
<hr>
<h4>在线的用户</h4>
<p>(你可以左键下面的用户名邀请该用户到一个随机生成聊天室,或右键下面的用户名屏蔽该用户)</p>
<ul id="users"></ul>
</div>
</nav>
<!-- build:js index.js -->
<script src="utils.js"></script>
<script src="notification.js"></script>
<script src="misc.js"></script>
<script src="sidebar.js"></script>
<script src="client.js"></script>
<!-- /build -->
<script>
if ( typeof clientName != 'string') {
location.href = 'error.html';
}
</script>
</body>
</html>