This commit is contained in:
Kyle
2020-07-10 17:55:28 -07:00
parent 53c89cfd4b
commit 0768e0e3ec
9 changed files with 21 additions and 21 deletions

View File

@@ -27,7 +27,7 @@ document.getElementById('footer').innerHTML = `
<div>
<a href='/'>Home</a><br>
<a href='/creator'>Card Creator</a><br>
<a href='/askscryfall'>Ask Scryfall</a><br>
<a href='/askurza'>Ask Urza 2.0</a><br>
<a href='/phyrexian'>Phyrexian Text</a><br>
<a href='/life.html'>Life Counter</a><br>
<a href='/about'>About Me</a>

View File

@@ -10,13 +10,13 @@ function loadAbilities() {
}
}
}
xhttp.open("GET", "/data/site/other/askScryfall/planeswalkerAbilities.txt", true);
xhttp.open("GET", "/data/site/other/askUrza/planeswalkerAbilities.txt", true);
xhttp.send();
}
function randomAbility(index) {
possibleAbilities = fullAbilityList[index]
document.getElementById("askScryfallResult").innerHTML = possibleAbilities[Math.floor(Math.random() * (possibleAbilities.length - 1))].replace(/\\"/g, '"')
document.getElementById("askUrzaResult").innerHTML = possibleAbilities[Math.floor(Math.random() * (possibleAbilities.length - 1))].replace(/\\"/g, '"')
}
loadAbilities()

View File

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 47 KiB

View File

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

View File

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 49 KiB

View File

Before

Width:  |  Height:  |  Size: 653 KiB

After

Width:  |  Height:  |  Size: 653 KiB