I am rebuilding an old website that was designed to work on a desktop. It is a small "brochure" site with half a dozen pages. I have determined that I really want three versions to support Desktop, Tablet and Phone.
How can I best detect in which of these environments I find myself? I find lots of discussions but little guidance.
My goal is code that returns these parameters:
1) platform = Desktop or Tablet or Phone
2) orientation = landscape or portrait