This commit is contained in:
Kyle
2018-11-14 19:58:40 -08:00
parent 94e97122e4
commit f5095be2a4
8 changed files with 871 additions and 237 deletions

View File

@@ -2,8 +2,7 @@
//card size
var cardWidth = 749
var cardHeight = 1044
document.getElementsByClassName("column-1")[0].classList.remove("wide")
document.getElementsByClassName("column-2")[0].classList.remove("wide")
document.getElementsByClassName("mainGrid")[0].classList.remove("plane")
//Sets the correct values to anything that may have been changed from an out of the ordinary border
var eighthInfo = false
var m15Info = false

View File

@@ -3,8 +3,7 @@
//Card Size
cardWidth = 1074
cardHeight = 749
document.getElementsByClassName("column-1")[0].classList.add("wide")
document.getElementsByClassName("column-2")[0].classList.add("wide")
document.getElementsByClassName("mainGrid")[0].classList.add("plane")
//Card Title
var titleFont = cardHeight * 0.0454 + "px belerenb" //34
var titleFontSpacing = cardWidth * 0.00014 + "px" //0.15

View File

@@ -110,7 +110,7 @@ var cardClockInterval = setInterval(cardClock, 1000 / document.getElementById("i
//It's easier to generate the mana symbol list via js, so do it here
var symbolList = ""
for (var i = 0; i < manaSymbolCode.length; i++) {
symbolList += "<div class='column-4' alt='...'>" + manaSymbolCode[i] + "\u2192" + "<img id='" + i + "'></img></div>"
symbolList += "<div class='manaSymbol' alt='...'>" + manaSymbolCode[i] + "\u2192" + "<img id='" + i + "'></img></div>"
}
document.getElementById("symbolList").innerHTML = symbolList
@@ -813,4 +813,16 @@ function downloadCardImage(linkElement) {
//============================================//
// Log it! //
//============================================//
console.log("The main.js file has finished loading.")
console.log("The main.js file has finished loading.")
//============================================//
// WIP //
//============================================//
function toggleView(targetId, targetClass) {
// console.log(targetId.split(" ")[0])
for (i = 0; i < document.getElementsByClassName(targetClass).length; i++) {
document.getElementsByClassName(targetClass)[i].classList.remove("shown")
}
document.getElementById(targetClass + "-" + targetId).classList.add("shown")
}