mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 13:21:41 -05:00
More Moving
This commit is contained in:
11
data/scripts/loadImage.js
Normal file
11
data/scripts/loadImage.js
Normal file
@@ -0,0 +1,11 @@
|
||||
function loadImage(event, destination, arg) {
|
||||
if (arg != false) {
|
||||
var input = event.target
|
||||
var reader = new FileReader()
|
||||
reader.onload = function() {
|
||||
var dataURL = reader.result
|
||||
destination.src = dataURL
|
||||
}
|
||||
reader.readAsDataURL(input.files[0])
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user