houdini/client/js/campaigns/show/tour.js

36 lines
1.1 KiB
JavaScript
Raw Normal View History

// 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()
}