equal
deleted
inserted
replaced
50 '<div class="media-found-list" style="height: <%= height %>px"><div class="media-segment-list-inner"></div><%= segments %></div>' |
50 '<div class="media-found-list" style="height: <%= height %>px"><div class="media-segment-list-inner"></div><%= segments %></div>' |
51 ), |
51 ), |
52 mashupstatus = '', |
52 mashupstatus = '', |
53 addMode, currentMedia, currentSegment; |
53 addMode, currentMedia, currentSegment; |
54 |
54 |
55 var colors = ["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"]; |
|
56 |
|
57 IriSP.mashupcore(project, mashup); |
55 IriSP.mashupcore(project, mashup); |
58 |
56 |
59 /* Validation of segments and mashup */ |
57 /* Validation of segments and mashup */ |
60 |
58 |
61 var segmentcritical = [ |
59 var segmentcritical = [ |
195 vizdata = { |
193 vizdata = { |
196 annotation : _a, |
194 annotation : _a, |
197 left : k * _a.begin, |
195 left : k * _a.begin, |
198 width : k * _a.getDuration(), |
196 width : k * _a.getDuration(), |
199 top: 8 * line.index, |
197 top: 8 * line.index, |
200 color: colors[i % colors.length], |
198 color: IriSP.vizcolors[i % IriSP.vizcolors.length], |
201 title: _a.title.replace(replace, '<span style="background: #fc00ff; color: #ffffff;">$1</span>'), |
199 title: _a.title.replace(replace, '<span style="background: #fc00ff; color: #ffffff;">$1</span>'), |
202 popleft : corrpos, |
200 popleft : corrpos, |
203 pointerpos : (pos - corrpos), |
201 pointerpos : (pos - corrpos), |
204 } |
202 } |
205 html += mediafoundtemplate(vizdata); |
203 html += mediafoundtemplate(vizdata); |
455 left : k * _a.begin, |
453 left : k * _a.begin, |
456 width : k * _a.getDuration(), |
454 width : k * _a.getDuration(), |
457 height: 8, |
455 height: 8, |
458 top: 8 * line.index, |
456 top: 8 * line.index, |
459 pointerpos : (pos - corrpos), |
457 pointerpos : (pos - corrpos), |
460 color: colors[i % colors.length] |
458 color: IriSP.vizcolors[i % IriSP.vizcolors.length] |
461 } |
459 } |
462 html += mediasegmenttemplate(vizdata); |
460 html += mediasegmenttemplate(vizdata); |
463 }); |
461 }); |
464 return mediasegmentlisttemplate({ |
462 return mediasegmentlisttemplate({ |
465 height: 8 * lines.length, |
463 height: 8 * lines.length, |
871 return false; |
869 return false; |
872 }); |
870 }); |
873 |
871 |
874 mashup.trigger("change"); |
872 mashup.trigger("change"); |
875 } |
873 } |
|
874 |
|
875 /* END editor.js */ |