Page History
...
Code Block | ||||
---|---|---|---|---|
| ||||
image "Lights.svg" handle showLight in "#theRect" with (elem, status) ' // elem is the element referenced via "in" // status is the value of showLight elem.style.fill = status === 0 ? "red" : status === 1 ? "yellow" : "green" ' event "click" on "#theRect" step simulation set showLight ' if (bellmagicshowLight <!= 31) { bellmagic++ } return bellmagic ' perform on click from theRect { showLight = 1 step simulation } if showLight != 11 } ' |
Overview
Content Tools