coder
coder copied to clipboard
Blinky Lights coder project bug
(note: Can't find a repo for the projects from the projects page. I see the blank template for a project... but can't find blinky lights anywhere but distribution.
In the JS buttonupdate code, the returned value is parsed as an integer, but then the non-parsed value is tested.
var val = parseInt( d );
if ( d === 1 ) {
$("#buttonval").addClass('on');
} else {
$("#buttonval").removeClass('on');
}
seems like that should be
var val = parseInt( d );
if ( val === 1 ) {
$("#buttonval").addClass('on');
} else {
$("#buttonval").removeClass('on');
}