From 32695b8c5c3a77f24261c95154a06624f2541c94 Mon Sep 17 00:00:00 2001
From: Kyle <41976328+ImKyle4815@users.noreply.github.com>
Date: Tue, 22 Oct 2019 20:16:03 -0700
Subject: [PATCH] tabs
---
data/site/main.js | 35 ++++++++++++++++++++++++++++++++++-
data/site/styles.css | 39 ++++++++++++++++++++++++++++++++++++++-
index.html | 4 +++-
3 files changed, 75 insertions(+), 3 deletions(-)
diff --git a/data/site/main.js b/data/site/main.js
index cc192676..c4512b18 100644
--- a/data/site/main.js
+++ b/data/site/main.js
@@ -5,6 +5,7 @@
var cardWidth = 750, cardHeight = 1050
var version = {}
var date = new Date()
+var initiated = false
document.getElementById("inputInfoNumber").value = date.getFullYear()
//Make all the canvases and their contexts
var mainCanvas = document.getElementById("mainCanvas")
@@ -85,6 +86,7 @@ function init() {
//Runs any tests. This should not do anything when published.
setTimeout(testFunction, 100)
checkCookies()
+ initiated = true
}
//Loads an image. Only actually loads images the first time each image is loaded, otherwise assigns it.
function loadImage(index, target = "none") {
@@ -245,6 +247,9 @@ function updateBottomInfoCanvas() {
window[version.bottomInfoFunction]()
}
function updateCardCanvas() {
+ if (!initiated) {
+ return
+ }
//clear it
cardContext.fillStyle = "black"
cardContext.fillRect(0, 0, cardWidth, cardHeight)
@@ -316,7 +321,10 @@ function finishChangingVersion() {
}
}
for (var i = 0; i < version.textList.length; i ++) {
- document.getElementById("inputWhichText").innerHTML += ""
+ document.getElementById("inputWhichTextTabs").innerHTML += "