notherbase-fs 3.4.3 → 3.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/js/chat-box.js +4 -2
- package/views/head.ejs +7 -7
package/package.json
CHANGED
package/public/js/chat-box.js
CHANGED
|
@@ -105,9 +105,11 @@ class ChatBox {
|
|
|
105
105
|
this.$entry = $(`<input autocomplete="off" type="text" class="chat-entry">`).appendTo(this.$div);
|
|
106
106
|
this.$send = $(`<button class="chat-send">Send</button>`).appendTo(this.$div);
|
|
107
107
|
|
|
108
|
-
this.$send.on("click",
|
|
108
|
+
this.$send.on("click", (e) => {
|
|
109
|
+
this.sendMessage(null);
|
|
110
|
+
});
|
|
109
111
|
this.$entry.on("keyup", (e) => {
|
|
110
|
-
if (e.keyCode == 13) this.sendMessage();
|
|
112
|
+
if (e.keyCode == 13) this.sendMessage(null);
|
|
111
113
|
});
|
|
112
114
|
}
|
|
113
115
|
|
package/views/head.ejs
CHANGED
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<title><%= siteTitle %></title>
|
|
6
6
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
7
|
-
<
|
|
8
|
-
<link rel="preconnect" href="https://fonts.
|
|
9
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
7
|
+
<link async rel="preconnect" href="https://fonts.googleapis.com">
|
|
8
|
+
<link async rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
10
9
|
<!-- font-family: 'Roboto' or 'Roboto Condensed', sans-serif; -->
|
|
11
|
-
<link href="https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Condensed:wght@700&display=swap" rel="stylesheet">
|
|
10
|
+
<link async href="https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Condensed:wght@700&display=swap" rel="stylesheet">
|
|
12
11
|
<!-- 'Redacted Script', cursive; -->
|
|
13
|
-
<link href="https://fonts.googleapis.com/css2?family=Redacted+Script:wght@300&display=swap" rel="stylesheet">
|
|
14
|
-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
|
|
15
|
-
<link rel="stylesheet" href="/styles/main.css">
|
|
12
|
+
<link async href="https://fonts.googleapis.com/css2?family=Redacted+Script:wght@300&display=swap" rel="stylesheet">
|
|
13
|
+
<link async rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
|
|
14
|
+
<link async rel="stylesheet" href="/styles/main.css">
|
|
16
15
|
</head>
|
|
17
16
|
|
|
18
17
|
<body>
|
|
18
|
+
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|