Update index_m.html

This commit is contained in:
钟进 2018-09-26 12:00:06 +08:00
parent 5e3c21f579
commit 9efe4940f4

View File

@ -30,41 +30,9 @@
var typeItemsLen = {
'uint8be': 1,
'uint8le': 1,
'int8be': 1,
'int8le': 1,
'uint16be': 1,
'uint16le': 1,
'int16be': 1,
'int16le': 1,
'int16be1': 1,
'int16le1': 1,
'uint32be': 2,
'uint32le': 2,
'uint32sw': 2,
'uint32sb': 2,
'int32be': 2,
'int32le': 2,
'int32sw': 2,
'int32sb': 2,
'uint64be': 4,
'uint64le': 4,
'int64be': 4,
'int64le': 4,
'floatbe': 2,
'floatle': 2,
'floatsw': 2,
'floatsb': 2,
'doublebe': 4,
'doublele': 4,
'string': 0,
'stringle': 0,
'ieee754': 2
'uint8le': 1
};
function switchOneType(data, id) {
/*
var isDirect = $('#modbus_directAddresses').prop('checked');
@ -113,33 +81,12 @@
{value: 'value', text: 'value'},
{value: 'level', text: 'level'},
{value: 'state', text: 'state'},
{value: 'switch', text: 'switch'},
{value: 'value.temperature', text: 'value.temperature'},
{value: 'value.humidity', text: 'value.humidity'},
{value: 'value.brightness', text: 'value.brightness'},
{value: 'value.uv', text: 'value.uv'},
{value: 'value.pressure', text: 'value.pressure'},
{value: 'value.battery', text: 'value.battery'},
{value: 'value.valve', text: 'value.valve'},
{value: 'value.time', text: 'value.time'},
{value: 'value.interval', text: 'value.interval'},
{value: 'value.window', text: 'value.window'},
{value: 'button', text: 'button'},
{value: 'indicator', text: 'indicator'},
{value: 'level.dimmer', text: 'level.dimmer'},
{value: 'level.valve', text: 'level.valve'},
{value: 'level.blind', text: 'level.blind'},
{value: 'level.temperature', text: 'level.temperature'},
{value: 'level.interval', text: 'level.interval'}
{value: 'switch', text: 'switch'}
];
var typeItems = [
{value: '', text: ''},
{value: 'uint16be', text: 'Unsigned 16 bit (Big Endian)'},
{value: 'uint16le', text: 'Unsigned 16 bit (Little Endian)'},
{value: 'doublele', text: 'Double (Little Endian)'},
{value: 'string', text: 'String (Zero-end)'},
{value: 'stringle', text: 'String (Little Endian, Zero-end)'},
{value: 'uint16be', text: 'Unsigned 16 bit (Big Endian)'}
{value: 'ieee754', text: 'IEEE-754'}
];
@ -147,8 +94,9 @@
var fields = [
{name: '_address' , title: _('Address'), type: 'text', width: '110px', sorter: 'number'},
{name: 'deviceId' , title: _('deviceId'), type: 'text', width: '60px', sorter: 'number'},
{name: 'ip' , title: _('ip'), type: 'text', width: '110px', sorter: 'number'},
{name: 'port' , title: _('port'), type: 'text', width: '30px', sorter: 'number'},
{name: 'name' , title: _('Name'), type: 'text', width: '*'},
{name: 'description', title: _('Description'), type: 'text', width: '*'},
{ type: 'control', width: '80px'}
@ -479,8 +427,8 @@
<div class="row">
<div class="col s12">
<ul class="tabs">
<li class="tab col s4"><a href="#tab-main" class="translate active">Pushover settings</a></li>
<li class="tab col s4"><a href="#tab-notification" class="translate">Notification settings</a></li>
<li class="tab col s4"><a href="#tab-main" class="translate active">Base settings</a></li>
<li class="tab col s4"><a href="#tab-notification" class="translate">Door device settings</a></li>
</ul>
</div>
<div id="tab-main" class="col s12 page">