carlsednaoui / add-to-calendar-buttons

Easily add a "add to calendar" button to your websites. This JavaScript library supports Google Calendar, iCal, Outlook and Yahoo Calendar.
476 stars 171 forks source link

What is the purpose of the checkbox in your script? #24

Open rampatra opened 6 years ago

rampatra commented 6 years ago

Very helpful project indeed, just curious to know the purpose of the checkbox.

commonpike commented 5 years ago

The 'add to calendar' link is a form label, pointing to the checkbox. The separate 'xxx calendar' links are hidden by css. When the checkbox is checked, css shows the separate links. So that trick doesn't require javascript to show/hide the link elements.