Hook up all the new pages to version selector
This commit is contained in:
parent
7b85b4d444
commit
40110bdc5a
6 changed files with 75 additions and 11 deletions
|
@ -1,3 +1,13 @@
|
|||
<table id="modeltable" class="modeltable" style="display:none">
|
||||
<thead>
|
||||
<th><div align="center">Old 3DS/2DS</div></th>
|
||||
<th><div align="center">New 3DS/2DS</div></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<td> <img class="tableimage" src="/images/old3ds.png" alt="old 3DS"> <img class="tableimage" src="/images/old3dsxl.png" alt="old 3DS"> <img class="tableimage" src="/images/2ds.png" alt="old 3DS"><br><br><input type="radio" name="checkbox" id="old3DS"></td>
|
||||
<td> <img class="tableimage" src="/images/new3ds.png" alt="old 3DS"> <img class="tableimage" src="/images/new3dsxl.png" alt="old 3DS"> <img class="tableimage" src="/images/new2dsxl.png" alt="old 3DS"><br><br><input type="radio" name="checkbox" id="new3DS"></td>
|
||||
</tbody>
|
||||
</table>
|
||||
<div id="selectversion" class="selectversion" style="display:none">
|
||||
<br>
|
||||
<select id="major">
|
||||
|
@ -97,9 +107,11 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
document.getElementById("modeltable").style.display = "block";
|
||||
document.getElementById("selectversion").style.display = "block";
|
||||
</script>
|
||||
|
||||
<p id="result_noneSelected" style="display:none">{{ include.noneSelected }}</p>
|
||||
<p id="result_invalidVersion" style="display:none">{{ include.invalidVersion }}</p>
|
||||
<p id="result_methodUnavailable" style="display:none">{{ include.methodUnavailable }}</p>
|
||||
|
||||
|
|
|
@ -25,6 +25,10 @@ If you see an unusual menu, STOP - you already have custom firmware! Continue fr
|
|||
|
||||
To find the correct method for your device, please enter the system version you found in Section II.
|
||||
|
||||
{% capture noneSelected %}
|
||||
System model is required.
|
||||
{% endcapture %}
|
||||
|
||||
{% capture invalidVersion %}
|
||||
This doesn't seem to be a valid system version.
|
||||
{% endcapture %}
|
||||
|
@ -33,7 +37,7 @@ This doesn't seem to be a valid system version.
|
|||
You currently cannot hack your 3DS on this version using the main methods. If you want to hack your console, you have to use ntrboot.
|
||||
{% endcapture %}
|
||||
|
||||
{% include consoleVersionSelect.html invalidVersion=invalidVersion methodUnavailable=methodUnavailable %}
|
||||
{% include consoleVersionSelect.html noneSelected=noneSelected invalidVersion=invalidVersion methodUnavailable=methodUnavailable %}
|
||||
|
||||
---
|
||||
#### Alternate Methods
|
||||
|
|
|
@ -33,3 +33,17 @@ input:hover {
|
|||
border-radius: 10px;
|
||||
}
|
||||
|
||||
img.tableimage {
|
||||
height: 40%;
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
table.modeltable {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
input[type="radio"] {
|
||||
width: 50px;
|
||||
height: 25px;
|
||||
transition: none;
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue