Add article creation frontend

This commit is contained in:
Bruno Rybársky 2024-02-22 10:48:06 +01:00
parent ac95ba5b60
commit 5090c8e4bd
2 changed files with 5 additions and 1 deletions

@ -191,7 +191,8 @@ async function submitarticle(){
async function articleInit(){
let articleSubmitElement = document.getElementById("articlesubmit");
await togglearticlecreate();
let articleAddElement = document.getElementById("articlecreateopen");
articleAddElement.addEventListener("click", togglearticlecreate);
articleSubmitElement.addEventListener("click", submitarticle);
}

@ -373,6 +373,9 @@ body:has(.ye-span:hover) {
}
#articlecreatecontainer{
display: flex;
align-items: center;
align-content: center;
position: fixed;
width: 100vw;
height: 100vh;