mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 05:14:53 -05:00
redesign
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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")
|
||||
}
|
Reference in New Issue
Block a user