mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-26 21:04:58 -05:00
name
This commit is contained in:
@@ -816,9 +816,6 @@ function loadSetSymbolWatermark() {
|
||||
}
|
||||
//Loads an image from URL
|
||||
function imageURL(input, targetImage) {
|
||||
if (targetImage.crossOrigin == null) {
|
||||
targetImage.crossOrigin = "anonymous"
|
||||
}
|
||||
targetImage.cropped = false
|
||||
if (targetImage == imgWatermark) {
|
||||
imgWatermark.whiteToTransparent = false
|
||||
@@ -827,9 +824,6 @@ function imageURL(input, targetImage) {
|
||||
}
|
||||
function loadImage(event, destination, arg) {
|
||||
if (arg != false) {
|
||||
if (isMobile == true) {
|
||||
destination.crossOrigin = null
|
||||
}
|
||||
var input = event.target
|
||||
var reader = new FileReader()
|
||||
reader.onload = function() {
|
||||
|
@@ -261,7 +261,7 @@
|
||||
</div>
|
||||
<div class="cmm" id="cmm-art">
|
||||
Image
|
||||
<input type="file" class="input" accept="image/*" onchange="loadImage(event, imgArt, true)" id="inputPicture">
|
||||
<input type="file" name="inputCardArt" class="input" accept="image/*" onchange="loadImage(event, imgArt, true)" id="inputPicture">
|
||||
<br>
|
||||
<input type="text" class="input" placeholder="Or use a URL" onchange="imageURL(this, imgArt)">
|
||||
<br>
|
||||
|
Reference in New Issue
Block a user