Difference between revisions of "Additional Content on Hover or Focus"

From Level Access Web Labs
Jump to navigation Jump to search
Line 27: Line 27:
 
 
 
  function hide(e) {
 
  function hide(e) {
  if (e.relatedTarget && e.relatedTarget.id != "additional")
+
  if (e.relatedTarget)
 +
                                    if (e.relatedTarget.id != "additional")
 
document.getElementById("additional").setAttribute("hidden","hidden");
 
document.getElementById("additional").setAttribute("hidden","hidden");
if (e.target.id == "additional" && e.relatedTarget && e.relatedTarget.id != "info")
+
if (e.target.id == "additional")
 +
                                          if (e.relatedTarget)
 +
                                            if (e.relatedTarget.id != "info")
 
document.getElementById("additional").setAttribute("hidden","hidden");
 
document.getElementById("additional").setAttribute("hidden","hidden");
 
}
 
}

Revision as of 18:57, 9 November 2018