function name change

"postMessage" -> "postMsg"
This commit is contained in:
Mystikfluu 2022-10-04 21:05:48 +02:00
parent 8fe5a00164
commit c1a2833dd8
2 changed files with 6 additions and 2 deletions

View File

@ -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){

View File

@ -36,7 +36,7 @@
<span id="reply" style="display:none;" class="noselect">Replying to: <b id="reply_username"></b>&nbsp;&nbsp;&nbsp;<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>&nbsp;&nbsp;&nbsp;<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>