Created
December 3, 2014 23:12
-
-
Save charandas/1ee7d0d812e37bbe80b1 to your computer and use it in GitHub Desktop.
click-copy.js
This file contains hidden or 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
| // Given element is an array of jquery elements | |
| var rect = element[0].getBoundingClientRect(); | |
| console.dir(rect); | |
| // NOTE: this is how a click can be copy-played again | |
| $(document.elementFromPoint(rect.left, rect.top)).click(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment