browser doesn't seem to like step=0.01

add analyze_frames button handling and update to jquery instead of mootools styles
This commit is contained in:
Isaac Connor 2020-09-09 15:06:49 -04:00
parent 6f5eee6c0f
commit c914f00126
1 changed files with 17 additions and 0 deletions

View File

@ -5,6 +5,7 @@ var cancelBtn = $j('#cancelBtn');
var backBtn = $j('#backBtn'); var backBtn = $j('#backBtn');
var refreshBtn = $j('#refreshBtn'); var refreshBtn = $j('#refreshBtn');
var monitors = []; var monitors = [];
var analyze_frames = true;
function validateForm( form ) { function validateForm( form ) {
var errors = []; var errors = [];
@ -566,6 +567,7 @@ function watchdogCheck(type) {
function watchdogOk(type) { function watchdogOk(type) {
watchdogInactive[type] = false; watchdogInactive[type] = false;
} }
function presetSelectorBlur() { function presetSelectorBlur() {
this.selectedIndex = 0; this.selectedIndex = 0;
} }
@ -656,6 +658,21 @@ function initPage() {
}; };
} }
if ( el = $('analyzeBtn') ) {
$('analyzeBtn').onclick = function() {
console.log(analyze_frames);
analyze_frames = !analyze_frames;
if ( analyze_frames ) {
$('analyzeBtn').classList.add('disabled');
} else {
$('analyzeBtn').classList.remove('disabled');
}
for ( var i = 0, length = monitors.length; i < length; i++ ) {
monitors[i].show_analyze_frames(analyze_frames);
}
}
}
for ( var i = 0, length = monitorData.length; i < length; i++ ) { for ( var i = 0, length = monitorData.length; i < length; i++ ) {
monitors[i] = new MonitorStream(monitorData[i]); monitors[i] = new MonitorStream(monitorData[i]);