Added file upload
This commit is contained in:
parent
4dd61c825a
commit
244f689afc
6 changed files with 45 additions and 6 deletions
|
|
@ -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">';
|
||||
}
|
||||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue