Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
lib-ical
Commits
42d85435
Commit
42d85435
authored
Jan 24, 2016
by
Sebastian
Browse files
tonic example
parent
67083dfa
Changes
2
Hide whitespace changes
Inline
Side-by-side
example/example_tonic.js
0 → 100644
View file @
42d85435
var
ical
=
require
(
'
ical-generator
'
),
cal
=
ical
({
domain
:
'
localhost
'
}),
event
;
// overwrite domain
cal
.
domain
(
'
example.com
'
);
event
=
cal
.
createEvent
({
start
:
new
Date
(
new
Date
().
getTime
()
+
3600000
),
end
:
new
Date
(
new
Date
().
getTime
()
+
7200000
),
summary
:
'
Example Event
'
,
description
:
'
It works ;)
'
,
organizer
:
'
Organizer
\'
s Name <organizer@example.com>
'
,
url
:
'
http://sebbo.net/
'
});
// update event's description
event
.
description
(
'
It still works ;)
'
);
cal
.
toString
();
\ No newline at end of file
package.json
View file @
42d85435
...
...
@@ -19,6 +19,7 @@
"scripts"
:
{
"test"
:
"grunt && istanbul cover _mocha -- -R spec --no-colors"
},
"tonicExampleFilename"
:
"./example/example_tonic.js"
,
"preferGlobal"
:
false
,
"main"
:
"./lib/index.js"
,
"repository"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment