Skip to content

Commit

Permalink
modified: client/client.js
Browse files Browse the repository at this point in the history
	modified:   client/index.html
  • Loading branch information
huolongguo1O committed Aug 13, 2023
1 parent c25b461 commit 4a27357
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
3 changes: 2 additions & 1 deletion client/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,8 @@ var COMMANDS = {
var message;
for (var i = 0; i < activeMessages.length; i++) {
var msg = activeMessages[i];
if (msg.userid === args.userid && msg.customId === customId) {
if ((msg.userid === args.userid || msg.mod == true)
&& msg.customId === customId) {
message = msg;
break;
}
Expand Down
24 changes: 12 additions & 12 deletions client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,48 +38,48 @@
<h4>Settings</h4>
<p>
<input id="pin-sidebar" type="checkbox">
<label for="pin-sidebar">Pin sidebar</label>
<label for="pin-sidebar">固定侧边栏</label>
</p>
<p>
<input id="sound-switch" type="checkbox">
<label for="sound-switch">Sound notifications</label>
<label for="sound-switch">声音提醒</label>
</p>
<p>
<input id="notify-switch" type="checkbox">
<label for="notify-switch">Screen notifcations</label>
<label for="notify-switch">浏览器提醒</label>
</p>
<p>
<input id="joined-left" type="checkbox" checked>
<label for="joined-left">Join/left notify</label>
<label for="joined-left">加入退出通知</label>
</p>
<p>
<input id="parse-latex" type="checkbox" checked>
<label for="parse-latex">Allow LaTeX</label>
<input id="parse-latex" type="checkbox">
<label for="parse-latex">运行LaTeX(可能受到攻击)</label>
</p>
<p>
<input id="syntax-highlight" type="checkbox" checked>
<label for="syntax-highlight">Allow Highlight</label>
<label for="syntax-highlight">显示高亮</label>
</p>
<p>
<input id="allow-imgur" type="checkbox">
<label for="allow-imgur" title="Embed images like: ![Title](https://i.imgur.com/image.png)">Allow Imgur</label>
</p>
<hr>
<p>
<h4>Color scheme</h4>
<h4>颜色主题</h4>
<select id="scheme-selector"></select>
</p>
<p>
<h4>Highlight scheme</h4>
<h4>高亮主题</h4>
<select id="highlight-selector"></select>
</p>
<hr>
<p>
<button id="clear-messages">Clear all messages</button>
<button id="clear-messages">清空消息(绿屏时可用)</button>
</p>
<hr>
<h4>Users online</h4>
<p>(Click user to invite)</p>
<h4>在线用户</h4>
<p>(点击邀请)</p>
<ul id="users"></ul>
</div>
</nav>
Expand Down

0 comments on commit 4a27357

Please sign in to comment.