mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 13:21:41 -05:00
More Moving
This commit is contained in:
9
data/scripts/loadColors.js
Normal file
9
data/scripts/loadColors.js
Normal file
@@ -0,0 +1,9 @@
|
||||
//loadColors("white-White,blue-Blue,colorlessLand-Colorless Land,gold-Gold")
|
||||
function loadColors(colors) {
|
||||
var endResult = ""
|
||||
var colorList = colors.split(",")
|
||||
for (i = 0; i < colorList.length; i++) {
|
||||
endResult += "<option value='" + colorList[i].split("-")[0] + "'>" + colorList[i].split("-")[1] + "</option>"
|
||||
}
|
||||
document.getElementById("colorSelection").innerHTML = endResult
|
||||
}
|
Reference in New Issue
Block a user