function attachListeners() {
  var radioEls = document.querySelectorAll('input[type="radio"]');
  for (var i = 0; i < radioEls.length; ++i) {
    radioEls[i].addEventListener('click', onRadioClicked);
  }

  // Wire up the 'click' event for each function's button.
  var functionEls = document.querySelectorAll('.function');
  for (var i = 0; i < functionEls.length; ++i) {
    var functionEl = functionEls[i];
    var id = functionEl.getAttribute('id');
    var buttonEl = functionEl.querySelector('button');

    // The function name matches the element id.
    var func = window[id];
    buttonEl.addEventListener('click', func);
  }

  $('pipe_input_box').addEventListener('keypress', onPipeInput)
  $('pipe_output').disabled = true;

  $('pipe_name').addEventListener('change',
                                  function() { $('pipe_output').value = ''; })
}
// Called by the common.js module.
Called by the common.js module.
Called by the common . js module .
function attachListeners() {
  var radioEls = document.querySelectorAll('input[type="radio"]');
  for (var i = 0; i < radioEls.length; ++i) {
    radioEls[i].addEventListener('click', onRadioClicked);
  }
  var functionEls = document.querySelectorAll('.function');
  for (var i = 0; i < functionEls.length; ++i) {
    var functionEl = functionEls[i];
    var id = functionEl.getAttribute('id');
    var buttonEl = functionEl.querySelector('button');
    var func = window[id];
    buttonEl.addEventListener('click', func);
  }
  $('pipe_input_box').addEventListener('keypress', onPipeInput)
  $('pipe_output').disabled = true;
  $('pipe_name').addEventListener('change',
                                  function() { $('pipe_output').value = ''; })
}
function attachListeners ( ) { var radioEls = document . querySelectorAll ( 'input[type="radio"]' ) ; for ( var i = 0 ; i < radioEls . length ; ++ i ) { radioEls [ i ] . addEventListener ( 'click' , onRadioClicked ) ; } var functionEls = document . querySelectorAll ( '.function' ) ; for ( var i = 0 ; i < functionEls . length ; ++ i ) { var functionEl = functionEls [ i ] ; var id = functionEl . getAttribute ( 'id' ) ; var buttonEl = functionEl . querySelector ( 'button' ) ; var func = window [ id ] ; buttonEl . addEventListener ( 'click' , func ) ; } $ ( 'pipe_input_box' ) . addEventListener ( 'keypress' , onPipeInput ) $ ( 'pipe_output' ) . disabled = true ; $ ( 'pipe_name' ) . addEventListener ( 'change' , function ( ) { $ ( 'pipe_output' ) . value = '' ; } ) }
Called by the common.js module.
Called by the common . js module .
// Wire up the 'click' event for each function's button. // The function name matches the element id.