mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-17 19:43:57 +00:00
add color gradient to meters
This commit is contained in:
@@ -36,8 +36,10 @@
|
||||
<td><div class="fader-mute mute-<%=data.channelMutes[i]%>">M</div></td>
|
||||
<td><%= formatAsDB(data.channelFadersDB[i]) %></td>
|
||||
<td>
|
||||
<% let style = `style=height:3px;background-color:green;width:${data.meters[i] + 90}%`; %>
|
||||
<div <%= style %>></div>
|
||||
<% let style = `style=width:${Math.abs(data.meters[i] - 10)}%`; %>
|
||||
<div class="meter">
|
||||
<div class="meter-cover" <%= style %>></div>
|
||||
</div>
|
||||
<input
|
||||
type="range"
|
||||
min="0"
|
||||
|
||||
Reference in New Issue
Block a user