diff --git a/data/manaSymbols/57.png b/data/manaSymbols/57.png new file mode 100644 index 00000000..60428e96 Binary files /dev/null and b/data/manaSymbols/57.png differ diff --git a/index.html b/index.html index 581b6ed5..bcec3967 100644 --- a/index.html +++ b/index.html @@ -205,10 +205,18 @@ Use the following codes to get the respective symbol in the card's mana cost and rules text. In the mana cost, make sure to include spaces in between the codes, and in the rules text include '<' before each code and '>' after.
-






+
When selecting the card's color, use 'Second Color' for hybrid cards, and 'Third Color' for non-hybrid two-colored cards. +
+ Check out some samples! -
For Terms of Use and Disclaimer, see the Github page.
+
+ + + +
+
+
For Terms of Use and Disclaimer, see the Github page.
@@ -312,17 +320,11 @@ select { } .text { padding: 10px; - text-align: left; color: rgb(128, 128, 128); font-family: beleren; font-size: 25px; -} -.text img { - position: relative; - top: 8px; - width: 30px; - padding: 0px 0px 0px 0px !important; - margin: 0px; + margin: auto; + text-align: center; } #symbolList { margin: 5px; @@ -332,6 +334,14 @@ select { white-space: normal; display: inline-block; } +#symbolList img { + position: relative; + top: 8px; + width: 30px; + padding: 0px 0px 0px 0px !important; + margin: 1px; + background-color: rgba(128,255,128, 0.1); +} body { color: rgb(255,255,255); font-family: mplantin; @@ -348,6 +358,14 @@ canvas { float: left; padding: 10px; } +* { + box-sizing: border-box; +} +.clearfix::after { + content: ""; + clear: both; + display: table; +} a:link { color: rgb(128,128,128); } @@ -421,24 +439,12 @@ for (i = 0; i < imgListStatic.length; i ++) { window[imgName].src = "data/borders/" + imgListStatic[i] + ".png" } //Mana symbol Array setup -var manaSymbolCode = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "w", "u", "b", "r", "g", "2w", "2u", "2b", "2r", "2g", "pw", "pu", "pb", "pr", "pg", "wu", "wb", "ub", "ur", "br", "bg", "rg", "rw", "gw", "gu", "x", "snow", "c", "t","untap", "e", "y", "z", "half", "inf", "chaos"] +var manaSymbolCode = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "w", "u", "b", "r", "g", "2w", "2u", "2b", "2r", "2g", "pw", "pu", "pb", "pr", "pg", "wu", "wb", "ub", "ur", "br", "bg", "rg", "rw", "gw", "gu", "x", "snow", "c", "t","untap", "e", "y", "z", "half", "inf", "chaos", "plane"] var manaSymbolImages = new Array() -var symbolList = "" for (var i = 0; i < manaSymbolCode.length; i++) { manaSymbolImages[i] = new Image() manaSymbolImages[i].src = "data/manaSymbols/" + i + ".png" - // - if (i%5 == 0) { - document.getElementById("symbolList").innerHTML += "
" - symbolList += "
" - } - symbolList += manaSymbolCode[i] + "\u2192" + "
" - if (i%5 == 4) { - document.getElementById("symbolList").innerHTML += "
" - symbolList += "
" - } } -document.getElementById("symbolList").innerHTML = symbolList //load first set symbol loadSetSymbol() //fill second watermark dropdown menu @@ -1043,6 +1049,18 @@ function resizeThings() { } else { document.getElementById("optionsColumn").style = "width: 100%" } + var symbolList = "" + var rowCount = Math.ceil(manaSymbolCode.length / Math.floor((window.innerWidth - 30) / 120)) + for (var i = 0; i < manaSymbolCode.length; i++) { + if (i%rowCount == 0) { + symbolList += "
" + } + symbolList += manaSymbolCode[i] + "\u2192" + "
" + if (i%rowCount == rowCount - 1) { + symbolList += "
" + } + } + document.getElementById("symbolList").innerHTML = symbolList } //Loads the set symbol from my seperate repository diff --git a/Sample Cards/sample-card-1.png b/sampleCards/sample-card-1.png similarity index 100% rename from Sample Cards/sample-card-1.png rename to sampleCards/sample-card-1.png diff --git a/Sample Cards/sample-card-2.png b/sampleCards/sample-card-2.png similarity index 100% rename from Sample Cards/sample-card-2.png rename to sampleCards/sample-card-2.png diff --git a/Sample Cards/sample-card-3.png b/sampleCards/sample-card-3.png similarity index 100% rename from Sample Cards/sample-card-3.png rename to sampleCards/sample-card-3.png diff --git a/Sample Cards/sample-card-5.png b/sampleCards/sample-card-5.png similarity index 100% rename from Sample Cards/sample-card-5.png rename to sampleCards/sample-card-5.png diff --git a/Sample Cards/sample-card-6.png b/sampleCards/sample-card-6.png similarity index 100% rename from Sample Cards/sample-card-6.png rename to sampleCards/sample-card-6.png