Update main.js
This commit is contained in:
parent
fea75022d8
commit
36463a6c1a
|
@ -2,7 +2,7 @@
|
||||||
//
|
//
|
||||||
//This particular file may be licensed under the MIT/x11, New BSD or ColorChord Licenses.
|
//This particular file may be licensed under the MIT/x11, New BSD or ColorChord Licenses.
|
||||||
|
|
||||||
globalParams = {};
|
var globalParams = {};
|
||||||
|
|
||||||
|
|
||||||
function mainticker()
|
function mainticker()
|
||||||
|
@ -84,12 +84,12 @@ function ReceiveParameters(req,data) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
is_oscilloscope_running = false;
|
var is_oscilloscope_running = false;
|
||||||
pause_oscilloscope = false;
|
var pause_oscilloscope = false;
|
||||||
|
|
||||||
function KickOscilloscope()
|
function KickOscilloscope()
|
||||||
{
|
{
|
||||||
$( "#OScopePauseButton" ).css( "background-color", (is_oscilloscope_running&&pause_oscilloscope)?"green":"red" );
|
$( "#OScopePauseButton" ).css( "background-color", (is_oscilloscope_running&&!pause_oscilloscope)?"green":"red" );
|
||||||
if( !pause_oscilloscope)
|
if( !pause_oscilloscope)
|
||||||
OScopeDataTicker();
|
OScopeDataTicker();
|
||||||
}
|
}
|
||||||
|
@ -153,7 +153,7 @@ function OScopeDataTicker()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
is_oscilloscope_running = 0;
|
is_oscilloscope_running = false;
|
||||||
}
|
}
|
||||||
$( "#OScopePauseButton" ).css( "background-color", (is_oscilloscope_running&&!pause_oscilloscope)?"green":"red" );
|
$( "#OScopePauseButton" ).css( "background-color", (is_oscilloscope_running&&!pause_oscilloscope)?"green":"red" );
|
||||||
}
|
}
|
||||||
|
@ -166,8 +166,8 @@ function OScopeDataTicker()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
is_dft_running = false;
|
var is_dft_running = false;
|
||||||
pause_dft = false;
|
var pause_dft = false;
|
||||||
|
|
||||||
function KickDFT()
|
function KickDFT()
|
||||||
{
|
{
|
||||||
|
@ -244,8 +244,8 @@ function DFTDataTicker()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
is_leds_running = false;
|
var is_leds_running = false;
|
||||||
pause_led = false;
|
var pause_led = false;
|
||||||
|
|
||||||
function KickLEDs()
|
function KickLEDs()
|
||||||
{
|
{
|
||||||
|
@ -321,14 +321,14 @@ function LEDDataTicker()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
is_notes_running = false;
|
var is_notes_running = false;
|
||||||
pause_notes = false;
|
var pause_notes = false;
|
||||||
|
|
||||||
function KickNotes()
|
function KickNotes()
|
||||||
{
|
{
|
||||||
$( "#NotesPauseButton" ).css( "background-color", (is_notes_running&&!pause_notes)?"green":"red" );
|
$( "#NotesPauseButton" ).css( "background-color", (is_notes_running&&!pause_notes)?"green":"red" );
|
||||||
|
|
||||||
if( !is_notes_running && !pause_notes )
|
if(!pause_notes )
|
||||||
NotesTicker();
|
NotesTicker();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue