js/main.js
// updates background colors based on the current state
updates background colors based on the current state
updates background colors based on the current state
function updateBackgroundGradient() {
  let curr_state = store.getState();
  let curr_culture = curr_state.culture;
  let first_value = curr_state.first_value;
  let second_value = curr_state.second_value;
  let left_color = cultures[curr_culture][first_value];
  let right_color = cultures[curr_culture][second_value];
  let linear_gradient = 'linear-gradient(to right,'+left_color+','+right_color+')';
  document.body.style.background = linear_gradient;
}
function updateBackgroundGradient ( ) { let curr_state = store . getState ( ) ; let curr_culture = curr_state . culture ; let first_value = curr_state . first_value ; let second_value = curr_state . second_value ; let left_color = cultures [ curr_culture ] [ first_value ] ; let right_color = cultures [ curr_culture ] [ second_value ] ; let linear_gradient = 'linear-gradient(to right,' + left_color + ',' + right_color + ')' ; document . body . style . background = linear_gradient ; }
updates background colors based on the current state
updates background colors based on the current state