Add local debugger
This commit is contained in:
@@ -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);
|
||||
});
|
||||
Reference in New Issue
Block a user