Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- color function(alarmtype)
- {
- color = #000000;
- switch (selectedFeature) {
- case "temeperature":
- color = #ff0000;
- break;
- case "electricity":
- color = #000000;
- break;
- case "wireless/radio"
- color = #0000ff;
- break;
- }
- return color
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement