1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { createEvent } from "https://esm.sh/ics";
const event = {
start: [2018, 5, 30, 6, 30],
duration: { hours: 6, minutes: 30 },
title: "Bolder Boulder",
description: "Annual 10-kilometer run in Boulder, Colorado",
location: "Folsom Field, University of Colorado (finish line)",
url: "http://www.bolderboulder.com/",
geo: { lat: 40.0095, lon: 105.2669 },
categories: ["10k races", "Memorial Day Weekend", "Boulder CO"],
status: "CONFIRMED",
busyStatus: "BUSY",
organizer: { name: "Admin", email: "Race@BolderBOULDER.com" },
attendees: [
{ name: "Adam Gibbons", email: "adam@example.com", rsvp: true, partstat: "ACCEPTED", role: "REQ-PARTICIPANT" },
{
name: "Brittany Seaton",
email: "brittany@example2.org",
dir: "https://linkedin.com/in/brittanyseaton",
role: "OPT-PARTICIPANT",
},
],
};
createEvent(event, (error, value) => {
if (error) {
console.log(error);
return;
}
console.log(value);
});
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
September 12, 2024