Path: csiph.com!.POSTED.194-73-239-109.cust.centrio.cz!not-for-mail From: Cezary Tomczyk Newsgroups: comp.lang.javascript Subject: Re: Redirecting to a mobile site Date: Mon, 5 Dec 2016 07:38:46 +0100 Organization: csiph.com Internet News Service Message-ID: References: <88e1893c-1452-4f95-80d5-b1636c17bd2c@googlegroups.com> <2644487.Wd4agf1tSC@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 5 Dec 2016 06:38:45 +0000 (UTC) Injection-Info: csiph.com; posting-host="194-73-239-109.cust.centrio.cz:109.239.73.194"; logging-data="11922"; mail-complaints-to="admin@kev009.com" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 In-Reply-To: <2644487.Wd4agf1tSC@PointedEars.de> Xref: csiph.com comp.lang.javascript:31767 On 04/12/2016 20:23, Thomas 'PointedEars' Lahn wrote: > Cezary Tomczyk wrote: > >> On 01/12/2016 18:42, bit-naughty@hotmail.com wrote: >>> ...I've been to sites, where, if you're on a mobile device, it >>> redirects you to say, m.site.com - how is this done? (the only >>> knowledge *I* have regarding anything about this is "media queries" >>> in CSS - and that doesn't explain the redirection....) >> >> I've been using this way: >> http://zerosixthree.se/detecting-media-queries-with-javascript/ > > Bad idea. Hm, interesting. What's wrong with that approach? -- Cezary Tomczyk http://www.ctomczyk.pl/ https://www.aslint.org/ - Accessibility testing tool