Docs: Difference between revisions
Appearance
No edit summary |
|||
Line 333: | Line 333: | ||
| | | | ||
| | | | ||
| | |<syntaxhighlight lang="javascript" line="1" start="283"> | ||
elm.coords.onclick = function() { | |||
showCursorCoordinates = !showCursorCoordinates; | |||
if(showCursorCoordinates) { | |||
elm.cursor_coords.style.display = ""; | |||
updateCoordDisplay(); | |||
} else { | |||
elm.cursor_coords.style.display = "none"; | |||
updateCoordDisplay(); | |||
} | |||
} | |||
</syntaxhighlight> | |||
|} | |} | ||