fc77ee76d6
The primary license of the project is changing to: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later The Additional Permission is designed to permit publicly distributed Javascript code to be relicensed under LGPL-3.0-or-later, but not server-side Javascript code. As such, we've relicensed here static Javscript files under LGPL-3.0-or-later, and those that run as part of build and/or server side under AGPL-3.0-or-later. Note that in future, Javascript files may be updated to be stronger copyleft license with the Additional Permission, particularly if they adapted to run on server side and/or turned into templates. Of course, we'd seek public discussion with the contributor community about such changes. This commit is one of the many steps to relicense the entire codebase. Documentation granting permission for this relicensing (from all past contributors who hold copyrights) is on file with Software Freedom Conservancy, Inc.
68 lines
2 KiB
JavaScript
68 lines
2 KiB
JavaScript
// License: LGPL-3.0-or-later
|
|
require('../../common/vendor/bootstrap-tour-standalone')
|
|
|
|
var $nav = $('.sideNav')
|
|
var $text = $('.sideNav-text')
|
|
|
|
function showNav(){
|
|
$nav.css('width', '240px')
|
|
$text.css({
|
|
'-webkit-opacity' : '1',
|
|
'-moz-opacity': '1',
|
|
'-ms-opacity': '1',
|
|
'opacity': '1'
|
|
})
|
|
}
|
|
|
|
function hideNav(){
|
|
$nav.removeAttr('style')
|
|
$text.removeAttr('style')
|
|
}
|
|
|
|
var dashboard_tour = new Tour({
|
|
backdrop: false,
|
|
steps: [
|
|
{
|
|
orphan: true,
|
|
title: 'Welcome to CommitChange!',
|
|
content: "This dashboard will give you a detailed overview of all of your fundraising activities. As you begin to raise money through donations, contributions and ticket sales, this dashboard will show more helpful information."
|
|
},
|
|
{
|
|
element: '.tour-graph',
|
|
placement: 'bottom',
|
|
title: 'Graph',
|
|
content: "This graph will chart your donation history. You can change the time span from the top of the graph."
|
|
},
|
|
{
|
|
element: '.tour-metrics',
|
|
placement: 'left',
|
|
title: 'Overview metrics',
|
|
content: "These metrics will help show you the big picture of your fundraising."
|
|
},
|
|
{
|
|
element: '.tour-listings',
|
|
placement: 'left',
|
|
title: 'Recent metrics',
|
|
content: "These metrics will help give you a day-to-day picture of your fundraising. You can also create a new campaign or event by simply clicking on one of the orange buttons."
|
|
},
|
|
{
|
|
backdrop: false,
|
|
orphan: true,
|
|
title: 'Navigation',
|
|
content: "To find other parts of our site, such as payments history, settings and your profile page, use the sidebar on the left.",
|
|
onHide: hideNav,
|
|
onShow: showNav,
|
|
},
|
|
{
|
|
orphan: true,
|
|
title: "You're all set!",
|
|
content: "Check your inbox for an email confirmation link. We will verify your status as a nonprofit within 5-7 days. Contact support@commitchange.com if you have any questions. We're glad to have you on board!"
|
|
}
|
|
]
|
|
})
|
|
|
|
if($.cookie('tour_dashboard') === String(app.nonprofit_id)) {
|
|
$.removeCookie('tour_dashboard', {path: '/'})
|
|
dashboard_tour.init()
|
|
dashboard_tour.restart()
|
|
}
|