Former-commit-id: 75781892f4d3618a6beb16c5feb1febf0ae70070
@ -33,5 +33,6 @@ elixir(function (mix) {
'js-src/page_waveform.js',
'js-src/page_spectrogram.js',
'js-src/page_status.js',
'js-src/page_mon.js',
], 'js/all.js');
});
@ -1,6 +1,14 @@
var page_mon = (function() {
var mon = {};
mon.captureRef = function() {
// TODO ajax & update the field
};
mon.compareNow = function() {
// TODO ajax & show result
mon.init = function() {
//
@ -16,7 +16,7 @@
<th>Actual distance:</th>
<td>
<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>
</tr>
</table>