This is a demo of how to display on a web page the dimensions and orientation of the page. Note that there are several similar dimensions available (i.e. window, page, screen, etc). This is simply a demo to show how to gather such data and display it. Use this however you see fit.
When determining the orientation, I've simply assumed that if the page is taller than it is wide, then it's portrait. Otherwise it's landscape. You may have a different thought on how that should be calculated. Again, this is simply a demo.
width: | pixels |
height: | pixels |
orientation: |