From 0396da7423e02c89ded8de9fa7b315bbb0efab68 Mon Sep 17 00:00:00 2001 From: Alexander Metzger Date: Thu, 21 Dec 2023 22:04:35 -0800 Subject: [PATCH] calendar quick event button --- public/calendar.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/calendar.js b/public/calendar.js index f12af4e..7adf08c 100644 --- a/public/calendar.js +++ b/public/calendar.js @@ -12,6 +12,14 @@ const resBusiness = await GET('/businesses'); const businesses = await resBusiness.json(); const sidebar = document.getElementsByClassName("calendar-events"); + +const quickEventBtn = document.createElement("a"); +quickEventBtn.href = "/scanner.html#new"; +quickEventBtn.textContent = "Create Quick Event Now"; +quickEventBtn.className = "button"; +quickEventBtn.style = "text-align: center;"; +sidebar[0].appendChild(quickEventBtn); + sidebar[0].innerHTML += /* html */`

${businesses.map((business, i) => /* html */`