diff --git a/data/site/main.js b/data/site/main.js
index ad197331..8b62e26b 100644
--- a/data/site/main.js
+++ b/data/site/main.js
@@ -90,9 +90,10 @@ function init() {
}
//Runs any tests. This should not do anything when published.
setTimeout(testFunction, 100)
- checkCookies()
initiated = true
textCodeTutorial()
+ //Checks cookies!
+ setTimeout(checkCookies, 100)
}
//Loads an image. Only actually loads images the first time each image is loaded, otherwise assigns it.
function loadImage(index, target = "none") {
@@ -331,10 +332,22 @@ function changeVersionTo(versionToChangeTo) {
loadScript("data/versions/" + versionToChangeTo + "Version.js")
}
function finishChangingVersion() {
+ hideShowFrameTypes()
+ for (var i = 0; i < version.textList.length; i ++) {
+ document.getElementById("inputWhichTextTabs").innerHTML += "
" + version.textList[i][0] + "
"
+ if (i == 0) {
+ document.getElementsByClassName("tabButton text")[0].classList.add("activeTab")
+ }
+ }
+ updateText()
+ updateBottomInfoCanvas()
+ updateSetSymbolCanvas()
+}
+function hideShowFrameTypes() {
document.getElementById("frameType").innerHTML = ""
- document.getElementById("inputImageTypeOpacity").innerHTML = ""
- for (var i = 0; i < version.typeOrder.length; i ++) {
- if (!version.typeOrder[i].includes("Secondary")) {
+ document.getElementById("inputImageTypeOpacity").innerHTML = ""
+ for (var i = 0; i < version.typeOrder.length; i ++) {
+ if (!version.typeOrder[i].includes("Secondary") && (!version.typesAdvanced.includes(version.typeOrder[i]) || document.getElementById("checkboxAdvanced").checked)) {
tabSelectAddOption("frameType", version.typeOrder[i], version.typeOrder[i])
if (window[version.currentVersion + "Mask" + version.typeOrder[i]]) {
document.getElementById("inputImageTypeOpacity").innerHTML += ""
@@ -342,19 +355,10 @@ function finishChangingVersion() {
cardMasterOpacityValue[cardMasterOpacityValue.length] = 100
}
}
- }
+ }
document.getElementsByClassName("frameType")[0].className += " activeTab"
- for (var i = 0; i < version.textList.length; i ++) {
- document.getElementById("inputWhichTextTabs").innerHTML += "