diff --git a/app/assets/javascripts/surveys.js b/app/assets/javascripts/surveys.js index 5b326e1a0..f7596d4d6 100644 --- a/app/assets/javascripts/surveys.js +++ b/app/assets/javascripts/surveys.js @@ -23,31 +23,18 @@ }, smallSurveys: [ { - url: 'https://www.surveymonkey.com/s/2MRDLTW', - identifier: 'user_satisfaction_survey', - template: TEMPLATE, - frequency: 10, - activeWhen: function() { - function breadcrumbMatches() { - var text = $('#global-breadcrumb').text() || ""; - return (/Education/i.test(text) || /Schools/i.test(text) || /Childcare/i.test(text)); - } - - function sectionMatches() { - var sectionName = $('meta[name="govuk:section"]').attr('content'); - return (sectionName === 'education and learning' || sectionName === 'childcare and parenting'); - } - - function organisationMatches() { - var orgMatchingExpr = /||||||/; - var metaText = $('meta[name="govuk:analytics:organisations"]').attr('content') || ""; - return orgMatchingExpr.test(metaText); - } - - return (sectionMatches() || breadcrumbMatches() || organisationMatches()); - }, - startTime: new Date("August 9, 2016").getTime(), - endTime: new Date("August 10, 2016 23:59:59").getTime() + url: 'https://www.surveymonkey.co.uk/r/GZ2JDHZ', + identifier: 'three_word_survey', + template: '
' + + '
' + + '

How do you feel about your visit to GOV.UK today?

' + + '

No thanks

' + + '

Take the 1 question survey This will open a short survey on another website

' + + '
' + + '
', + startTime: new Date("September 7, 2016").getTime(), + endTime: new Date("September 8, 2016 23:59:59").getTime(), + frequency: 50, } ],