[Sugar-devel] browser detection
Tim Moody
tim at timmoody.com
Sun May 21 17:32:45 EDT 2017
was hoping for a unique user agent.
On Sun, May 21, 2017 at 4:01 PM, Sebastian Silva <sebastian at fuentelibre.org>
wrote:
> Hi Tim,
>
> Sugar web uses the following conditional css link to include styles for
> the XO:
>
> <link rel="stylesheet" media="screen and (device-width: 1200px) and
> (device-height: 900px)"
> href="lib/sugar-web/graphics/css/sugar-200dpi.css">
> I haven't run into other devices with this particular screen size, I think
> it's a safe bet to try.
>
> Regards
> Sebastian
>
>
> On 21/05/17 12:56, Tim Moody wrote:
>
> we are including xo-common.css for all user agents to internet in a box.
> is there a browser detection scheme I can use for an xo, especially one
> that I can use in javascript so we only include this css if the user has an
> xo?
>
> Thanks.
>
>
> _______________________________________________
> Sugar-devel mailing listSugar-devel at lists.sugarlabs.orghttp://lists.sugarlabs.org/listinfo/sugar-devel
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20170521/35484f13/attachment.html>
More information about the Sugar-devel
mailing list