Skip to content

Commit

Permalink
calendar quick event button
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderGi committed Dec 22, 2023
1 parent 1ee165f commit 0396da7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions public/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */`
<hr><br>
${businesses.map((business, i) => /* html */`
Expand Down

0 comments on commit 0396da7

Please sign in to comment.