Compare commits
No commits in common. "3d1129c613dd6403b06dd5e355df9239fb2a5252" and "6e43249d649a1baffe25d1c7cf5b6a40b3794651" have entirely different histories.
3d1129c613
...
6e43249d64
14
script.js
14
script.js
|
@ -165,7 +165,15 @@ async function run() {
|
||||||
buttonImageProceed.removeAttribute("disabled");
|
buttonImageProceed.removeAttribute("disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
cropper.loadImage(e.target.result);
|
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);
|
||||||
|
}
|
||||||
}, "image");
|
}, "image");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -174,7 +182,7 @@ async function run() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleImage() {
|
function handleImage() {
|
||||||
console.log("Loading image: " + load_image(cropper.getCroppedImage()));
|
console.log(load_image(cropper.getCroppedImage()));
|
||||||
loadPreview();
|
loadPreview();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -216,7 +224,7 @@ async function run() {
|
||||||
});
|
});
|
||||||
|
|
||||||
function addRoom() {
|
function addRoom() {
|
||||||
el("added").innerText = add_room();
|
console.log(add_room());
|
||||||
textareaGameDataOutput.value = output();
|
textareaGameDataOutput.value = output();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue