mirror of
https://github.com/viliusle/miniPaint.git
synced 2026-02-06 13:11:51 +00:00
#77 - example with edit image on page load without clicking. (still need to uncomment line 75 to enable it.)
This commit is contained in:
parent
5f7a91d797
commit
0d75cc08a0
@ -67,4 +67,11 @@ function my_update(){
|
||||
target.height = dim.height;
|
||||
target.src = tempCanvas.toDataURL();
|
||||
}
|
||||
|
||||
/**
|
||||
* will auto load image on page load. Uncomment line below to make it work
|
||||
*/
|
||||
window.onload = function () {
|
||||
//open_image(document.getElementById('testImage')); //uncomment me
|
||||
};
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user