forked from Adleraci/adlerka.top
Fix articles
This commit is contained in:
@@ -218,12 +218,21 @@ async function submitarticle(){
|
||||
|
||||
async function articleInit(){
|
||||
let articleContainerElement = document.getElementById("articlecreatecontainer");
|
||||
let articleCreateOpenElement = document.getElementById("articlecreateopen");
|
||||
articleContainerElement.addEventListener("keyup", function (ev) {
|
||||
if(ev.key === "Escape"){
|
||||
togglearticlecreate();
|
||||
}
|
||||
})
|
||||
PageIntervals.push(setInterval(renderarticles, 300000));
|
||||
document.getElementById("articleprivilegeinput").setAttribute("max", UserInfo.Privileges);
|
||||
if(UserInfo.Privileges < 2){
|
||||
articleContainerElement.style.display = "none";
|
||||
articleCreateOpenElement.style.display = "none";
|
||||
}
|
||||
else{
|
||||
articleCreateOpenElement.style.display = "inline-block";
|
||||
}
|
||||
}
|
||||
|
||||
async function onPageLoad() {
|
||||
|
@@ -402,6 +402,11 @@ body:has(.ye-span:hover) {
|
||||
backdrop-filter: blur(2px);
|
||||
}
|
||||
|
||||
div.articleinfo{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
Reference in New Issue
Block a user