From be30c91cec3c1d76663bd53322450473f2a8fc59 Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 15 May 2020 03:28:13 +0100 Subject: [PATCH] added the ability to click the logo to go to the test. closes #7 --- public/js/script.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/js/script.js b/public/js/script.js index 9803b5797..161400564 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -731,6 +731,10 @@ function updateAccountLoginButton() { } } +$(document).on("click", "#top .logo", (e) => { + changePage('test'); +}); + $(document).on("click", "#top .config .wordCount .button", (e) => { wrd = e.currentTarget.innerHTML; changeWordCount(wrd);