houdini/app/javascript/legacy/campaigns/show/tour.js
2020-04-23 14:09:14 -05:00

35 lines
1.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// License: LGPL-3.0-or-later
require('../../common/vendor/bootstrap-tour-standalone')
var tour_campaign = new Tour({
steps: [
{
orphan: true,
title: 'Welcome to your new campaign!',
content: "Click 'Next' to find out how you can flesh out your campaign before sharing it."
},
{
title: 'Manage your campaign',
placement: 'bottom',
element: '.tour-admin',
content: "You can manage your campaign by clicking on these buttons at the top of the page."
},
{
element: '.froala-box',
title: 'Write your story',
content: "Every successful campaign has a powerful story. Write and edit your story in the area to the left. You can add formatting by clicking the icons at the top of this box."
},
{
orphan: true,
title: 'Youre on your way!',
content: "Once youve written your campaign story and added gift options, you can start sharing it with all your contacts. Were excited for it to succeed!"
}
]
})
if($.cookie('tour_campaign') === String(app.nonprofit_id)) {
$.removeCookie('tour_campaign', {path: '/'})
tour_campaign.init()
tour_campaign.restart()
}