Detect screen size with jQuary


/ Published in: jQuery
Save to your folder(s)

Source: Responsive Web Design - Ethan Marcotte


Copy this code and paste it in your HTML
  1. if (screen.width > 480) {
  2. $(document).ready(function() { ... });
  3. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.