web/apps/hello-tracking/js/hello-tracking.js
function prepareEvents(raddec) {
  let elements = [];

  raddec.events.forEach(function(event) {
    let i = document.createElement('i');
    let space = document.createTextNode(' ');
    i.setAttribute('class', EVENT_ICONS[event]);
    elements.push(i);
    elements.push(space);
  });

  return elements;
}
function prepareEvents(raddec) {
  let elements = [];

  raddec.events.forEach(function(event) {
    let i = document.createElement('i');
    let space = document.createTextNode(' ');
    i.setAttribute('class', EVENT_ICONS[event]);
    elements.push(i);
    elements.push(space);
  });

  return elements;
}
function prepareEvents ( raddec ) { let elements = [ ] ; raddec . events . forEach ( function ( event ) { let i = document . createElement ( 'i' ) ; let space = document . createTextNode ( ' ' ) ; i . setAttribute ( 'class' , EVENT_ICONS [ event ] ) ; elements . push ( i ) ; elements . push ( space ) ; } ) ; return elements ; }
Prepare the event icons
Prepare the event icons