mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-18 19:55:55 +00:00
8f63a5e38e
Change-Id: I37336f1d8f962e31d6a241106384c542879f6e67
32 lines
911 B
JavaScript
32 lines
911 B
JavaScript
/*global mw */
|
|
( function ( $, gt ) {
|
|
gt.defineTour( {
|
|
name: 'vegendersurvey',
|
|
isSinglePage: true,
|
|
// shouldLog tells GuidedTour to provide additional logging (step impressions, etc.)
|
|
shouldLog: true,
|
|
steps: [ {
|
|
titlemsg: 'guidedtour-tour-vegendersurvey-title',
|
|
descriptionmsg: 'guidedtour-tour-vegendersurvey-description',
|
|
allowAutomaticOkay: false,
|
|
overlay: true,
|
|
width: 475,
|
|
buttons: [ {
|
|
namemsg: 'guidedtour-tour-vegendersurvey-male',
|
|
onclick: function () {
|
|
ve.init.mw.genderSurvey.logAndEndTour( 'male' );
|
|
}
|
|
}, {
|
|
namemsg: 'guidedtour-tour-vegendersurvey-female',
|
|
onclick: function () {
|
|
ve.init.mw.genderSurvey.logAndEndTour( 'female' );
|
|
}
|
|
}, {
|
|
namemsg: 'guidedtour-tour-vegendersurvey-optout',
|
|
onclick: function () {
|
|
ve.init.mw.genderSurvey.logAndEndTour( 'opt-out' );
|
|
}
|
|
} ]
|
|
} ]
|
|
} );
|
|
} ( jQuery, mw.guidedTour ) ); |