From bf9062bfc8687bf3ad47335a2271adbafe38fe9c Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Sun, 9 Jun 2024 13:24:04 -0500 Subject: [PATCH] Fixed typo --- webpage/index.js | 24 ++++++++++++------------ webpage/message.js | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/webpage/index.js b/webpage/index.js index 44e73e6..bfa0b93 100644 --- a/webpage/index.js +++ b/webpage/index.js @@ -55,7 +55,7 @@ function lacechannel(c){ function createchannels(fincall){ let name=""; - let catagory=2; + let category=2; console.log(fincall) channelselect=new fullscreen( ["vdiv", @@ -63,7 +63,7 @@ function createchannels(fincall){ ["voice","text","announcement"], function(e){ console.log(e) - catagory={"text":0,"voice":2,"announcement":5,"catagory":4}[e] + category={"text":0,"voice":2,"announcement":5,"category":4}[e] }, 1 ], @@ -72,26 +72,26 @@ function createchannels(fincall){ name=this.value }], ["button","","submit",function(){ - console.log(name,catagory) - fincall(name,catagory); + console.log(name,category) + fincall(name,category); channelselect.hide(); }] ]); channelselect.show(); } -function createcatagory(fincall){ +function createcategory(fincall){ let name=""; - let catagory=4; + let category=4; console.log(fincall) channelselect=new fullscreen( ["vdiv", - ["textbox","Name of catagory","",function(){ + ["textbox","Name of category","",function(){ console.log(this) name=this.value }], ["button","","submit",function(){ - console.log(name,catagory) - fincall(name,catagory); + console.log(name,category) + fincall(name,category); channelselect.hide(); }] ]); @@ -146,12 +146,12 @@ function makemenuc(divmessage,x,y){ createchannel.button.all=divmessage.all; build.appendChild(createchannel); - const createcat=createbutton("create catagory",null,function(){ - createcatagory(thisuser.lookingguild.createChannel.bind(thisuser.lookingguild)); + const createcat=createbutton("create category",null,function(){ + createcategory(thisuser.lookingguild.createChannel.bind(thisuser.lookingguild)); }) createcat.button.all=divmessage.all; build.appendChild(createcat); - //createcatagory + //createcategory } } diff --git a/webpage/message.js b/webpage/message.js index b2d7364..e7cbd8c 100644 --- a/webpage/message.js +++ b/webpage/message.js @@ -28,7 +28,7 @@ class cmessage{ const username=document.createElement("span"); replyline.appendChild(username); const reply=document.createElement("div"); - username.classList.add("replyusername") + username.classList.add("username") reply.classList.add("replytext"); replyline.appendChild(reply); const line2=document.createElement("hr");