mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-26 21:04:58 -05:00
hotfix hotfix!
This commit is contained in:
@@ -110,8 +110,10 @@ function setSymbolFromGatherer() {
|
||||
// autoCrop(setSymbol, 'https://cors-anywhere.herokuapp.com/http://gatherer.wizards.com/Handlers/Image.ashx?type=symbol&set=' + document.getElementById('inputSetCode').value + '&size=large&rarity=' + document.getElementById('inputSetRarity').value)
|
||||
}
|
||||
}
|
||||
setSymbol.onerror = function () {
|
||||
this.src = '/data/images/cardImages/blank.png'
|
||||
}
|
||||
setSymbol.onload = function() {
|
||||
if (setSymbol.width >=1) {
|
||||
if (setSymbol.width / setSymbol.height > setSymbolWidth / setSymbolHeight) {
|
||||
setSymbolDrawWidth = setSymbolWidth
|
||||
setSymbolDrawHeight = setSymbolWidth * setSymbol.height / setSymbol.width
|
||||
@@ -130,10 +132,6 @@ setSymbol.onload = function() {
|
||||
setSymbolDrawY -= setSymbolDrawHeight / 2
|
||||
}
|
||||
drawCardObjects()
|
||||
} else {
|
||||
setSymbol.src = '/data/images/cardImages/blank.png'
|
||||
}
|
||||
|
||||
}
|
||||
watermark.onload = function() {
|
||||
watermarkUpdated()
|
||||
|
Reference in New Issue
Block a user