Readd Old 3DS/New 3DS model table (#2248)

Commit abe4f29aea missed the existence of
safecerthax, which would have caused an error on specific firmware 
versions.

This partially reverts commit abe4f29aea.
This commit is contained in:
Florian 2023-04-13 17:24:47 +02:00 committed by GitHub
parent abe4f29aea
commit 5d4a2a8953
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View file

@ -1,4 +1,4 @@
<!-- <table id="modeltable" class="modeltable" style="display:none">
<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>
@ -7,7 +7,7 @@
<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> -->
</table>
<div id="selectversion" class="selectversion" style="display:none">
<br>
<select id="major">
@ -107,7 +107,7 @@
</div>
<script>
//document.getElementById("modeltable").style.display = "block";
document.getElementById("modeltable").style.display = "block";
document.getElementById("selectversion").style.display = "block";
</script>

View file

@ -75,15 +75,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;
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 ((!isN3DS) && (!isO3DS)) {
// document.getElementById("result_noneSelected").style.display = "block";
//}
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";
}
// only do things if major isnt 0, which would be invalid