mirror of
https://github.com/JimenezJC/mshj_blog.git
synced 2025-12-06 09:19:55 -05:00
Initial Blog Commit
This commit is contained in:
commit
07775036ce
92 changed files with 4980 additions and 0 deletions
9
public/js/mouse_coords.js
Normal file
9
public/js/mouse_coords.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
const p = document.createElement("p");
|
||||
p.style.textAlign = "center";
|
||||
p.style.fontSize = "18pt";
|
||||
p.innerHTML = "C'mon, move your mouse!"
|
||||
document.body.append(p);
|
||||
|
||||
document.addEventListener("mousemove", e => {
|
||||
p.innerHTML = `mouseX: ${e.clientX}, mouseY: ${e.clientY}`;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue