carlsednaoui/add-to-calendar-buttons
소개
웹사이트에 '캘린더에 추가' 버튼을 간편하게 추가할 수 있습니다. 이 JavaScript 라이브러리는 Google Calendar, iCal, Outlook, Yahoo Calendar를 지원합니다.
생산성 및 자동화측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalOuiCal
A simple JS library that enables you to add an "add to calendar" button for your upcoming events.
Inspiration
This project was inspired by Eventbrite's add to calendar feature (which should have been open sourced #justSayin).
How to use it?
Call 'createCalendar' with your event info, pass in any optional parameters such as a class and/ or id and boom! Insert your add-to-calendar div wherever you'd like.
The only fields that are mandatory are:
- Event title
- Start time
- Event duration, in minutes
Example
var myCalendar = createCalendar({
options: {
class: 'my-class',
// You can pass an ID. If you don't, one will be generated for you
id: 'my-id'
},
data: {
// Event title
title: 'Get on the front page of HN',
// Event start date
start: new Date('June 15, 2013 19:00'),
// Event duration (IN MINUTES)
duration: 120,
// You can also choose to set an end time
// If an end time is set, this will take precedence over duration
end: new Date('June 15, 2013 23:00'),
// Event Address
address: 'The internet',
// Event Description
description: 'Get on the front page of HN, then prepare for world domination.'
}
});
document.querySelector('#place-where-I-want-this-calendar').appendChild(myCalendar);
Looking for Instant Gratification?
Copy OuiCal into Chrome's JS console (or whatever browser you're using).
Then call this:
document.getElementsByTagName('body')[0].appendChild(createCalendar({data:{title:"this is the title of my event", start: new Date(), duration: 90}}));
#winning!
Calendar Generator
Need to generate an add-to-calendar widget on the fly? No problem, go here.
GitHub Project Page
License
관련 프로젝트 살펴보기
불러오는 중…