diff src/site.js @ 42:0c1b820fff34

use push
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 08 Nov 2022 14:02:28 -0700
parents 1ce75c5ab0f7
children 289718f121e4
line wrap: on
line diff
--- a/src/site.js	Sun Nov 06 17:39:21 2022 -0700
+++ b/src/site.js	Tue Nov 08 14:02:28 2022 -0700
@@ -63,3 +63,10 @@
 function fileButtonClick(button) {
 	button.parentNode.querySelector('input[type="file"]').click();
 }
+
+function fixTextarea(textarea) {
+	let height = textarea.scrollHeight;
+	if( height > textarea.clientHeight ) {
+		textarea.style.height = height + "px";
+	}
+}