mirror of
https://github.com/wled/WLED.git
synced 2025-07-21 01:36:32 +00:00
Minor cleaning.
This commit is contained in:
parent
409c1b7584
commit
9b7b1d6a61
@ -286,7 +286,7 @@ function showErrorToast()
|
|||||||
showToast('Connection to light failed!', true);
|
showToast('Connection to light failed!', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
function clearErrorToast() {gId("toast").className = gId("toast").className.replace("error", "");}
|
function clearErrorToast() {gId("toast").classList.remove("error");}
|
||||||
|
|
||||||
function getRuntimeStr(rt)
|
function getRuntimeStr(rt)
|
||||||
{
|
{
|
||||||
@ -498,8 +498,7 @@ function loadFXData(callback = null)
|
|||||||
clearErrorToast();
|
clearErrorToast();
|
||||||
fxdata = json||[];
|
fxdata = json||[];
|
||||||
// add default value for Solid
|
// add default value for Solid
|
||||||
fxdata.shift();
|
fxdata.shift().unshift("@;!;");
|
||||||
fxdata.unshift("@;!;");
|
|
||||||
})
|
})
|
||||||
.catch(function (error) {
|
.catch(function (error) {
|
||||||
fxdata = [];
|
fxdata = [];
|
||||||
@ -547,9 +546,9 @@ function populatePresets(fromls)
|
|||||||
cn += `<div class="pres" id="p${i}o">`;
|
cn += `<div class="pres" id="p${i}o">`;
|
||||||
if (cfg.comp.pid) cn += `<div class="pid">${i}</div>`;
|
if (cfg.comp.pid) cn += `<div class="pid">${i}</div>`;
|
||||||
cn += `<div class="pname" onclick="setPreset(${i})">${isPlaylist(i)?"<i class='icons btn-icon'></i>":""}${pName(i)}</div>
|
cn += `<div class="pname" onclick="setPreset(${i})">${isPlaylist(i)?"<i class='icons btn-icon'></i>":""}${pName(i)}</div>
|
||||||
<i class="icons e-icon flr ${expanded[i+100] ? "exp":""}" id="sege${i+100}" onclick="expand(${i+100})"></i>
|
<i class="icons e-icon flr ${expanded[i+100] ? "exp":""}" id="sege${i+100}" onclick="expand(${i+100})"></i>
|
||||||
<div class="segin" id="seg${i+100}"></div>
|
<div class="segin" id="seg${i+100}"></div>
|
||||||
</div>`;
|
</div>`;
|
||||||
pNum++;
|
pNum++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -832,15 +831,9 @@ function genPalPrevCss(id)
|
|||||||
} else {
|
} else {
|
||||||
if (selColors) {
|
if (selColors) {
|
||||||
let e = element[1] - 1;
|
let e = element[1] - 1;
|
||||||
//if (Array.isArray(selColors[e])) {
|
r = selColors[e][0];
|
||||||
r = selColors[e][0];
|
g = selColors[e][1];
|
||||||
g = selColors[e][1];
|
b = selColors[e][2];
|
||||||
b = selColors[e][2];
|
|
||||||
//} else {
|
|
||||||
// r = (selColors[e]>>16) & 0xFF;
|
|
||||||
// g = (selColors[e]>> 8) & 0xFF;
|
|
||||||
// b = (selColors[e] ) & 0xFF;
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (index === false) {
|
if (index === false) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user