S
S
Stanislav2015-03-15 15:58:59
Node.js
Stanislav, 2015-03-15 15:58:59

How to find out from a mobile phone they go to the site or from a PC?

Guys tell me what npm exist to identify devices. It is required to determine the device and if the mobile phone is given a different template.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
index0h, 2015-03-15
@index0h

User-Agent to the rescue

O
OnYourLips, 2015-03-15
@OnYourLips

Under no circumstances should this be done.
UA will be the same on mobile phones and tablets, but for tablets you need to give a normal site.
The site template should adapt itself to the device.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question