Skip to content

Commit

Permalink
Quick code to show window width on resize
Browse files Browse the repository at this point in the history
  • Loading branch information
Snugug committed Nov 4, 2012
1 parent 0189a7d commit e4ca51d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ <h2>About Web Chef Caf&#233;</h2>
</div> <!-- #container -->

<script src="js/chibi-min.js"></script>
<script src="js/application.js"></script>
<!--
Put all your DOMready scripts after the line invoking our JS library.
If you aren't sure if your script requires DOMready, just put it here.
Expand Down
4 changes: 4 additions & 0 deletions js/application.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
//////////////////////////////
// Logs to the Console viewport size on resize
//////////////////////////////
window.onresize=function(event){console.log(window.innerWidth)}

0 comments on commit e4ca51d

Please sign in to comment.