lavoce #42
@@ -74,19 +74,6 @@ const listenMessage = (callback) => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const dryerIds = ['c_4018', 'c_4021', 'c_5018', 'c_5021', 'c_6018', 'c_6021'];
|
|
||||||
const DryerColor = (condition) => {
|
|
||||||
switch (condition) {
|
|
||||||
case 1:
|
|
||||||
c_4018.style.fill = 'yellow';
|
|
||||||
c_4021.style.fill = 'rgb(216,216,216)';
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
c_4018.style.fill = 'rgb(216,216,216)';
|
|
||||||
c_4021.style.fill = 'yellow';
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const colorIds = ['c_1023', 'c_2023', 'c_2023'];
|
const colorIds = ['c_1023', 'c_2023', 'c_2023'];
|
||||||
const StatusColor = (el, num) => {
|
const StatusColor = (el, num) => {
|
||||||
switch (num) {
|
switch (num) {
|
||||||
@@ -101,6 +88,7 @@ const StatusColor = (el, num) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const dryerIds = ['c_4018', 'c_4021', 'c_5018', 'c_5021', 'c_6018', 'c_6021'];
|
||||||
const handleBoolean = (svg, el, value) => {
|
const handleBoolean = (svg, el, value) => {
|
||||||
if (!dryerIds.includes(el.id)) {
|
if (!dryerIds.includes(el.id)) {
|
||||||
el.style.display = value ? '' : 'none';
|
el.style.display = value ? '' : 'none';
|
||||||
|
|||||||
Reference in New Issue
Block a user