Skip to content

Commit

Permalink
fix: restore byte calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
rycont committed Sep 14, 2024
1 parent 44277e7 commit 3b002e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@
document.getElementById('counter').value = content;
}

textarea.addEventListener("content-change", function(e) {
counter(e.detail.content);
textarea.addEventListener("input", function(e) {
counter(e.target.value);
});
}

Expand Down
1 change: 1 addition & 0 deletions main.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ body {
height: 400px;
outline: 0;
line-height: 1.7em;
padding: 25px;
}

.result {
Expand Down

0 comments on commit 3b002e9

Please sign in to comment.