function experimentChangesUiUpdates(node, index) {
  var selected = node.options[index];
  var experimentContainerEl = $(node.internal_name).firstElementChild;
  var isDefault =
      ("default" in selected.dataset && selected.dataset.default == "1") ||
      (!("default" in selected.dataset) && index === 0);
  experimentContainerEl.classList.toggle('experiment-default', isDefault);
  experimentContainerEl.classList.toggle('experiment-switched', !isDefault);

  $('needs-restart').classList.add('show');
}
/**
 * Handles updating the UI after experiment selections have been made.
 * Adds or removes experiment highlighting depending on whether the experiment
 * is set to the default option then shows the restart button.
 * @param {HTMLElement} node The select node for the experiment being changed.
 * @param {number} index The selected option index.
 */
Handles updating the UI after experiment selections have been made.
Adds or removes experiment highlighting depending on whether the experiment
is set to the default option then shows the restart button.
@param {HTMLElement} node The select node for the experiment being changed.
@param {number} index The selected option index.
Handles updating the UI after experiment selections have been made . Adds or removes experiment highlighting depending on whether the experiment is set to the default option then shows the restart button . @param { HTMLElement } node The select node for the experiment being changed . @param { number } index The selected option index .
function experimentChangesUiUpdates(node, index) {
  var selected = node.options[index];
  var experimentContainerEl = $(node.internal_name).firstElementChild;
  var isDefault =
      ("default" in selected.dataset && selected.dataset.default == "1") ||
      (!("default" in selected.dataset) && index === 0);
  experimentContainerEl.classList.toggle('experiment-default', isDefault);
  experimentContainerEl.classList.toggle('experiment-switched', !isDefault);
  $('needs-restart').classList.add('show');
}
function experimentChangesUiUpdates ( node , index ) { var selected = node . options [ index ] ; var experimentContainerEl = $ ( node . internal_name ) . firstElementChild ; var isDefault = ( "default" in selected . dataset && selected . dataset . default == "1" ) || ( ! ( "default" in selected . dataset ) && index === 0 ) ; experimentContainerEl . classList . toggle ( 'experiment-default' , isDefault ) ; experimentContainerEl . classList . toggle ( 'experiment-switched' , ! isDefault ) ; $ ( 'needs-restart' ) . classList . add ( 'show' ) ; }
Handles updating the UI after experiment selections have been made.
Handles updating the UI after experiment selections have been made .