Check it out on the live site! It displays visitors' screen sizes in real-time.
Inspired by the visualization on Brad Frost's This Is Responsive.
There's a route called /screen
which takes two params:
w
is the widthh
is the height
You can measure these on the client-side by checking window.innerWidth
and window.innerHeight
. Then just GET the URL and supply the two dimensions. The server handles the rest!
/screen?w=480&h=640
Made with 💞 by Chris Ruppel.