Sha256: dcdeb3abe028a6030ab6542c5a0b0c70ae6c654220a5b08eee1f7971166947d9

Contents?: true

Size: 275 Bytes

Versions: 94

Compression:

Stored size: 275 Bytes

Contents

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}`;  
});

Version data entries

94 entries across 94 versions & 6 rubygems

Version Path
jekyll-zeta-0.3.0 assets/js/mouse_coords.js
jekyll-zeta-0.2.3 assets/js/mouse_coords.js
jekyll-zeta-0.2.2 assets/js/mouse_coords.js
jekyll-zeta-0.2.1 assets/js/mouse_coords.js
no-style-please2-0.8.0 assets/js/mouse_coords.js
sim-css-0.1.0 assets/js/mouse_coords.js
no-style-please2-0.7.5.1 assets/js/mouse_coords.js
no-style-please2-0.7.5 assets/js/mouse_coords.js
no-style-please2-0.7.4.5 assets/js/mouse_coords.js
no-style-please2-0.7.4.4 assets/js/mouse_coords.js
no-style-please2-0.7.4.3 assets/js/mouse_coords.js
no-style-please2-0.7.4.2 assets/js/mouse_coords.js
no-style-please2-0.7.4.1 assets/js/mouse_coords.js
no-style-please2-0.7.4 assets/js/mouse_coords.js
no-style-please2-0.7.3 assets/js/mouse_coords.js
no-style-please2-0.7.2 assets/js/mouse_coords.js
no-style-please2-0.7.1 assets/js/mouse_coords.js
no-style-please2-0.7.0 assets/js/mouse_coords.js
no-style-please2-0.6.4 assets/js/mouse_coords.js
no-style-please2-0.6.3.2 assets/js/mouse_coords.js