Simple bookmarklet to display window/viewport size on any website, for examining CSS3 media queries
Switch branches/tags
Nothing to show
Pull request Compare This branch is even with oldprojects:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.markdown
window-size-bookmarklet.0.2.3.js
window-size-bookmarklet.0.2.3.min.js

README.markdown

Window Size Bookmarklet

A handy bookmarklet that displays the dynamic viewport/screen size in pixels on any website - useful for inspecting and debugging CSS3 @media queries and responsive/adaptive layouts.

Check out the blog post at http://www.josscrowcroft.com/2011/code/window-size-bookmarklet/ for details and a demo.

NB: to use this as a bookmarklet, make sure to stick javascript: in front of the minified code, then use that as the href/address of the bookmark.

Changelog:

  • v0.2.3 Fixed for lte IE8... I think.
  • v0.2.2 Rewrote to wrap in anonymous function
  • v0.2.1 Fixed in Firefox
  • v0.2 No longer relies on jQuery