Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

Latest commit

 

History

History
16 lines (10 loc) · 465 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 465 Bytes

DomInspector

Based on oldprojects/Simple-JavaScript-DOM-Inspector (see inspector.source.js).

By default, it…

  • styles hovered elements
  • logs the clicked element to the console
  • cancels on Escape key

…though it's fully configurable via its options parameter.

Usage

var options = {}; // See 'initialise' method for attributes.
var inspector = new DomInspector(options);