function name change
"postMessage" -> "postMsg"
This commit is contained in:
parent
8fe5a00164
commit
c1a2833dd8
@ -61,7 +61,11 @@ socket.addEventListener("open",()=> {
|
|||||||
|
|
||||||
var cd = true //inversed "cooldown"
|
var cd = true //inversed "cooldown"
|
||||||
|
|
||||||
function postMessage() {
|
/*
|
||||||
|
Tell the api to create a new post with the given information
|
||||||
|
previously called "postMessage"
|
||||||
|
*/
|
||||||
|
function postMsg() {
|
||||||
let msg = getById("post-text").value
|
let msg = getById("post-text").value
|
||||||
let len = msg.length
|
let len = msg.length
|
||||||
if(len==0){
|
if(len==0){
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
<span id="reply" style="display:none;" class="noselect">Replying to: <b id="reply_username"></b> <small id="reply_text"></small> <button onclick="unreply()" style="color:red">X</button></span> <br>
|
<span id="reply" style="display:none;" class="noselect">Replying to: <b id="reply_username"></b> <small id="reply_text"></small> <button onclick="unreply()" style="color:red">X</button></span> <br>
|
||||||
<textarea name="name" id="post-text" rows="8" cols="80"></textarea>
|
<textarea name="name" id="post-text" rows="8" cols="80"></textarea>
|
||||||
<br>
|
<br>
|
||||||
<button type="button" name="button" id="post-btn" onclick="postMessage()">Post</button>
|
<button type="button" name="button" id="post-btn" onclick="postMsg()">Post</button>
|
||||||
<div class="files" id="filesDiv"></div>
|
<div class="files" id="filesDiv"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="channelTab" id="channelTab"></div>
|
<div class="channelTab" id="channelTab"></div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user