Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alana314/e7a15e8b2abe51af23fd9dd6db4160e2 to your computer and use it in GitHub Desktop.
Save alana314/e7a15e8b2abe51af23fd9dd6db4160e2 to your computer and use it in GitHub Desktop.
//based on Bootstrap 3 standard media queries
//make a new bookmark and add this:
javascript: var width = document.body.clientWidth;if (width < 480) { console.log('screen-xs', width);} else if (width < 768) { console.log('screen-sm', width);} else if (width < 992) { console.log('screen-md', width);} else if (width < 1200) { console.log('screen-lg', width);} else { console.log('screen-xl', width);}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment