daily pastebin goal
81%
SHARE
TWEET

Untitled

a guest May 16th, 2018 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function getOffset( element ){
  2.     var rect = element.getBoundingClientRect();
  3.  
  4.     return {
  5.         top: rect.top + window.pageYOffset,
  6.         left: rect.left + window.pageXOffset,
  7.     };
  8. }
RAW Paste Data
Top