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

This commit is contained in:
MathMan05 2024-09-13 20:00:08 -05:00
commit 4b0bf6bb59
5 changed files with 5 additions and 6 deletions

View file

@ -104,7 +104,7 @@ class Emoji {
res = r; res = r;
}); });
const menu = document.createElement("div"); const menu = document.createElement("div");
menu.classList.add("flextttb", "emojiPicker"); menu.classList.add("flexttb", "emojiPicker");
menu.style.top = y + "px"; menu.style.top = y + "px";
menu.style.left = x + "px"; menu.style.left = x + "px";
const title = document.createElement("h2"); const title = document.createElement("h2");

View file

@ -1450,7 +1450,7 @@ class Localuser {
} }
pageTitle(channelName = "", guildName = "") { pageTitle(channelName = "", guildName = "") {
document.getElementById("channelname").textContent = channelName; document.getElementById("channelname").textContent = channelName;
document.getElementsByTagName("title")[0].textContent = channelName + (guildName ? " | " + guildName : "") + " | " + this.instancePing.name + " | Jank Client (Tomato fork)"; document.getElementsByTagName("title")[0].textContent = channelName + (guildName ? " | " + guildName : "") + " | " + this.instancePing.name + " | Jank Client";
} }
async instanceStats() { async instanceStats() {
const res = await fetch(this.info.api + "/policies/stats", { const res = await fetch(this.info.api + "/policies/stats", {

View file

@ -119,7 +119,7 @@ class Emoji{
res=r; res=r;
}); });
const menu=document.createElement("div"); const menu=document.createElement("div");
menu.classList.add("flextttb", "emojiPicker"); menu.classList.add("flexttb", "emojiPicker");
menu.style.top=y+"px"; menu.style.top=y+"px";
menu.style.left=x+"px"; menu.style.left=x+"px";

View file

@ -1456,7 +1456,7 @@ class Localuser{
} }
pageTitle(channelName = "", guildName = ""){ pageTitle(channelName = "", guildName = ""){
(document.getElementById("channelname") as HTMLSpanElement).textContent = channelName; (document.getElementById("channelname") as HTMLSpanElement).textContent = channelName;
(document.getElementsByTagName("title")[0] as HTMLTitleElement).textContent = channelName + (guildName ? " | " + guildName : "") + " | " + this.instancePing.name + " | Jank Client (Tomato fork)"; (document.getElementsByTagName("title")[0] as HTMLTitleElement).textContent = channelName + (guildName ? " | " + guildName : "") + " | " + this.instancePing.name + " | Jank Client";
} }
async instanceStats(){ async instanceStats(){
const res = await fetch(this.info.api + "/policies/stats", { const res = await fetch(this.info.api + "/policies/stats", {

View file

@ -1634,8 +1634,7 @@ form div{
border-radius:.15in; border-radius:.15in;
border:solid var(--black) .03in; border:solid var(--black) .03in;
box-shadow:black .03in .03in .2in; box-shadow:black .03in .03in .2in;
display: flex; align-items:normal;
flex-direction: column;
} }
.emojiSelect{ .emojiSelect{
font-size:.23in; font-size:.23in;