Add local debugger

This commit is contained in:
2025-02-09 15:46:27 +01:00
parent 502349b4ec
commit 46d5e7521f
4 changed files with 341 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
const cords = document.getElementById("coordinates");
function updateCords(x, y) {
cords.textContent = `(${Math.round(x)}, ${Math.round(y)})`;
}
updateCords(0, 1000);
window.addEventListener("mousemove", event => {
updateCords(event.x, event.y);
});