diff --git a/app/assets/javascripts/homepage.js b/app/assets/javascripts/homepage.js deleted file mode 100644 index dd0a2ab1e..000000000 --- a/app/assets/javascripts/homepage.js +++ /dev/null @@ -1,24 +0,0 @@ -(function(window) { - "use strict"; - - window.GOVUK.Modules.Homepage = function() { - - this.start = function(component) { - - let $component = $(component); - let iterations = 0; - let timeout = null; - - $component.on('click', () => { - if (++iterations == 5) { - $component.toggleClass('product-page-intro-wrapper--alternative'); - } - clearTimeout(timeout); - timeout = setTimeout(() => iterations = 0, 1500); - }); - - }; - - }; - -})(window); diff --git a/gulpfile.js b/gulpfile.js index a8557aeec..578c1995b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -72,7 +72,6 @@ const javascripts = () => { paths.src + 'javascripts/radioSlider.js', paths.src + 'javascripts/updateStatus.js', paths.src + 'javascripts/errorBanner.js', - paths.src + 'javascripts/homepage.js', paths.src + 'javascripts/timeoutPopup.js', paths.src + 'javascripts/date.js', paths.src + 'javascripts/loginAlert.js',