Skip to content

Instantly share code, notes, and snippets.

@nmussy
Last active December 18, 2015 05:49
Show Gist options
  • Save nmussy/5735806 to your computer and use it in GitHub Desktop.
Save nmussy/5735806 to your computer and use it in GitHub Desktop.
$('#torturial-example-delay').torturial([
{
steps: [
{
popovers: [
{
text: [
"Wait a few seconds. ",
"Five, to be precise."
].join(''),
attachTo: $('#delay-button'),
attachPos: 'left'
}
],
delay: 5000
}
]
}, {
steps: [
{
popovers: [
{
id: 'some-popover',
text: [
"Here's another one, to show ",
"you what multiple views look like."
].join(''),
attachTo: $('#delay-button'),
attachPos: 'left'
},
{
text: [
"By the way, you're going to have to ",
"press Escape, or click on the cross."
].join(''),
attachTo: $('#delay-button'),
attachPos: 'right'
}
]
}
]
}
],
{}).torturial('show');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment