Skip to content

Instantly share code, notes, and snippets.

@JetFault
Created May 12, 2015 18:02
Show Gist options
  • Save JetFault/64c3aeba884be0172aad to your computer and use it in GitHub Desktop.
Save JetFault/64c3aeba884be0172aad to your computer and use it in GitHub Desktop.
Bookmarklet to show Twitter Bootstrap Breakpoints
javascript:(function()%7Bvar%20div%20%3D%20document.createElement('div')%3Bdiv.style.position%20%3D%20'fixed'%3Bdiv.style%5B'z-index'%5D%20%3D%209999999%3Bdiv.style%5B'background-color'%5D%20%3D%20'%23fff'%3Bdiv.style.padding%20%3D%20'5px'%3Bdiv.innerHTML%20%3D%20'%3Cdiv%20class%3D%22visible-xs-inline%22%3EXS%20tablet%20mobile%3C%2Fdiv%3E'%20%2B%20'%3Cdiv%20class%3D%22visible-sm-inline%22%3ESM%20tablet%3C%2Fdiv%3E'%20%2B%20'%3Cdiv%20class%3D%22visible-md-inline%22%3EMD%20desktop%3C%2Fdiv%3E'%20%2B%20'%3Cdiv%20class%3D%22visible-lg-inline%22%3ELG%20desktop-lg%3C%2Fdiv%3E'%3Bdocument.body.insertBefore(div%2C%20document.body.firstChild)%7D)()
@JetFault
Copy link
Author

Uses visible-xs and so on so it matches your variables you set up for your breakpoints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment