Merge branch 'main', commit 'refs/pull/53/head' of https://github.com/MathMan05/JankClient

This commit is contained in:
MathMan05 2024-09-02 17:12:49 -05:00
commit 7cc6a0b914
6 changed files with 72 additions and 172 deletions

View file

@ -113,9 +113,8 @@ class Channel{
let expires=1800;
const copycontainer=document.createElement("div");
copycontainer.classList.add("copycontainer");
const copy=document.createElement("img");
copy.src="/icons/copy.svg";
copy.classList.add("copybutton","svgtheme");
const copy=document.createElement("span");
copy.classList.add("copybutton","svgtheme","svg-copy");
copycontainer.append(copy);
copycontainer.onclick=_=>{
if(text.textContent){
@ -376,9 +375,8 @@ class Channel{
const caps=document.createElement("div");
const decdiv=document.createElement("div");
const decoration=document.createElement("img");
decoration.src="/icons/category.svg";
decoration.classList.add("svgtheme","colaspeicon");
const decoration=document.createElement("span");
decoration.classList.add("svgtheme","collapse-icon","svg-category");
decdiv.appendChild(decoration);
const myhtml=document.createElement("p2");
@ -437,20 +435,17 @@ class Channel{
const myhtml=document.createElement("span");
myhtml.textContent=this.name;
if(this.type===0){
const decoration=document.createElement("img");
decoration.src="/icons/channel.svg";
const decoration=document.createElement("span");
div.appendChild(decoration);
decoration.classList.add("space","svgtheme");
decoration.classList.add("space","svgtheme","svg-channel");
}else if(this.type===2){//
const decoration=document.createElement("img");
decoration.src="/icons/voice.svg";
const decoration=document.createElement("span");
div.appendChild(decoration);
decoration.classList.add("space","svgtheme");
decoration.classList.add("space","svgtheme","svg-voice");
}else if(this.type===5){//
const decoration=document.createElement("img");
decoration.src="/icons/announce.svg";
const decoration=document.createElement("span");
div.appendChild(decoration);
decoration.classList.add("space","svgtheme");
decoration.classList.add("space","svgtheme","svg-announce");
}else{
console.log(this.type);
}