A.Degtyarev
Новая страница: «Let's change the color of the element depending on the state of the relay, if the value in the topic is <code>1</code> , then paint the object yellow, otherwise - gray: <syntaxhighlight lang="javascript"> (val == 1) ? ';fill: yellow' : ';fill: gray' </syntaxhighlight>»