stubs for the mon js

Former-commit-id: 75781892f4d3618a6beb16c5feb1febf0ae70070
master
Ondřej Hruška 9 years ago
parent a9fca71169
commit 244fa6aa11
  1. 1
      html_src/gulpfile.js
  2. 8
      html_src/js-src/page_mon.js
  3. 2
      html_src/page_monitoring.php

@ -33,5 +33,6 @@ elixir(function (mix) {
'js-src/page_waveform.js', 'js-src/page_waveform.js',
'js-src/page_spectrogram.js', 'js-src/page_spectrogram.js',
'js-src/page_status.js', 'js-src/page_status.js',
'js-src/page_mon.js',
], 'js/all.js'); ], 'js/all.js');
}); });

@ -1,6 +1,14 @@
var page_mon = (function() { var page_mon = (function() {
var mon = {}; var mon = {};
mon.captureRef = function() {
// TODO ajax & update the field
};
mon.compareNow = function() {
// TODO ajax & show result
};
mon.init = function() { mon.init = function() {
// //
}; };

@ -16,7 +16,7 @@
<th>Actual&nbsp;distance:</th> <th>Actual&nbsp;distance:</th>
<td> <td>
<span id="reporting" class="Valfield">N/A</span> <span id="reporting" class="Valfield">N/A</span>
<a onclick="page_mon.toggleReporting()" class="button btn-blue">Measure</a> <a onclick="page_mon.compareNow()" class="button btn-blue">Measure</a>
</td> </td>
</tr> </tr>
</table> </table>

Loading…
Cancel
Save