Compare commits
3 Commits
6e43249d64
...
3d1129c613
Author | SHA1 | Date |
---|---|---|
Max Bradbury | 3d1129c613 | |
Max Bradbury | 3b851975d0 | |
Max Bradbury | afc626bae0 |
14
script.js
14
script.js
|
@ -165,15 +165,7 @@ async function run() {
|
|||
buttonImageProceed.removeAttribute("disabled");
|
||||
}
|
||||
|
||||
if (load_image(e.target.result) === "128×128") {
|
||||
// we can't just do `buttonImageProceed.click()`
|
||||
// because this calls the handleImage() function, which we don't want here
|
||||
el("page-image").style.display = "none";
|
||||
el("page-room").style.display = "block";
|
||||
loadPreview();
|
||||
} else {
|
||||
cropper.loadImage(e.target.result);
|
||||
}
|
||||
cropper.loadImage(e.target.result);
|
||||
}, "image");
|
||||
});
|
||||
|
||||
|
@ -182,7 +174,7 @@ async function run() {
|
|||
}
|
||||
|
||||
function handleImage() {
|
||||
console.log(load_image(cropper.getCroppedImage()));
|
||||
console.log("Loading image: " + load_image(cropper.getCroppedImage()));
|
||||
loadPreview();
|
||||
}
|
||||
|
||||
|
@ -224,7 +216,7 @@ async function run() {
|
|||
});
|
||||
|
||||
function addRoom() {
|
||||
console.log(add_room());
|
||||
el("added").innerText = add_room();
|
||||
textareaGameDataOutput.value = output();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue