modules/ui/general.js
// show note box on hover (if any)
show note box on hover (if any)
show note box on hover ( if any )
function showNotes(e, i) {
  let id = e.target.id || e.target.parentNode.id || e.target.parentNode.parentNode.id;
  if (e.target.parentNode.parentNode.id === "burgLabels") id = "burg" + e.target.dataset.id; else
  if (e.target.parentNode.parentNode.id === "burgIcons") id = "burg" + e.target.dataset.id;
  const note = notes.find(note => note.id === id);
  if (note !== undefined && note.legend !== "") {
    document.getElementById("notes").style.display = "block";
    document.getElementById("notesHeader").innerHTML = note.name;
    document.getElementById("notesBody").innerHTML = note.legend;
  } else {
    document.getElementById("notes").style.display = "none";
    document.getElementById("notesHeader").innerHTML = "";
    document.getElementById("notesBody").innerHTML = "";
  }
}
function showNotes ( e , i ) { let id = e . target . id || e . target . parentNode . id || e . target . parentNode . parentNode . id ; if ( e . target . parentNode . parentNode . id === "burgLabels" ) id = "burg" + e . target . dataset . id ; else if ( e . target . parentNode . parentNode . id === "burgIcons" ) id = "burg" + e . target . dataset . id ; const note = notes . find ( note => note . id === id ) ; if ( note !== undefined && note . legend !== "" ) { document . getElementById ( "notes" ) . style . display = "block" ; document . getElementById ( "notesHeader" ) . innerHTML = note . name ; document . getElementById ( "notesBody" ) . innerHTML = note . legend ; } else { document . getElementById ( "notes" ) . style . display = "none" ; document . getElementById ( "notesHeader" ) . innerHTML = "" ; document . getElementById ( "notesBody" ) . innerHTML = "" ; } }
show note box on hover (if any)
show note box on hover ( if any )