diff --git a/web/static/script.js b/web/static/script.js index 7e7bed6..8e2d7b3 100644 --- a/web/static/script.js +++ b/web/static/script.js @@ -5,6 +5,7 @@ document.getElementById("input").addEventListener("keydown", function (event) { document.getElementById("translation-form").submit(); } }); +// @license-end // Auto resize textarea to fit words inside it without need to scroll -- Thanks to: https://stackoverflow.com/a/25621277 var input = document.getElementById("input"); @@ -14,5 +15,4 @@ output.setAttribute("style", "height:" + output.scrollHeight + "px;overflow-y:sc input.addEventListener("input", function (e) { this.style.height = 150 + "px"; this.style.height = this.scrollHeight + "px"; -}); -// @license-end \ No newline at end of file +}); \ No newline at end of file