Skip to content

Instantly share code, notes, and snippets.

@blaurt
Created April 20, 2020 06:55
Show Gist options
  • Save blaurt/7310870a767f992a20067e2bcf1d56af to your computer and use it in GitHub Desktop.
Save blaurt/7310870a767f992a20067e2bcf1d56af to your computer and use it in GitHub Desktop.
renderPointer.js
function renderPointer(x, y) {
const pointer = document.createElement("span");
pointer.classList.add("pointer");
pointer.style.left = `${x}px`;
pointer.style.top = `${y}px`;
pointersContainer.appendChild(pointer);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment