1
0
mirror of https://github.com/hacks-guide/Guide_3DS.git synced 2025-08-30 03:39:50 +02:00

Hook up all the new pages to version selector

This commit is contained in:
Gruetzig
2023-04-06 21:17:49 -07:00
committed by lifehackerhansol
parent 7b85b4d444
commit 40110bdc5a
6 changed files with 75 additions and 11 deletions

View File

@@ -44,9 +44,15 @@ function redirect() {
var minor = document.getElementById("minor");
var nver = document.getElementById("nver");
var region = document.getElementById("region");
var isN3DS = document.getElementById("new3DS").checked;
var isO3DS = document.getElementById("old3DS").checked;
document.getElementById("result_noneSelected").style.display = "none";
document.getElementById("result_invalidVersion").style.display = "none";
document.getElementById("result_methodUnavailable").style.display = "none";
if (major.value == 0) {
if ((!isN3DS) && (!isO3DS)) {
document.getElementById("result_noneSelected").style.display = "block";
}
else if (major.value == 0) {
document.getElementById("result_invalidVersion").style.display = "block";
}
else { //only do things if major isnt 0, which would be invalid
@@ -57,6 +63,12 @@ function redirect() {
else if (sslothable(minor.value, nver.value)) { //check for versions that are not cartupdated, cartupdated consoles cannot access the browser, see troubleshooting for solution
window.location.href = "installing-boot9strap-(ssloth-browser)";
}
else if (minor.value < 15 && isO3DS) {
window.location.href = "installing-boot9strap-(safecerthax)";
}
else if (isN3DS) {
window.location.href = "homebrew-launcher-(super-skaterhax)"; //new browserhax for latest version
}
else { //seedminer does still work for the latest version on E/U/J/K/T/C, but can only be chained on E/U/J/K/T
window.location.href = "seedminer";
}
@@ -68,6 +80,12 @@ function redirect() {
else if (sslothablekor(minor.value, nver.value)) { //check for versions that are not cartupdated, cartupdated consoles cannot access the browser, see troubleshooting for solution
window.location.href = "installing-boot9strap-(ssloth-browser)";
}
else if (minor.value < 15 && isO3DS) {
window.location.href = "installing-boot9strap-(safecerthax)";
}
else if (isN3DS) {
window.location.href = "homebrew-launcher-(super-skaterhax)";
}
else { //seedminer does still work for the latest version on E/U/J/K/T/C, but can only be chained on E/U/J/K/T
window.location.href = "seedminer";
}
@@ -79,8 +97,11 @@ function redirect() {
//else if (sslothable(minor.value, nver.value)) { //check for versions that are not cartupdated, cartupdated consoles cannot access the browser, see troubleshooting for solution
// window.location.href = "installing-boot9strap-(ssloth-browser)"; //OTHERAPP BROKEN FOR TWN/CHN 11.4+ ATM
//}
else if (minor < 15 && isO3DS) {
window.location.href = "installing-boot9strap-(safecerthax)";
}
else { //seedminer does still work for the latest version on E/U/J/K/T/C, but can only be chained on E/U/J/K/T
window.location.href = "seedminer";
window.location.href = "seedminer-(twn)";
}
}
else if (region.value === "C") { //chn stuff
@@ -90,6 +111,9 @@ function redirect() {
//else if (sslothable(minor.value, nver.value)) { //check for versions that are not cartupdated, cartupdated consoles cannot access the browser, see troubleshooting for solution
// window.location.href = "installing-boot9strap-(ssloth-browser)"; //OTHERAPP BROKEN FOR TWN/CHN 11.4+ ATM
//}
else if (minor < 15 && isO3DS) {
window.location.href = "installing-boot9strap-(safecerthax)";
}
else { //seedminer does still work for the latest version on E/U/J/K/T/C, but can only be chained on E/U/J/K/T, so CHN cannot be modded atm without additional hardware
document.getElementById("result_methodUnavailable").style.display = "block";
}