revert and dont revert at the same time (#2216)
* Fix redirects to CHN and TWN related options
This commit is contained in:
parent
9677b82b6d
commit
95ceec3f91
1 changed files with 51 additions and 69 deletions
|
@ -1,69 +1,51 @@
|
||||||
function isSSLothable(v) {
|
function sslothable(s, n) {
|
||||||
var m = v.minor;
|
if
|
||||||
var n = v.nver;
|
(
|
||||||
return (
|
(s == 4 && n == 37) ||
|
||||||
(m == 4 && n == 37) ||
|
(s == 5 && n == 38) ||
|
||||||
(m == 5 && n == 38) ||
|
(s == 6 && n == 39) ||
|
||||||
(m == 6 && n == 39) ||
|
(s == 7 && n == 40) ||
|
||||||
(m == 7 && n == 40) ||
|
(s == 8 && n == 41) ||
|
||||||
(m == 8 && n == 41) ||
|
(s == 9 && n == 42) ||
|
||||||
(m == 9 && n == 42) ||
|
(s == 10 && n == 43) ||
|
||||||
(m == 10 && n == 43) ||
|
(s == 11 && n == 43) ||
|
||||||
(m == 11 && n == 43) ||
|
(s == 12 && n == 44) ||
|
||||||
(m == 12 && n == 44) ||
|
(s == 13 && n == 45)
|
||||||
(m == 13 && n == 45)
|
) {
|
||||||
);
|
return true;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
function getResultText(v) {
|
}
|
||||||
if (v.major == 0) {
|
function redirect() {
|
||||||
return 1;
|
var cfw = document.getElementById("mySelecti");
|
||||||
}
|
var mainver = document.getElementById("mySelect");
|
||||||
if (v.region == "C") {
|
var smallver = document.getElementById("mySelec");
|
||||||
return 2;
|
var nver = document.getElementById("mySel");
|
||||||
}
|
var region = document.getElementById("mySe");
|
||||||
return undefined;
|
document.getElementById("result_invalidVersion").style.display = "none";
|
||||||
}
|
document.getElementById("result_methodUnavailable").style.display = "none";
|
||||||
|
if (mainver.value == 0) {
|
||||||
function getRedirect(v) {
|
document.getElementById("result_invalidVersion").style.display = "block";
|
||||||
if (v.major < 11 || v.minor < 4) {
|
}
|
||||||
return "installing-boot9strap-(soundhax)";
|
else if (mainver.value < 11 || smallver.value < 4) {
|
||||||
}
|
window.location.href = "installing-boot9strap-(soundhax)";
|
||||||
if (v.nver < 37 && v.minor < 16) {
|
}
|
||||||
return "installing-boot9strap-(soundhax-sp)";
|
else if (nver.value < 36 && smallver.value < 16) {
|
||||||
}
|
window.location.href = "installing-boot9strap-(soundhax-sp)";
|
||||||
if (isSSLothable(v)) {
|
}
|
||||||
return "installing-boot9strap-(ssloth-browser)";
|
else if (sslothable(smallver.value, nver.value)) {
|
||||||
}
|
window.location.href = "installing-boot9strap-(ssloth-browser)";
|
||||||
if (v.region == "T") {
|
}
|
||||||
return "seedminer(twn)";
|
else if (region.value === "T") {
|
||||||
}
|
window.location.href = "seedminer-(twn)";
|
||||||
return "seedminer";
|
}
|
||||||
}
|
else if (region.value === "C") {
|
||||||
|
document.getElementById("result_methodUnavailable").style.display = "block";
|
||||||
function redirect() {
|
}
|
||||||
var v = {
|
else {
|
||||||
major: document.getElementById("mySelect").value,
|
window.location.href = "seedminer";
|
||||||
minor: document.getElementById("mySelec").value,
|
}
|
||||||
nver: document.getElementById("mySel").value,
|
}
|
||||||
region: document.getElementById("mySe").value
|
|
||||||
};
|
|
||||||
var result = getResultText(v);
|
|
||||||
if (result !== undefined) {
|
|
||||||
document.getElementById("result_invalidVersion").style.display = "none";
|
|
||||||
document.getElementById("result_methodUnavailable").style.display = "none";
|
|
||||||
|
|
||||||
switch(result) {
|
|
||||||
case 1:
|
|
||||||
document.getElementById("result_invalidVersion").style.display = "block";
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
document.getElementById("result_methodUnavailable").style.display = "block";
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
window.location.href = getRedirect(v);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue