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 diff --git a/index.html b/index.html index 2c42d1c..a5705d8 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,7 @@
diff --git a/main.js b/main.js index c3c380a..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, 200) + setTimeout(showText, 1000) } } @@ -24,11 +24,11 @@ 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); } }) ) function clear() { ouputer.innerHTML = ''; result.innerText = ''; -} \ No newline at end of file +} 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{