Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.lang.javascript > #7996

Re: Templates opzionali

Path csiph.com!goblin3!goblin.stu.neva.ru!news.netfront.net!not-for-mail
From Giorgio <giorgio@is.invalid>
Newsgroups it.lavoro.professioni.webmaster, it.comp.lang.javascript
Subject Re: Templates opzionali
Date Mon, 08 Feb 2016 11:07:08 +0100
Organization Netfront http://www.netfront.net/
Lines 22
Message-ID <n99pcf$3e6$1@adenine.netfront.net> (permalink)
References <n94tr4$5hi$1@gioia.aioe.org> <n95f4j$1p6g$1@newsreader2.mclink.it> <n95ijg$18lh$1@gioia.aioe.org>
Reply-To giorgio@is.invalid
NNTP-Posting-Host 5.86.151.95
Mime-Version 1.0
Content-Type text/plain; charset="iso-8859-15"; format=flowed
Content-Transfer-Encoding 8bit
X-Trace adenine.netfront.net 1454926032 3526 5.86.151.95 (8 Feb 2016 10:07:12 GMT)
X-Complaints-To news@netfront.net
NNTP-Posting-Date Mon, 8 Feb 2016 10:07:12 +0000 (UTC)
X-Newsreader MesNews/1.08.06.00-it
X-ICQ 1931503972
Xref csiph.com it.lavoro.professioni.webmaster:25345 it.comp.lang.javascript:7996

Cross-posted to 2 groups.

Show key headers only | View raw


eurofilattico ha spiegato il 06/02/2016 :
>
> Di qui il mio quesito su come impostare un comando che permetta di 
> riconoscere il dispositivo, ma non switchando poi il CSS, ma il template.
>

Stai cercando qualcosa come questo ?
<script type="text/javascript">
	var mql = window.matchMedia("only screen and (max-width: 600px)");
	if(mql.matches) {
        //  window.location='/mobile/index.php';
        //  codice tuo.
        //   codice tuo
    }
</script>

Ciao

-- 
Giorgio

--- news://freenews.netfront.net/ - complaints: news@netfront.net ---

Back to it.comp.lang.javascript | Previous | NextNext in thread | Find similar


Thread

Re: Templates opzionali Giorgio <giorgio@is.invalid> - 2016-02-08 11:07 +0100
  Re: Templates opzionali eurofilattico <eurofilattico@eurofilattico123.org.invalid> - 2016-02-08 21:48 +0100
    Re: Templates opzionali Paolo De Dionigi <PaoloDeDionigi@gmail.com> - 2016-02-09 10:23 +0100
      Re: Templates opzionali eurofilattico <eurofilattico@eurofilattico123.org.invalid> - 2016-02-11 21:37 +0100

csiph-web