Remove Hub75 led types from list if no support in build

This commit is contained in:
Will Tatam
2024-02-10 15:20:19 +00:00
parent 0c4d5ab0f3
commit 609f1936df
2 changed files with 17 additions and 0 deletions

View File

@@ -16,6 +16,19 @@
function B(){window.open("/settings","_self");}
function gId(n){return d.getElementById(n);}
function hideNoIR(){gId("irOnOff2").style.display="none";} //WLEDMM
function hideHub75() {
var s = d.getElementsByTagName("select");
for (i=0; i<s.length; i++) {
// is the field a LED type?
if (s[i].name.substring(0,2)=="LT") {
var selectobject = s[i];
for (var j=(selectobject.length - 1); j > 0; j--) {
var t = parseInt(selectobject.options[j].value);
if(t >= 100 && t <= 110) selectobject.remove(j);
}
}
}
}
function off(n){d.getElementsByName(n)[0].value = -1;}
// https://www.educative.io/edpresso/how-to-dynamically-load-a-js-file-in-javascript
function loadJS(FILE_URL, async = true) {