js/main.js
// handler for left/right Values, dispatches action for value change
handler for left/right Values, dispatches action for value change
handler for left / right Values dispatches action for value change
function valueSelectHandler(event) {
  let SIDE = (event.target.id === 'first_value') ? 'LEFT' : 'RIGHT';
  store.dispatch({
    type: 'VALUE_CHANGE',
    side: SIDE,
    value: event.target.value
  });
}
function valueSelectHandler ( event ) { let SIDE = ( event . target . id === 'first_value' ) ? 'LEFT' : 'RIGHT' ; store . dispatch ( { type : 'VALUE_CHANGE' , side : SIDE , value : event . target . value } ) ; }
handler for left/right Values, dispatches action for value change
handler for left / right Values dispatches action for value change