thanks git for yeeting my changes
This commit is contained in:
@@ -183,26 +183,15 @@ function userSettings(){
|
|||||||
thisuser.usersettings.show();
|
thisuser.usersettings.show();
|
||||||
}
|
}
|
||||||
document.getElementById("settings").onclick=userSettings;
|
document.getElementById("settings").onclick=userSettings;
|
||||||
let triggered=false;
|
function userConnections(){
|
||||||
document.getElementById("messagecontainer").addEventListener("scroll",(e)=>{
|
thisuser.userConnections.show();
|
||||||
const messagecontainer=document.getElementById("messagecontainer")
|
}
|
||||||
if(messagecontainer.scrollTop<2000){
|
document.getElementById("connections").onclick=userConnections;
|
||||||
if(!triggered){
|
function devPortal(){
|
||||||
thisuser.lookingguild.prevchannel.grabmoremessages().then(()=>{
|
thisuser.devPortal.show();
|
||||||
triggered=false;
|
}
|
||||||
if(messagecontainer.scrollTop===0){
|
document.getElementById("dev-portal").onclick=devPortal;
|
||||||
messagecontainer.scrollTop=1;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
triggered=true;
|
|
||||||
}else{
|
|
||||||
if(Math.abs(messagecontainer.scrollHeight-messagecontainer.scrollTop-messagecontainer.clientHeight) < 3){
|
|
||||||
thisuser.lookingguild.prevchannel.readbottom();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//
|
|
||||||
})
|
|
||||||
if(mobile){
|
if(mobile){
|
||||||
document.getElementById("channelw").onclick=function(){
|
document.getElementById("channelw").onclick=function(){
|
||||||
(document.getElementById("channels").parentNode as HTMLElement).classList.add("collapse");
|
(document.getElementById("channels").parentNode as HTMLElement).classList.add("collapse");
|
||||||
|
Reference in New Issue
Block a user