Completes FLOWMON-1. Increments to V6
This commit is contained in:
152
HTML/Scaling.html
Normal file
152
HTML/Scaling.html
Normal file
@@ -0,0 +1,152 @@
|
||||
<div class="row row-flex">
|
||||
<div class="col-md-6 box-me entry-top-level" id="setrawmin">
|
||||
<div style="margin-left:15px;">
|
||||
<h2>Raw Min</h2>
|
||||
<form class="form-inline">
|
||||
<div class="form-group" style="margin-bottom:15px;">
|
||||
<label
|
||||
class="sr-only"
|
||||
for="<%= channels["flowmonitor.setrawmin"].channelId %>">Raw Min Value</label>
|
||||
<div class="input-group">
|
||||
<input
|
||||
class="form-control channel_value"
|
||||
type="number"
|
||||
step="any"
|
||||
value="<%=channels['flowmonitor.setrawmin'].value %>">
|
||||
<div class="input-group-addon">mA</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
<a
|
||||
href="#"
|
||||
data-confirm-message="Are you sure you want to do this?"
|
||||
data-refreshpause="1"
|
||||
data-command=""
|
||||
data-staticsend=1.0
|
||||
data-channelId="<%= channels["flowmonitor.setrawmin"].channelId %>"
|
||||
data-techname="<%=channels["flowmonitor.setrawmin"].techName %>"
|
||||
data-name="<%= channels["flowmonitor.setrawmin"].name%>"
|
||||
data-nodechannelcurrentId="<%= channels["flowmonitor.setrawmin"].nodechannelcurrentId %>"
|
||||
id="<%= channels["flowmonitor.setrawmin"].channelId %>"
|
||||
class="btn btn-large btn-theme animated setstatic material-icons">send</a>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 box-me entry-top-level" id="setrawmax">
|
||||
<div style="margin-left:15px;">
|
||||
<h2>Raw Max</h2>
|
||||
<form class="form-inline">
|
||||
<div class="form-group" style="margin-bottom:15px;">
|
||||
<label
|
||||
class="sr-only"
|
||||
for="<%= channels["flowmonitor.setrawmax"].channelId %>">Raw Max Value</label>
|
||||
<div class="input-group">
|
||||
<input
|
||||
class="form-control channel_value"
|
||||
type="number"
|
||||
step="any"
|
||||
value="<%=channels['flowmonitor.setrawmax'].value %>">
|
||||
<div class="input-group-addon">mA</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
<a
|
||||
href="#"
|
||||
data-confirm-message="Are you sure you want to do this?"
|
||||
data-refreshpause="1"
|
||||
data-command=""
|
||||
data-staticsend=1.0
|
||||
data-channelId="<%= channels["flowmonitor.setrawmax"].channelId %>"
|
||||
data-techname="<%=channels["flowmonitor.setrawmax"].techName %>"
|
||||
data-name="<%= channels["flowmonitor.setrawmax"].name%>"
|
||||
data-nodechannelcurrentId="<%= channels["flowmonitor.setrawmax"].nodechannelcurrentId %>"
|
||||
id="<%= channels["flowmonitor.setrawmax"].channelId %>"
|
||||
class="btn btn-large btn-theme animated setstatic material-icons">send</a>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 box-me entry-top-level" id="setgpmmin">
|
||||
<div style="margin-left:15px;">
|
||||
<h2>GPM Min</h2>
|
||||
<form class="form-inline">
|
||||
<div class="form-group" style="margin-bottom:15px;">
|
||||
<label
|
||||
class="sr-only"
|
||||
for="<%= channels["flowmonitor.setgpmmin"].channelId %>">GPM Min Value</label>
|
||||
<div class="input-group">
|
||||
<input
|
||||
class="form-control channel_value"
|
||||
type="number"
|
||||
step="any"
|
||||
value="<%=channels['flowmonitor.setgpmmin'].value %>">
|
||||
<div class="input-group-addon">GPM</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
<a
|
||||
href="#"
|
||||
data-confirm-message="Are you sure you want to do this?"
|
||||
data-refreshpause="1"
|
||||
data-command=""
|
||||
data-staticsend=1.0
|
||||
data-channelId="<%= channels["flowmonitor.setgpmmin"].channelId %>"
|
||||
data-techname="<%=channels["flowmonitor.setgpmmin"].techName %>"
|
||||
data-name="<%= channels["flowmonitor.setgpmmin"].name%>"
|
||||
data-nodechannelcurrentId="<%= channels["flowmonitor.setgpmmin"].nodechannelcurrentId %>"
|
||||
id="<%= channels["flowmonitor.setgpmmin"].channelId %>"
|
||||
class="btn btn-large btn-theme animated setstatic material-icons">send</a>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 box-me entry-top-level" id="setgpmmax">
|
||||
<div style="margin-left:15px;">
|
||||
<h2>GPM Max</h2>
|
||||
<form class="form-inline">
|
||||
<div class="form-group" style="margin-bottom:15px;">
|
||||
<label
|
||||
class="sr-only"
|
||||
for="<%= channels["flowmonitor.setgpmmax"].channelId %>">GPM Max Value</label>
|
||||
<div class="input-group">
|
||||
<input
|
||||
class="form-control channel_value"
|
||||
type="number"
|
||||
step="any"
|
||||
value="<%=channels['flowmonitor.setgpmmax'].value %>">
|
||||
<div class="input-group-addon">GPM</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
<a
|
||||
href="#"
|
||||
data-confirm-message="Are you sure you want to do this?"
|
||||
data-refreshpause="1"
|
||||
data-command=""
|
||||
data-staticsend=1.0
|
||||
data-channelId="<%= channels["flowmonitor.setgpmmax"].channelId %>"
|
||||
data-techname="<%=channels["flowmonitor.setgpmmax"].techName %>"
|
||||
data-name="<%= channels["flowmonitor.setgpmmax"].name%>"
|
||||
data-nodechannelcurrentId="<%= channels["flowmonitor.setgpmmax"].nodechannelcurrentId %>"
|
||||
id="<%= channels["flowmonitor.setgpmmax"].channelId %>"
|
||||
class="btn btn-large btn-theme animated setstatic material-icons">send</a>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
$('.channel_value').each(function(topLevel){
|
||||
$(this).change(function(){
|
||||
var id = "#" + $(this).closest(".entry-top-level").attr('id');
|
||||
if (id !== "#undefined"){
|
||||
var val = $(id).find('.channel_value').val();
|
||||
var tag = $(id).find('.setstatic').attr('data-staticsend', val);
|
||||
console.log($(id).find('.setstatic').attr('data-staticsend'));
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user