From c478da808831a93b547c5c487287709519c2f717 Mon Sep 17 00:00:00 2001 From: bruno Date: Thu, 22 Feb 2024 12:19:57 +0100 Subject: [PATCH] Add article creation frontend --- assets/script.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/script.js b/assets/script.js index 1dd11e7..71ba896 100644 --- a/assets/script.js +++ b/assets/script.js @@ -190,7 +190,12 @@ async function submitarticle(){ } async function articleInit(){ - + let articleContainerElement = document.getElementById("articlecreatecontainer"); + articleContainerElement.addEventListener("keyup", function (ev) { + if(ev.which === 27){ + togglearticlecreate(); + } + }) } async function onPageLoad() {