Created
May 2, 2013 02:59
-
-
Save ZachMoreno/5499874 to your computer and use it in GitHub Desktop.
Screen Dimensions Tool
by: Jon Nutting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-----------------------------------> | |
| <!-- Insert Screen Dimensions Tool --> | |
| <!--- Code Doodle by Jon Nutting ----> | |
| <!-----------------------------------> | |
| <script> | |
| $(function(){ | |
| $("body").append('<div id="screenDims">Resize Window ></div>'); | |
| $("#screenDims").css({ | |
| 'position':'absolute', | |
| 'bottom':0, | |
| 'right':0, | |
| 'background-color':'#eaeaea', | |
| 'padding':'5px' | |
| }); | |
| $(window).on("resize", function(){ | |
| $('#screenDims').text('H: ' +$(window).height()+ ' / W: ' + $(window).width()); | |
| }); | |
| }); | |
| </script> | |
| <!-----------------------------------> | |
| <!---- END: Screen Dimensions Tool --> | |
| <!-----------------------------------> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment