Giter VIP home page Giter VIP logo

boxvis's Introduction

HTML Box Visualizer

A pure JavaScript based CSS / HTML element visualizer / debugger. Similar to Chrome's developer tools, this allows you to visualize an element and all of its layout properties in one place. Add it to any page and move the mouse around the screen. This tool has no effect on the functionality of your application, but still displays information on any element you mouse over.

Features

  • Display a box around any element you hover over without effecting the functionality of the page
  • Display lines showing the margins, borders, and padding of an element
  • Display a popover containing information about the element (tagName, id, classes, and dimensions)
  • Options (by src attribute querystring) to turn off lines or boxes

Usage

Add the script to the page using a simple javascript element. It will be automatically added to the page and start working. In order for the options to work, add one of the following to the querystring of the src attribute of your script element.

  • noln (EX: <script src="....../debugcss.js?noln"></script>): this will turn off lines
  • nobg (EX: <script src="....../debugcss.js?nobg"></script>): this will turn off boxes

Known limitations

  • Does not support psuedo elements (no mouseover events)

Unknown limitations

I have manually tested this on the following platforms / browsers:

  • Mac OS: Chrome Version 53.0.2785.143
  • Mac OS: Firefox Version 49.0.1
  • Windows 10: Edge 38.14393.0.0
  • Windows 10: Chrome
  • Windows 10: IE 11
  • Windows 10: Firefox 37.01 & 40.03

Bookmarklet

Include this link in your toolbar to include boxvis into any page (content security permitting):

javascript:(function(){document.body.appendChild(document.createElement('script')).src='//cdn.rawgit.com/ghmcadams/boxvis/master/debugcss.js';})();

Screenshots

Usage on Nodejs.org

Usage on GitHub

boxvis's People

Contributors

ghmcadams avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.