From 4e430ae934ef3824378c40316399ff3c10140554 Mon Sep 17 00:00:00 2001 From: Dave <58633928+ajokodavid@users.noreply.github.com> Date: Wed, 8 Sep 2021 10:31:41 +0100 Subject: [PATCH 1/5] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 2c42d1c..a5705d8 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,7 @@

- +
From 16ed6dee13ec83afc38dc885e3411418e28e2d5d Mon Sep 17 00:00:00 2001 From: Dave <58633928+ajokodavid@users.noreply.github.com> Date: Wed, 8 Sep 2021 10:37:35 +0100 Subject: [PATCH 2/5] Update style.css --- style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/style.css b/style.css index dd4b872..d7168d3 100644 --- a/style.css +++ b/style.css @@ -33,6 +33,7 @@ form{ width: 90%; height: 2vw; font-size: 20px; + font-family: "Sofia" sans-serif; } .output{ From 31910be0fdd21bc727b183851a0a6750633fe957 Mon Sep 17 00:00:00 2001 From: Dave <58633928+ajokodavid@users.noreply.github.com> Date: Wed, 8 Sep 2021 10:42:52 +0100 Subject: [PATCH 3/5] txtCounter A text counter that counts the number of characters and displays it while typing. Feel free to contribute. --- README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ce23d3d --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# txtCounter +A text counter From 71d9e7c9759c056b60d29c400b9655d4d07a4f28 Mon Sep 17 00:00:00 2001 From: Dave <58633928+ajokodavid@users.noreply.github.com> Date: Wed, 13 Dec 2023 18:03:52 +0100 Subject: [PATCH 4/5] Update main.js --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index c3c380a..b575822 100644 --- a/main.js +++ b/main.js @@ -11,7 +11,7 @@ function showText() { if(num < txt.length) { document.querySelector('#mytext').innerHTML += txt.charAt(num); num++; - setTimeout(showText, 200) + setTimeout(showText, 100) } } @@ -31,4 +31,4 @@ form.addEventListener('keydown', (function displayCounter() { function clear() { ouputer.innerHTML = ''; result.innerText = ''; -} \ No newline at end of file +} From 7e33e49ef199aaea43b948a2fe5b9781af26816a Mon Sep 17 00:00:00 2001 From: Dave <58633928+ajokodavid@users.noreply.github.com> Date: Wed, 13 Dec 2023 18:05:03 +0100 Subject: [PATCH 5/5] Update main.js --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index b575822..2b3a535 100644 --- a/main.js +++ b/main.js @@ -11,7 +11,7 @@ function showText() { if(num < txt.length) { document.querySelector('#mytext').innerHTML += txt.charAt(num); num++; - setTimeout(showText, 100) + setTimeout(showText, 1000) } } @@ -24,7 +24,7 @@ form.addEventListener('keydown', (function displayCounter() { let text2 = txtArea.value.length; ouputer.innerText = "The number of letters are: ".concat(text1 + ' (this is encoded)') result.innerText = "The number of letters are: ".concat(text2); - setTimeout(clear, 60000); + setTimeout(clear, 6000); } }) )