Desktop vs. Mobile; getting size of the screen

Got an idea for enhancing SpiderBasic? New command(s) you'd like to see?
User avatar
es_91
Posts: 38
Joined: Sat Aug 29, 2015 10:25 pm

Desktop vs. Mobile; getting size of the screen

Post by es_91 »

If there is no way to find out whether the screen is a desktop or mobile device, could you be so friendly to build some in?

Also, how about a zoom-to-double-size switch for better display on smaller devices?

Background is, SB pages are almost uncontrollable here on Windows Phone and Android 4.x for the desktop size is always the exact screen resolution (minus bars) and the content is therefore displayed very small.
:mrgreen:
the.weavster
Posts: 222
Joined: Sat Mar 01, 2014 3:02 pm

Re: Desktop vs. Mobile; getting size of the screen

Post by the.weavster »

Mozilla suggest looking for the string 'mobi' in navigator.userAgent
Post Reply