From 87f9fba5d357ba5ebc556b9aec5809cb6149b56b Mon Sep 17 00:00:00 2001 From: louisa Date: Wed, 14 Jun 2023 22:36:00 +0200 Subject: [PATCH] input.js --- public/js/input.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/js/input.js b/public/js/input.js index 0b9d100..dcc3a3b 100644 --- a/public/js/input.js +++ b/public/js/input.js @@ -17,7 +17,9 @@ var form = document.getElementById('form'); var input = document.getElementById('input'); form.addEventListener('submit', function(e) { - var input = document.getElementById('input'); + // Remove the var keyword from this line + input = document.getElementById('input'); + var inputString = $("#input").val(); log1 = document.querySelector('#log1'); log2 = document.querySelector('#log2'); @@ -35,6 +37,7 @@ form.addEventListener('submit', function(e) { console.log(inputString); } + if (inputString.includes('9.1.13.')){ levelTwo(); playTrack1();