• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Webmobile - introduction aux sites mobiles

on

  • 1,339 views

Introductions aux sites mobiles

Introductions aux sites mobiles

Statistics

Views

Total Views
1,339
Views on SlideShare
1,208
Embed Views
131

Actions

Likes
1
Downloads
0
Comments
0

2 Embeds 131

http://www.arnaudguillaume.com 118
http://www.bonweb.fr 13

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Webmobile - introduction aux sites mobiles Webmobile - introduction aux sites mobiles Presentation Transcript

    • Evolution du marché des smartphones
    • RewriteEngine On RewriteCond %{HTTP_USER_AGENT} "ipod|iphone|ipad" [NC,OR] RewriteCond %{HTTP_USER_AGENT} "android|palm" RewriteRule (.*) http://m.votredomaine.com [R=301,L]
    • function isMobile() { //User agent $ua = $_SERVER['HTTP_USER_AGENT']; //test si il s'agit d'un mobile return preg_match('/iphone/i',$ua) || preg_match('/android/i',$ua) || preg_match('/blackberry/i',$ua); }
    • if ( (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/Android/i) ) ) { window.location = "http://mobile.votredomaine.com"; }
    • <link type="text/css" rel="stylesheet" media="only screen and (max-device-width: 480px)" href="mobile.css">