docs: function getPosition(el) {
        var xPos = 0;
        var yPos = 0;
  
        while (el) {
          xPos += el.offsetLeft + el.clientLeft;
          yPos += el.offsetTop + el.clientTop;
  
          el = el.offsetParent;
        }
        return {
          x: xPos,
          y: yPos
        };
      }