Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Latest commit

 

History

History
23 lines (18 loc) · 843 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 843 Bytes

media-query-debugger

===================

A quick, lightweight jQuery plugin used for keeping track of the responsive breakpoints you're working with.

USAGE

===================

  1. Link to css/media-query-debugger.css or copy/paste the .mq-debug class into your master stylesheet.

  2. Place an empty

    right after the tag and give it a unique ID.

  3. Include js/jquery.media-query-debugger.js just before the tag.

  4. Place the following function right after the linked plugin (where "#debugger" is replaced by your unique ID):

    <script> $(document).ready(function(){ $('#debugger').mqDebug(); $(window).resize(function(){ $('#debugger').mqDebug(); }); }); </script>

You should now have a small badge that floats above your entire design that displays your current breakpoint every time it is resized.