diff --git a/index.html b/index.html
index 6bb0c49..bfee1f4 100644
--- a/index.html
+++ b/index.html
@@ -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);
});
}
diff --git a/main.css b/main.css
index a0b21af..2b4ffc8 100644
--- a/main.css
+++ b/main.css
@@ -86,6 +86,7 @@ body {
height: 400px;
outline: 0;
line-height: 1.7em;
+ padding: 25px;
}
.result {