2013-06-28 22:55:36 +00:00
|
|
|
/*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,
|
2013-07-11 22:06:04 +00:00
|
|
|
width: 475,
|
2013-06-28 22:55:36 +00:00
|
|
|
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 ) );
|