Mercurial > hg > batmud > maputils
changeset 2320:2ec090f3ce17
Adjust two comments.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 18 Feb 2021 11:33:47 +0200 |
parents | bdca83348300 |
children | 4df1ceca93f9 |
files | tooltip.js |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tooltip.js Thu Feb 18 11:30:17 2021 +0200 +++ b/tooltip.js Thu Feb 18 11:33:47 2021 +0200 @@ -9,7 +9,7 @@ var myy = 0; -// Change style of given element +// Add or remove given CSS class to specified element function mapSetStyle(uid, ustyle, uset) { var uelem = document.getElementById(uid); @@ -23,6 +23,7 @@ } +// Set or unset active element style function mapSetActive(uid, uset) { mapSetStyle('maploc'+uid, "locactive", uset);