diff --git a/website/public/profile/scripts.js b/website/public/profile/scripts.js index 52cdba59..0254947a 100644 --- a/website/public/profile/scripts.js +++ b/website/public/profile/scripts.js @@ -92,3 +92,8 @@ function updem() { } }); } +var input = document.getElementsByTagName('input')[0]; + +input.onkeypress = input.onkeydown = function() { + this.size = ( this.value.length > 10 ) ? this.value.length : 10; +};