aigdonia / simple-js-dom-inspector

A simple JavaScript DOM inspector that styles hovered elements and can perform actions on click.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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);

About

A simple JavaScript DOM inspector that styles hovered elements and can perform actions on click.


Languages

Language:JavaScript 100.0%