coder icon indicating copy to clipboard operation
coder copied to clipboard

Blinky Lights coder project bug

Open JamesNewton opened this issue 9 years ago • 0 comments

(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');
        }

JamesNewton avatar Mar 08 '16 01:03 JamesNewton