Created
April 20, 2020 06:55
-
-
Save blaurt/7310870a767f992a20067e2bcf1d56af to your computer and use it in GitHub Desktop.
renderPointer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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