Draw translation text above map, so that it isn't obscured

This commit is contained in:
2025-04-12 12:37:12 -04:00
parent 364a64f320
commit 4658ec5a9d
3 changed files with 24 additions and 6 deletions

8
svgHoverListener.js Normal file
View File

@@ -0,0 +1,8 @@
function toggleLanguageDisplay(event) {
if (event.type == "mouseover") {
document.getElementById(this.id.replace(/langMap$/, '') + "Language").style.visibility = "visible";
}
if (event.type == "mouseout") {
document.getElementById(this.id.replace(/langMap$/, '') + "Language").style.visibility = "hidden";
}
}