% function cueTemplate(cueList, groupModes, depth, workspace){ %>
<% depth++ %>
<% for(var c in cueList.cues){ %>
<% var cue = cueList.cues[c] %>
|
<% if(cue.broken){ %>
<% }else if(cue.running){ %>
<% }else if(cue.loaded){ %>
<% }else if(cue.flagged){ %>
<% }else{ %>
<% } %>
|
 %>.png) |
<%- cue.number || " " %> |
<%
var nextCueDepth = 0;
if(workspace.allCuesOrdered[cue.index+1]!=undefined){
nextCueDepth = workspace.allCuesOrdered[cue.index+1].groups.length-1;
}
%>
<% for(var i=0; i
<% if(i==depth-1 && cue.type=="Group"){ %>
<% if(cue.cues.length==0){ %>
|
<% }else{ %>
|
<% } %>
<% }else if(i
|
<% }else if(i>=nextCueDepth && i
|
<% }else if(i==depth-1 && i>nextCueDepth){ %>
|
<% }else{ %>
|
<% } %>
<% } %>
<% if(cue.type=="Group"){ %>
<% if(cue.cues.length==0){ %>
<%= cue.listName %> |
<% }else{ %>
<%= cue.listName %> |
<% } %>
<% }else if(depth>nextCueDepth+1){ %>
<%= cue.listName %> |
<% }else if(depth>1){ %>
<%= cue.listName %> |
<% }else{ %>
<%= cue.listName %> |
<% } %>
<%= cue.target %> |
<% if(cue.preWait){ %>
<%= prettyFormatTime(cue.preWait) %> |
<% }else{ %>
00:00.00 |
<% } %>
<% if(cue.duration || (cue.type=="Group" && cue.mode==3)){ %>
<% %>
<%= prettyFormatTime(cue.duration) %> |
<% }else{ %>
|
<% } %>
<% if(cue.postWait){ %>
<%= prettyFormatTime(cue.postWait) %> |
<% }else{ %>
00:00.00 |
<% } %>
<% if(cue.continueMode==2){ %>
 |
<% }else if(cue.continueMode==1){ %>
 |
<% }else{ %>
|
<% } %>
<% if(cue.cues){ %>
<% groupModes.push(cue.mode) %>
<% cueTemplate(cue, groupModes, depth, workspace) %>
<% } %>
<% } %>
<% groupModes.pop(); %>
<% } %>
<% function cartTemplate(cueList, groupModes, depth, workspace){ %>
<% } %>
<%= listName %>
<%= data.version || "" %>
<% for(var i in data.workspaces){ %>
<% for(var j in data.workspaces[i].cueLists){ %>
<%
let cueList = data.workspaces[i].cueLists[j];
let width = 100/cueList.cartRows;
let height = 600/(cueList.cartColumns+1);
%>
<%= cueList.listName %> - <%= data.workspaces[i].displayName %>
<% if(cueList.type=="Cart"){ %>
<% for(let r=0; r
<% for(let c=0; c
<% } %>
<% } %>
<% for(var c in cueList.cues){
let cue = cueList.cues[c];
if(!cue.cartPosition){
continue;
}
let row = cue.cartPosition[0]-1;
let col = cue.cartPosition[1]-1;
let colPos = width*col;
let rowPos = height*row;
if(col>=cueList.cartColumns || row>=cueList.cartRows){
continue;
}
%>
<% if(cue.broken){ %>

<% }else if(cue.running){ %>

<% }else{ %>

<% } %>
<%= cue.number %> • <%= cue.displayName %>
<% } %>
<% }else{ %>
<% cueListOffset = 0 %>
|
|
|
Number |
|
Q |
|
|
|
|
|
|
|
|
|
Target |
Pre Wait |
Action |
Post Wait |
|
<% cueTemplate(cueList, [], [], data.workspaces[i]); %>
<% } %>
<% } %>
<% } %>
<%
function prettyFormatTime(seconds){
var startIndex = 14;
if(seconds>=3600){
startIndex = 11;
}
var string = new Date(seconds * 1000).toISOString()
return string.substring(startIndex, string.length-2)
}
%>