A
A
Alexander Belikov2015-10-09 14:24:18
JavaScript
Alexander Belikov, 2015-10-09 14:24:18

Can anyone tell me if it is possible to find out the operating system with which the site was entered on Angular.js?

On the project, you need to know with what OS they are sitting on the site, who knows if this can be done without jquery)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim, 2015-10-09
@Alexzzz91

if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows";
if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS";
if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX";
if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux";

A
Alex, 2015-10-09
@streetflush

druweb.ru/opredelenie-tipa-operaczionnoj-sistemyi-...

S
Sergey, 2015-10-09
Protko @Fesor

https://github.com/bestiejs/platform.js/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question