From 4dedd2de1c6572932567efb63d8ae3d0e195bc19 Mon Sep 17 00:00:00 2001 From: Murray Steele Date: Mon, 7 Mar 2016 12:15:20 +0000 Subject: [PATCH] Revert "Merge pull request #2282 from alphagov/start-now-button-abc-tests" This reverts commit c950be53933ca6a2a4600507fd304131cc1137b2, reversing changes made to 5a1581d6edbba1a5d20b25fb92e15b988cc48ba6. Note this isn't a clean revert as we've left in the Gemfile and Gemfile.lock changes to keep the govuk_frontend_toolkit upgrade. --- app/assets/javascripts/smart-answers.js | 2 - .../javascripts/start-now-button-abc-tests.js | 45 ------------------- 2 files changed, 47 deletions(-) delete mode 100644 app/assets/javascripts/start-now-button-abc-tests.js diff --git a/app/assets/javascripts/smart-answers.js b/app/assets/javascripts/smart-answers.js index bee56d59c0d..ddf380dcbd3 100644 --- a/app/assets/javascripts/smart-answers.js +++ b/app/assets/javascripts/smart-answers.js @@ -1,5 +1,3 @@ -//= require start-now-button-abc-tests - function browserSupportsHtml5HistoryApi() { return !! (history && history.replaceState && history.pushState); } diff --git a/app/assets/javascripts/start-now-button-abc-tests.js b/app/assets/javascripts/start-now-button-abc-tests.js deleted file mode 100644 index a049c915b0b..00000000000 --- a/app/assets/javascripts/start-now-button-abc-tests.js +++ /dev/null @@ -1,45 +0,0 @@ -//= require govuk/multivariate-test - -$(function(){ - if(window.location.href.indexOf("/overseas-passports") > -1) { - new GOVUK.MultivariateTest({ - el: '.get-started a', - name: 'startButton_osPassport_201602', - customDimensionIndex: 13, - contentExperimentId: 'egf8SiUzQJmsUuEIbxkCRw', - cohorts: { - original: { callback: function() {}, variantId: 0 }, - getApplicationInfo: { html: 'Get application information', variantId: 1 }, - next: { html: 'Next', variantId: 2 } - } - }); - } - - if(window.location.href.indexOf("/calculate-your-child-maintenance") > -1) { - new GOVUK.MultivariateTest({ - el: '.get-started a', - name: 'startButton_calcChildM_201602', - customDimensionIndex: 13, - contentExperimentId: 'u0MzUmYRRzmb5mchoGp9Fw', - cohorts: { - original: { callback: function() {}, variantId: 0 }, - calculate: { html: 'Calculate', variantId: 1 }, - estimateChildMaintenance: { html: 'Estimate your child maintenance', variantId: 2 } - } - }); - } - - if(window.location.href.indexOf("/marriage-abroad") > -1) { - new GOVUK.MultivariateTest({ - el: '.get-started a', - name: 'startButton_marriageAbroad_201602', - customDimensionIndex: 13, - contentExperimentId: 'Xk_FTKgiTwikoIH0fzPklw', - cohorts: { - original: { callback: function() {}, variantId: 0 }, - findOutHow: { html: 'Find out how', variantId: 1 }, - getMoreInfo: { html: 'Get more information', variantId: 2 } - } - }); - } -});