Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--Status Icons: TrafficBox-->
- <div class="map_object map_table map_icon_large" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="overflow:hidden;<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">">
- <#mapobject type="objectgrip" mode="<@editmode>">
- <#mapobject type="htmlbefore" subid="<@subid>">
- <#sensor type="colorclassofstate" id="<@objectid>" var="status">
- <#objectproperty type="nodename" id="<@objectid>" var="nodename">
- <#if value="@nodename" is="sensor" then="sensr" else="hasred" varexpand="value" var="containsred">
- <#if value="@nodename" is="sensor" then="sensy" else="hasyellow hasnored" varexpand="value" var="containsyellow">
- <#if value="@nodename" is="sensor" then="sensg" else="hasgreen hasnoyellow hasnored" varexpand="value" var="containsgreen">
- <svg xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- version="1.0"
- width="100%"
- height="100%"
- viewBox="0 0 100 280">
- <defs>
- <rect x="0" y="0" width="100px" height="100px" style=" <#if value="@status" contains="@containsred" then="" else="opacity:0" varexpand="value,contains">" r="40" fill="#E6005F" cx="50" cy="50" />
- </defs>
- <use xlink:href="#a" />
- <g class="trafficlight" transform="translate(0,0)">
- <use xlink:href="#a" />
- <rect r="40" fill="#DADADA" cx="50" cy="50" />
- <rect width="100px" height="100px" style="<#if value="@status" contains="@containsred" then="" else="opacity:0" varexpand="value,contains">" fill="#E6005F" cx="50" cy="50" />
- <rect width="100px" height="100px" style="<#if value="@status" contains="@containsyellow" then="" else="opacity:0" varexpand="value,contains">" fill="#F59C00" cx="50" cy="140" />
- <rect width="100px" height="100px" style="<#if value="@status" contains="@containsgreen" then="" else="opacity:0" varexpand="value,contains">" fill="#C0CC19" cx="50" cy="230" />
- </g>
- </svg>
- <div style="position:relative;margin-top:-20px">
- <#mapobject type="htmlafter" subid="<@subid>">
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement