mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-03 21:07:48 +00:00
37 lines
906 B
Plaintext
37 lines
906 B
Plaintext
<%
|
|
|
|
let height = 0;
|
|
let width = 0;
|
|
let left = 0;
|
|
let top = 0;
|
|
|
|
|
|
if(cue.parent){
|
|
width = 100/allCues[cue.parent].cartColumns;
|
|
height = 600/allCues[cue.parent].cartRows;
|
|
|
|
top = (cue.cartPosition[0]-1)*height;
|
|
left = (cue.cartPosition[1]-1)*width;
|
|
}
|
|
|
|
let style = `style="left:${left}%; top:${top}px; width:${width }%; height:${height}px;"`;
|
|
|
|
%>
|
|
|
|
<div id="<%= cue.uniqueID %>" class="cartCueWrapper" <%= style %> >
|
|
|
|
<div class="cartCueIcon">
|
|
<% if(cue.broken){ %>
|
|
<img src="plugins/qlab/img/status_broken_white.png" height="18px">
|
|
<% }else if(cue.running){ %>
|
|
<img src="plugins/qlab/img/pause_circled.png" height="24px">
|
|
<% }else{ %>
|
|
<img src="plugins/qlab/img/play_circled.png" height="24px">
|
|
<% } %>
|
|
</div>
|
|
|
|
<div class="cartCue cartColor-<%= cue.colorName %>">
|
|
<p><%= cue.number %> • <%= cue.displayName %></p>
|
|
</div>
|
|
|
|
</div> |