Skip to content

Commit

Permalink
Merge pull request #811 from alphagov/add-three-word-survey
Browse files Browse the repository at this point in the history
Add three word test survey
  • Loading branch information
kalleth authored Jul 21, 2016
2 parents cdd13ab + f3ca085 commit 05c2625
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion app/assets/javascripts/surveys.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,22 @@
template: TEMPLATE,
frequency: 50,
},
smallSurveys: [],
smallSurveys: [
{
url: 'https://www.surveymonkey.com/s/VQ5X2SL',
template: '<section id="user-satisfaction-survey" class="visible" aria-hidden="false">' +
' <div class="wrapper">' +
' <h1>Which three words describe how you feel about your visit to GOV.UK today?</h1>' +
' <p class="right"><a href="#survey-no-thanks" id="survey-no-thanks">No thanks</a></p>' +
' <p><a href="javascript:void()" id="take-survey" target="_blank">Take the 1 question survey</a> This will open a short survey on another website</p>' +
' </div>' +
'</section>',
identifier: 'three_word_survey',
frequency: 50,
startTime: new Date("July 26, 2016").getTime(),
endTime: new Date("July 27, 2016 23:59:59").getTime()
}
],

init: function() {
var activeSurvey = userSurveys.getActiveSurvey(userSurveys.defaultSurvey, userSurveys.smallSurveys);
Expand Down

0 comments on commit 05c2625

Please sign in to comment.