Giter VIP home page Giter VIP logo

modern-cal-embed's Introduction

Modern iCal Calendar Embed

Example

This is a fully browser-side iCal (ics) calendar embed. It takes a link to an iCal file, and parses it and turns it into an embed. To use it, simply visit the link below and fill out the fields.

https://gra0007.github.io/modern-cal-embed/

Note: To use iCal urls that don't specify an Access-Control-Allow-Origin header, like from Google calendar, you'll need to use a cors proxy like https://cors-anywhere.herokuapp.com/.

You can test the embed's functionality using the following ics file url: https://gra0007.github.io/modern-cal-embed/example.ics

modern-cal-embed's People

Contributors

gra0007 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

modern-cal-embed's Issues

24:00 format and clickable links

This is an amazing calendar. I use it on my website.
What would make it really perfect is if I could change the time to a 24:00 format. And if the links in the events are clickable (at the moment they just show as text)

Is there a way I could do this?

Replace CORS Anywhere with CORS.SH?

The public demo of CORS Anywhere implemented some usage restrictions some time back and I found a replacement that's been running for a few years now.

Here's the playground and blog post about it by Grida.

And here's the usage:
https://proxy.cors.sh/https://your-server.com

Just wanted to share in case if you want to replace the references of CORS Anywhere with this. CORS Anywhere requires interaction before it works, while this just works (but also has extremely reasonable rate limits).

Calendar with events that have "null" location variables raise exceptions

I have a .ics file that has events that do not have a location value, they are null. These .ics files are not renderable with this. See the error message.

error_message

It seems like Chrome is complaining about this line, line 126 in embed.js.

if (event.location.startsWith('http')) {

I have already fixed this, see linked PR (#3).

invalid date-time value

Hi I am getting this error with pretty much every calendar I try. Seems the date parsing is off somehow?

caught (in promise) Error: invalid date-time value: "2022-01-01T::"
    at ICAL.Time.fromDateTimeString (ical.js:5901:13)
    at Object.decorate (ical.js:781:28)
    at r._decorate (ical.js:2939:47)
    at r._hydrateValue (ical.js:2922:44)
    at r.getFirstValue (ical.js:3068:19)
    at r.getFirstPropertyValue (ical.js:2500:21)
    at t._firstProp (ical.js:9318:29)
    at get endDate [as endDate] (ical.js:9148:26)
    at parseCalendar (embed.js:474:24)
    at embed.js:518:4
I

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.