Skip to content

Instantly share code, notes, and snippets.

@xto3na
Created August 24, 2015 13:44
Show Gist options
  • Save xto3na/a16d674fd9a1d83259d4 to your computer and use it in GitHub Desktop.
Save xto3na/a16d674fd9a1d83259d4 to your computer and use it in GitHub Desktop.
Показывает координаты и размеры элемента DOM.
var elem = document.getElementById("coords-show-mark");
var coordinatesOfElem = elem.getBoundingClientRect();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment