From 2e0e64e8bad3183d846825b226a55b2a68b7a306 Mon Sep 17 00:00:00 2001 From: zaphircd Date: Sat, 30 Sep 2023 18:51:30 +0000 Subject: [PATCH] Move @license-end in the correct position git-svn-id: file:///srv/svn/repo/mai/trunk@46 e410bdd4-646f-c54f-a7ce-fffcc4f439ae --- web/static/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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