1
0
mirror of synced 2025-10-28 18:19:17 +00:00
This commit is contained in:
Valentin
2023-09-14 18:50:39 +02:00
parent 4d04f849dd
commit 05b4752183
10 changed files with 81 additions and 29 deletions

View File

@@ -29,19 +29,16 @@
}
function resizeTextArea(textarea) {
const { style, value } = textarea;
style.height = style.minHeight = 'auto';
style.minHeight = `${ Math.min(textarea.scrollHeight + 4, parseInt(textarea.style.maxHeight)) }px`;
style.height = `${ textarea.scrollHeight + 4 }px`;
$( "#server_user_false" ).on( "click", function() {
document.getElementById("inputOther").style.display = "none";
} );
$( "#server_user_true" ).on( "click", function() {
document.getElementById("inputOther").style.display = "";
} );
function fieldShow(value) {
console.log(value)
}
const textarea = document.getElementById('textarea');
textarea.addEventListener('input', () => {
resizeTextArea(textarea);
});
</script>
</body>
</html>