function loadEventListeners(){
  // first, find all hotspot elements in the document
  var hotspots = document.getElementsByClassName('hotspot');

  // attatch a click event listener to each one
  for (var i = 0; i < hotspots.length; i++) {
    hotspots[i].addEventListener('click', getToDest, false);
  }
}
/** DO NOT NEED TO EDIT SCRIPT **/
DO NOT NEED TO EDIT SCRIPT
DO NOT NEED TO EDIT SCRIPT
function loadEventListeners(){
  var hotspots = document.getElementsByClassName('hotspot');
  for (var i = 0; i < hotspots.length; i++) {
    hotspots[i].addEventListener('click', getToDest, false);
  }
}
function loadEventListeners ( ) { var hotspots = document . getElementsByClassName ( 'hotspot' ) ; for ( var i = 0 ; i < hotspots . length ; i ++ ) { hotspots [ i ] . addEventListener ( 'click' , getToDest , false ) ; } }
DO NOT NEED TO EDIT SCRIPT
DO NOT NEED TO EDIT SCRIPT
// first, find all hotspot elements in the document // attatch a click event listener to each one