mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 05:30:13 +01:00
fix: place emojis in .ts file
oops
This commit is contained in:
@@ -54,21 +54,20 @@ async function loadEvents(org_id: number, evs?: Promise<any>) {
|
||||
for (const ev of events) {
|
||||
const card = document.createElement("div");
|
||||
card.className = "event-card filled";
|
||||
//card.innerHTML = `
|
||||
// <span>${ev.title}</span>`
|
||||
// Do odkomentowania kiedy widok podglądu wydarzeń będzie gotowy
|
||||
|
||||
let formattedDate: string = new Intl.DateTimeFormat('en-US', {
|
||||
weekday: 'long', // "Monday"
|
||||
year: 'numeric', // "2023"
|
||||
month: 'long', // "December"
|
||||
day: 'numeric' // "1"
|
||||
}).format(ev.eventDate);
|
||||
console.log(formattedDate);
|
||||
}).format(new Date(ev.eventDate));
|
||||
|
||||
card.innerHTML = `
|
||||
<span>
|
||||
<a href="/view.html?event=${ev.eventId}" style="color: #2898BD">${ev.title}</a>
|
||||
<p style="margin: 0">${ev.organisation} | ${ev.location} | ${formattedDate}</p>
|
||||
<p style="margin: 0">👥 ${ev.organisation} | 📍 ${ev.location} | 📅 ${formattedDate}</p>
|
||||
</span>`
|
||||
|
||||
if (org_id == ev.organisationId) {
|
||||
card.innerHTML += `
|
||||
<div>
|
||||
|
||||
@@ -47,10 +47,10 @@ document.addEventListener("DOMContentLoaded", async () => {
|
||||
|
||||
|
||||
titleText.innerHTML = thisEvent.title + ` (#${eventId})`;
|
||||
locationText.innerHTML = "Place: " + thisEvent.location;
|
||||
locationText.innerHTML = "📍 Place: " + thisEvent.location;
|
||||
descText.innerHTML = thisEvent.description;
|
||||
dateText.innerHTML = "When: " + newdateText + " " + newtimeText; //thisEvent.eventDate;
|
||||
organizerText.innerHTML = "Organized by: " + thisEvent.organisationName;
|
||||
dateText.innerHTML = "📅 When: " + newdateText + " " + newtimeText; //thisEvent.eventDate;
|
||||
organizerText.innerHTML = "👥 Organized by: " + thisEvent.organisationName;
|
||||
|
||||
if (org_id == thisEvent.organisationId) {
|
||||
// Użytkownik jest organizacją, która
|
||||
|
||||
Reference in New Issue
Block a user