add char counter

This commit is contained in:
zyqunix 2025-04-05 23:46:45 +02:00
parent 9ed3ee790e
commit 825c90e3b1
No known key found for this signature in database
GPG key ID: 134A8DEEA83B80E6
3 changed files with 51 additions and 0 deletions

6
character/index.js Normal file
View file

@ -0,0 +1,6 @@
const textElem = document.getElementById('input');
const countElem = document.getElementById('count');
setInterval(() => {
countElem.innerText = textElem.value.length;
}, 100);