art update

This commit is contained in:
Kyle
2021-01-11 20:52:21 -08:00
parent 5292edaa86
commit 830a61464d

View File

@@ -3,7 +3,7 @@ var params = new URLSearchParams(window.location.search);
//To save the server from being overloaded? Maybe? //To save the server from being overloaded? Maybe?
function fixUri(input) { function fixUri(input) {
var prefix = 'https://card-conjurer.storage.googleapis.com';//'https://raw.githubusercontent.com/ImKyle4815/cardconjurer/remake'; var prefix = 'https://card-conjurer.storage.googleapis.com';//'https://raw.githubusercontent.com/ImKyle4815/cardconjurer/remake';
if (input.includes(prefix) || input.includes('http') || input.includes('data:image') || params.get('testing') == '') { if (input.includes(prefix) || input.includes('http') || input.includes('data:image') || window.location.href.includes('localhost')) {
return input; return input;
} else { } else {
return prefix + input; //input.replace('/img/frames', prefix + '/img/frames'); return prefix + input; //input.replace('/img/frames', prefix + '/img/frames');
@@ -874,7 +874,7 @@ function artFromScryfall(scryfallResponse) {
changeArtIndex(); changeArtIndex();
} }
function changeArtIndex() { function changeArtIndex() {
imageURL(scryfallArt[document.querySelector('#art-index').value - 1].image_uris.art_crop, uploadArt, "autoFit"); uploadArt(scryfallArt[document.querySelector('#art-index').value - 1].image_uris.art_crop, "autoFit");
artistEdited(scryfallArt[document.querySelector('#art-index').value - 1].artist); artistEdited(scryfallArt[document.querySelector('#art-index').value - 1].artist);
} }
//SET SYMBOL TAB //SET SYMBOL TAB