Answer the question
In order to leave comments, you need to log in
How to determine the phone model of a site visitor?
Hello!
A library is needed (better for local use, without external requests) to determine the visitor's phone version (not OS, browser, etc.).
Preferably without external requests.
Yandex.Locator closed like.
WURFL is some kind of monstrous ...
In fact, you just need to parse the User Agent. It turned out to recognize the model - well, if it didn’t work out, then it’s also not critical.
I must say right away that it is not necessary for layout and so on.
Maybe some easy script?
Answer the question
In order to leave comments, you need to log in
Попробуйте https://github.com/bestiejs/platform.js
Среди прочего парсит и ту информацию, что Вам нужна:
platform.product; // 'iPad'
platform.manufacturer; // 'Apple'
platform.os; // 'iOS 5.0'
Нативно - window.navigator.
https://developer.mozilla.org/en-US/docs/Web/API/W...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question