Skip to content

stowball/Viewport-Genie

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Viewport Genie

Adds the "real" viewport width and height (in px and em) as an element on the body to help with obtaining values for responsive breakpoints

Use it in conjunction with mqGenie (https://github.com/stowball/mqGenie) to trigger the correct breakpoints in non-WebKit browsers and Chrome/Blink since 29.0.1547.57.


Usage:

Use the bookmarklet to quickly get the viewport size on any page: http://stowball.github.io/Viewport-Genie

Or include viewport.genie.min.js in your page somewhere after the opening <body> tag, and trigger it with a querystring parameter of genie=true

About

Adds the real viewport width and height (in px and em) as an element on the body to help with obtaining values for responsive breakpoints

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published