Merge branch 'main', commit 'refs/pull/53/head' of https://github.com/MathMan05/JankClient
This commit is contained in:
@@ -99,9 +99,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) {
|
||||
@@ -365,9 +364,8 @@ class Channel {
|
||||
this.sortchildren();
|
||||
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");
|
||||
myhtml.textContent = this.name;
|
||||
@@ -424,22 +422,19 @@ 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);
|
||||
|
Reference in New Issue
Block a user