Skip to content

A lightweight visual representation of the Document Object Model to aid in web development, written in vanilla JavaScript and CSS. A "set-it-and-forget-it" solution to element nesting confusion. Google Chrome extension is linked below.

License

Notifications You must be signed in to change notification settings

cmderobertis/VisualDOM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VisualDOM

A visual representation of the Document Object Model to aid in web development.

Features

  • Parses HTML and generates new elements at the end of your <body>, visualizing nested children in your markup.
  • Each node provides the element's tag name, classes, and ID, color-coded for easy identification.
  • Managing 100+ <div>s has never been this easy!

How to use this in your project

  1. Download and extract .zip
  2. Place 'package' directory in the root of your project. (Feel free to store 'package' elsewhere, as long as your import tags point to that location.)
  3. Add this <script> tag to the end of <body> (immediately before closing tag) 👇
    <script src="./package/vdom.js"></script> VisualDOM will automatically link up its CSS just before </head> end tag.
  4. Build out your project, and VisualDOM will render additional elements in the <body> below your markup!
  5. Done with VisualDOM? Remove the <link> and <script> tags associated with VisualDOM, and remove 'package' directory from your project.

Want to contribute?

This project is licenced under The MIT Open Source Licence. Feel free to fork this project or shoot me an email.

About

A lightweight visual representation of the Document Object Model to aid in web development, written in vanilla JavaScript and CSS. A "set-it-and-forget-it" solution to element nesting confusion. Google Chrome extension is linked below.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published