How do I determine which iPad model (Generation 世代, Air/Pro, etc.) I'm looking at the website?

Asked 1 years ago, Updated 1 years ago, 43 views

My site is supposed to be viewed on various iPad models.
Like the title, we need to determine which iPad we are browsing the website on.Is it iPad Air or Pro? How many generations are there?
I would like to use either JavaScript or Jquery.

All operating systems of the models used are expected to be either iPadOS 13-15 so even if I get userAgent information, I don't think I can get any definitive information.
Is there any good way?

*I have posted the same question on teratail.I want to solve it quickly.
https://teratail.com/questions/udz8ibufhzw4ia

javascript html jquery

2022-09-30 20:18

1 Answers

This time, it would have been nice if I could identify one of the 4th generation ipadair models.
I'm going to get the size of the screen display and determine it.
However, the 5th generation of ipadair seems to be the same size (10.9 inches), so
In my case this time, I have decided not to compromise and think about it, but it doesn't seem to be the best way...


2022-09-30 20:18

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.