mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-26 21:04:58 -05:00
Update main.js
This commit is contained in:
@@ -732,7 +732,12 @@ function inputCardArtName(cardArtNameInput) {
|
|||||||
xhttp.send()
|
xhttp.send()
|
||||||
}
|
}
|
||||||
function inputCardArtNameNumber(cardArtNameNumberInput) {
|
function inputCardArtNameNumber(cardArtNameNumberInput) {
|
||||||
cardArt.src = cardArtUrlList[cardArtNameNumberInput - 1]
|
var temporaryCardArt = new Image()
|
||||||
|
temporaryCardArt.crossOrigin = 'anonymous'
|
||||||
|
temporaryCardArt.onload = function() {
|
||||||
|
cardArt.src = this.src
|
||||||
|
}
|
||||||
|
temporaryCardArt.src = cardArtUrlList[cardArtNameNumberInput - 1] //config.hosts << "img.scryfall.com" //environment configuration
|
||||||
document.getElementById('inputInfoArtist').value = cardArtArtistList[cardArtNameNumberInput - 1]
|
document.getElementById('inputInfoArtist').value = cardArtArtistList[cardArtNameNumberInput - 1]
|
||||||
document.getElementById('inputInfoArtist2').value = document.getElementById('inputInfoArtist').value
|
document.getElementById('inputInfoArtist2').value = document.getElementById('inputInfoArtist').value
|
||||||
bottomInfoUpdated()
|
bottomInfoUpdated()
|
||||||
|
Reference in New Issue
Block a user