Compare commits
2 Commits
bad5da5e11
...
46e922a33d
| Author | SHA1 | Date | |
|---|---|---|---|
| 46e922a33d | |||
| 33b847d3e5 |
@@ -103,14 +103,12 @@ const handleBoolean = (svg, el, value) => {
|
|||||||
const els2 = svg.querySelectorAll(`#${id2}`);
|
const els2 = svg.querySelectorAll(`#${id2}`);
|
||||||
|
|
||||||
if (!els1 || !els2) return;
|
if (!els1 || !els2) return;
|
||||||
// balik arah khusus untuk airdryerA
|
|
||||||
if (dryerIds.slice(0, 2).includes(el.id)) value = !value;
|
|
||||||
|
|
||||||
els1.forEach(el => {
|
els1.forEach(el => {
|
||||||
el.style.fill = value ? 'rgb(255, 204, 63)' : 'rgb(216,216,216)';
|
el.style.fill = value ? 'rgb(216,216,216)' : 'rgb(255, 204, 63)';
|
||||||
});
|
});
|
||||||
els2.forEach(el => {
|
els2.forEach(el => {
|
||||||
el.style.fill = value ? 'rgb(216,216,216)' : 'rgb(255, 204, 63)';
|
el.style.fill = value ? 'rgb(255, 204, 63)' : 'rgb(216,216,216)';
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user