Hacker News new | past | comments | ask | show | jobs | submit login

I changed the user agent of the Mac Safari to be that of iOS, and changed the window size to be in portrait, yet it still does knows it’s not a mobile device. How does it know?



I checked the slide.js and it uses `navigator["maxTouchPoints"]`.

Also in the code: if you want to see all the levels without touch, add ?debug=1 to the URL and use the spacebar to advance.


Available browser APIs?




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: