interface improvements

Co-authored-by: Alex <AlexanderMcDowell@users.noreply.github.com>
This commit is contained in:
2022-10-28 20:49:54 -07:00
parent 97ab6a1ed1
commit 8a364b81e6
10 changed files with 57 additions and 24 deletions

View File

@@ -33,6 +33,14 @@ html {
flex-direction: column;
}
#img-preview {
width: 18rem;
}
#pyro-eqn {
width: 800px;
}
.img-table-heading {
padding: 4px 10px;
}

11
static/img_preview.js Normal file
View File

@@ -0,0 +1,11 @@
function setOnchange() {
let imgPreview = document.getElementById('img-preview');
let imgUpload = document.getElementById('img-upload');
imgUpload.onchange = event => {
const [file] = imgUpload.files;
if (file) {
console.log(file)
imgPreview.src = URL.createObjectURL(file);
}
};
}