Skip to content

hashmal/lineheightjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LineheightJS

Creating web-page layouts with a constant line-height is difficult. LineheightJS adds horizontal stripes on any HTML document, enabling you to visualize where your elements get misaligned.

Usage

Create a bookmark pointing to the following address:

javascript:!document.lineheightjs?document.body.appendChild(document.createElement("script")).src="http://www.bravebolt.com/lineheightjs/lineheight.js":document.lineheightjs.toggle();void(0)

Clicking on it toggles the display of LineheightJS on (almost) any page.

Dependencies

LineheightJS uses PNGlib to generate the overlay image.

License

Copyright (c) 2013, Jeremy Pinat.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Visualize line-height alignment with a bookmarklet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published