function(index, state) {
    var self = this;

    // Highlight/un-highlight the row.
    window['station' + index].style.backgroundColor = state ? 'rgba(255, 255, 255, 0.33)' : '';

    // Show/hide the "live" marker.
    window['live' + index].style.opacity = state ? 1 : 0;

    // Show/hide the "playing" animation.
    window['playing' + index].style.display = state ? 'block' : 'none';
  }
function(index, state) {
    var self = this;

    // Highlight/un-highlight the row.
    window['station' + index].style.backgroundColor = state ? 'rgba(255, 255, 255, 0.33)' : '';

    // Show/hide the "live" marker.
    window['live' + index].style.opacity = state ? 1 : 0;

    // Show/hide the "playing" animation.
    window['playing' + index].style.display = state ? 'block' : 'none';
  }
function ( index , state ) { var self = this ; // Highlight/un-highlight the row. window [ 'station' + index ] . style . backgroundColor = state ? 'rgba(255, 255, 255, 0.33)' : '' ; // Show/hide the "live" marker. window [ 'live' + index ] . style . opacity = state ? 1 : 0 ; // Show/hide the "playing" animation. window [ 'playing' + index ] . style . display = state ? 'block' : 'none' ; }
Toggle the display of a station to off/on.
@param  {Number} index Index of the station to toggle.
@param  {Boolean} state true is on and false is off.
Toggle the display of a station to off / on .
Set the state of a row of the cluster