mirror of
https://github.com/hacks-guide/Guide_3DS.git
synced 2025-08-28 10:49:58 +02:00
Hook up all the new pages to version selector
This commit is contained in:
committed by
lifehackerhansol
parent
7b85b4d444
commit
40110bdc5a
@@ -212,10 +212,15 @@ $(document).ready(function() {
|
||||
"bannerbomb3": "9",
|
||||
"installing-boot9strap-(usm)": "10",
|
||||
"installing-boot9strap-(kartdlphax)": "11",
|
||||
"bannerbomb3-fredtool-(twn)": "12",
|
||||
"bannerbomb3-fredtool-(twn)": "12",
|
||||
"installing-boot9strap-(ssloth-browser)": "13",
|
||||
"key-information": "14",
|
||||
"seedminer-(twn)": "15"
|
||||
"key-information": "14",
|
||||
"seedminer-(twn)": "15",
|
||||
"installing-boot9strap-(frogtool)": "16",
|
||||
"installing-boot9strap-(hbl-usm)": "17",
|
||||
"homebrew-launcher-(super-skaterhax)": "18",
|
||||
"dumping-movable-(nimhax)": "19",
|
||||
"installing-boot9strap-(safecerthax)": "20"
|
||||
};
|
||||
|
||||
for(var device in devices){
|
||||
@@ -261,8 +266,13 @@ $(document).ready(function() {
|
||||
"11": ["installing-boot9strap-(kartdlphax)", "finalizing-setup"],
|
||||
"12": ["seedminer-(twn)", "bannerbomb3-fredtool-(twn)", "finalizing-setup"],
|
||||
"13": ["installing-boot9strap-(ssloth-browser)", "finalizing-setup"],
|
||||
"14": ["multiple-options", "finalizing-setup"],
|
||||
"15": ["seedminer-(twn)", "bannerbomb3-fredtool-(twn)", "finalizing-setup"]
|
||||
"14": ["multiple-options", "finalizing-setup"],
|
||||
"15": ["seedminer-(twn)", "bannerbomb3-fredtool-(twn)", "finalizing-setup"],
|
||||
"16": ["homebrew-launcher-(super-skaterhax)", "dumping-movable-(nimhax)", "installing-boot9strap-(frogtool)", "finalizing-setup"],
|
||||
"17": ["homebrew-launcher-(super-skaterhax)", "installing-boot9strap-(hbl-usm)", "finalizing-setup"],
|
||||
"18": ["homebrew-launcher-(super-skaterhax)", "multiple-options", "finalizing-setup"],
|
||||
"19": ["homebrew-launcher-(super-skaterhax)", "dumping-movable-(nimhax)", "multiple-options", "finalizing-setup"],
|
||||
"20": ["installing-boot9strap-(safecerthax)", "finalizing-setup"]
|
||||
}
|
||||
// Can add custom routing if necessary but currently both routes are identical
|
||||
var device_old = Object.assign({}, device_common,{
|
||||
@@ -279,7 +289,7 @@ $(document).ready(function() {
|
||||
}
|
||||
unhide = unhide.concat(route[device][method]);
|
||||
if(typeof unhide !== 'undefined' && unhide.length > 0){
|
||||
unhide.push("key-information")
|
||||
unhide.push("key-information")
|
||||
unhide.push("get-started");
|
||||
var ol = $('.sidebar.sticky .nav__list .nav__items ol');
|
||||
for (var i = 0; i < unhide.length; i++){
|
||||
@@ -303,4 +313,4 @@ $(document).ready(function() {
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
2
assets/js/main.min.js
vendored
2
assets/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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";
|
||||
}
|
||||
|
Reference in New Issue
Block a user