Skip to content

Commit

Permalink
Adding JavaScript and MQ testing instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
rupl committed Nov 10, 2012
1 parent 4b23545 commit 40399e8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,13 @@ Commands that start with # are just comments
* Toolkit: https://github.com/Snugug/toolkit
* Sassy Buttons: http://jaredhardy.com/sassy-buttons
* Singularity GS: http://singularity.gs

## Using JavaScript to get window dimensions

In the cosole of your developer tools of choice type the following line of code. Whenever you resize the window its width will be printed in the console.

window.onresize = function(){console.log(window.innerWidth);}

## Using MQtest.io to get window dimensions

http://mqtest.io will show you window, device, orientation, aspect-ratio, and UA.

0 comments on commit 40399e8

Please sign in to comment.