Added file upload

This commit is contained in:
Yusur 2019-05-02 15:47:23 +02:00
parent 4dd61c825a
commit 244f689afc
6 changed files with 45 additions and 6 deletions

View file

@ -82,4 +82,9 @@ function requestUsernameAvailability(u, callback){
}
}
xhr.send();
}
function attachFileInput(){
var fileInput = document.getElementById('fileInputContainer');
fileInput.innerHTML = '<input type="file" accept="image/*" name="file">';
}

View file

@ -7,3 +7,4 @@ body{margin:0}
.metanav{float:right}
.header h1{margin:0;display:inline-block}
.flash{background-color:#ff9;border:yellow 1px solid}
.message-visual img{max-width:100%;max-height:8em}