Ajout de la page de contact
This commit is contained in:
7
assets/js/contact.js
Normal file
7
assets/js/contact.js
Normal file
@@ -0,0 +1,7 @@
|
||||
textarea = document.getElementById('message');
|
||||
|
||||
textarea.setAttribute('style', 'height:' + (textarea.scrollHeight) + 'px;overflow-y:hidden;');
|
||||
textarea.addEventListener("input", function () {
|
||||
this.style.height = 'auto';
|
||||
this.style.height = (this.scrollHeight) + 'px';
|
||||
});
|
Reference in New Issue
Block a user