SlideShare a Scribd company logo
Brooks Bennett City of Round Rock




Simple Mobile Websites
    Taking your message on the road
What we will cover

•   Go over basic details specific to mobile
    web development, focusing on iPhone and
    Android

•   Play with some source code to see how
    simple this stuff really is

•   Put it all together into one final, fun demo
Mobile in the USA

•   More than 50 million smart-phones in use
    in USA at the end of 2009

•   No signs of slowdown in mobile data
    usage growth

•   Is mobile important? Yes, that is why you
    are here...
Mobile Round Rock
•   High-tech, rapidly growing community

•   Want to be #1 source for City news and
    information

•   Mini-mobile website since 2006

•   Mobile traffic is >4% of our web traffic -
    that is thousands of users per month
Why keep it simple?
•   Limited processors and limited connection
    speeds mean you must present ‘light’
    content

•   People are looking for specific information
    on the road

•   We are government. People want specific
    information from us and want to get on
    with their lives...
Where we focus
•   News

•   Calendar

•   Staff directory

•   Service directory

•   FAQs

•   Social media links and video
Round Rock - On the Go
Viewport


•   The viewport meta tag controls how a
    page is drawn to the screen of your mobile
    device
Viewport


•   If your website design is less than 980px
    wide, then setting the viewport is a really
    good idea so your current website can look
    as good as possible on mobile devices
Viewport properties
•   width (can use width=device-width)

•   height (can use width=device-height)

•   initial-scale (0-10)

•   minimum-scale (0-10)

•   maximum-scale (0-10)

•   user-scalable (0 or 1)
Viewport example


<meta name="viewport"
content="width=device-width;
initial-scale=1.0; maximum-
scale=1.0; user-scalable=0;"/>
Viewport demo
Cascading Stylesheets


•   Modern mobile browsers have great CSS
    support

•   If you can handle your project just using
    stylesheets, your life will be simple
Conditional CSS
             Mobile Devices




<link media="only screen and (max-
device-width: 480px)" href="#"
type="text/css" rel="stylesheet">
Conditional CSS
             Larger Devices



<link media="screen and (min-
device-width: 481px)" href="#"
type="text/css" rel="stylesheet">
Cascading Stylesheets


•   You can always sniff for a specific device
    and then use server-side coding to deliver
    the stylesheet that you want

•   More on this in a few minutes...
Stylesheet tricks
•   You can offer different styles for portrait and
    landscape orientations
@media all and (orientation: portrait) {

     body {

         background-color: #707CA7;

     }

}
Stylesheet tricks


•   iPhone 4 specific stylesheet
@media only screen and (min-resolution: 300dpi){

    // CSS for iPhone 4’s 320dpi screen

}
Home screen icons
•   Both iPhone and Android support the rel
    attributes “apple-touch-icon-precomposed”
    and “apple-touch-icon” of the link tag

•   The precomposed version does not give you
    the glossy overlay effect on iOS
<link rel="apple-touch-icon"
  href="apple-touch-icon-otg.png"/>
Icon sizes
         All devices listed use PNG files for icons


•   Android uses 48px * 48px

•   iPhone uses 57px * 57px

•   iPhone 4 uses 114px * 114px

•   I recommend using 114px * 114px or larger.
    The devices all scale them down fine
Icon demo
Devices to support

•   You thought supporting multiple desktop
    browsers was a mess...

•   PPK of quirksmode has a compatibility list
    @ http://quirksmode.org/m

•   http://detectmobilebrowser.com has some
    good scripts for testing
User-agent detection

•   We serve content for iPhone, iPod,
    Blackberry, Android, Palm Pre, and
    IEMobile

•   Be careful of sniffing for “Mobile Safari”
    because of iPad... We sniff for “iPod” and
    “iPhone”
What not to do (IMHO)

•   Force smartphone users to mobile site

•   Not allow a choice to view full site

•   Pre-load lots of content

•   Flash!
How to test?

•   iPhone Simulator on OS X (or other device
    emulator)

•   Desktop web-browser with user-agent set
    to iPhone or Android (or other device)

•   Track down the hardware and test natively
Putting it all together


•   Proper viewport settings, conditional CSS,
    custom icon, and change content based
    on screen orientation.
Code Cracker
   Hint: 123123
What’s next?

•   Check for geographic position using
    geolocation APIs

•   Augmented reality

•   Continue to keep up with new mobile
    technologies and trends
Brooks Bennett City of Round Rock




Simple Mobile Websites
   No go take your message on the road!

More Related Content

What's hot

chapter2
chapter2chapter2
chapter2
Pon Tovave
 
Designing for mobile devices
Designing for mobile devicesDesigning for mobile devices
Designing for mobile devices
Fahd Alhazmi
 
Tincan - Mobile Elephant
Tincan - Mobile ElephantTincan - Mobile Elephant
Tincan - Mobile Elephant
Ben Holliday
 
Building Mobile Apps with HTML, CSS, and JavaScript
Building Mobile Apps with HTML, CSS, and JavaScriptBuilding Mobile Apps with HTML, CSS, and JavaScript
Building Mobile Apps with HTML, CSS, and JavaScript
Jonathan Stark
 
Mobile Web Best Practices
Mobile Web Best PracticesMobile Web Best Practices
Mobile Web Best Practices
Woody Pewitt
 
Nokia N900 Report
Nokia N900 ReportNokia N900 Report
Nokia N900 Report
Hany Al Hamidi
 
The mobile browser world
The mobile browser worldThe mobile browser world
The mobile browser world
Peter-Paul Koch
 
Mobile First - WCJ 2012
Mobile First - WCJ 2012Mobile First - WCJ 2012
Mobile First - WCJ 2012
Gal Brill
 
Jan Ole Suhr
Jan Ole SuhrJan Ole Suhr
Jan Ole Suhr
fndc
 
Mobile Internet
Mobile InternetMobile Internet
Mobile Internet
Michaël Uyttersprot
 
Native Device vs. Mobile Web Applications
Native Device vs. Mobile Web ApplicationsNative Device vs. Mobile Web Applications
Native Device vs. Mobile Web Applications
Tim Wright
 
Best Practices For Delivering Quality Web Experiences In A Mobile, Multi-Brow...
Best Practices For Delivering Quality Web Experiences In A Mobile, Multi-Brow...Best Practices For Delivering Quality Web Experiences In A Mobile, Multi-Brow...
Best Practices For Delivering Quality Web Experiences In A Mobile, Multi-Brow...
Compuware APM
 
Mobile website --- Web is in pocket....
Mobile website --- Web is in pocket....Mobile website --- Web is in pocket....
Mobile website --- Web is in pocket....
Naga Harish M
 
Html5 - the new kid on the block
Html5 - the new kid on the blockHtml5 - the new kid on the block
Html5 - the new kid on the block
Marian Borca
 
Levitum - Working With Us
Levitum - Working With UsLevitum - Working With Us
Levitum - Working With Us
Levitum
 
Mobile Web High Performance
Mobile Web High PerformanceMobile Web High Performance
Mobile Web High Performance
Maximiliano Firtman
 
The Rise Of Tablets: Responsive Web Design is in your future
The Rise Of Tablets: Responsive Web Design is in your futureThe Rise Of Tablets: Responsive Web Design is in your future
The Rise Of Tablets: Responsive Web Design is in your future
Rick Wilson
 
The rise of tablets how responsive web design is in your future
The rise of tablets   how responsive web design is in your futureThe rise of tablets   how responsive web design is in your future
The rise of tablets how responsive web design is in your future
Internet Merchants Association
 
Jennifer Wilson Aimia Nokia Developer Day
Jennifer Wilson Aimia Nokia Developer DayJennifer Wilson Aimia Nokia Developer Day
Jennifer Wilson Aimia Nokia Developer Day
fndc
 
Sql server 2012 mobile business intelligence
Sql server 2012   mobile business intelligenceSql server 2012   mobile business intelligence
Sql server 2012 mobile business intelligence
Jen Stirrup
 

What's hot (20)

chapter2
chapter2chapter2
chapter2
 
Designing for mobile devices
Designing for mobile devicesDesigning for mobile devices
Designing for mobile devices
 
Tincan - Mobile Elephant
Tincan - Mobile ElephantTincan - Mobile Elephant
Tincan - Mobile Elephant
 
Building Mobile Apps with HTML, CSS, and JavaScript
Building Mobile Apps with HTML, CSS, and JavaScriptBuilding Mobile Apps with HTML, CSS, and JavaScript
Building Mobile Apps with HTML, CSS, and JavaScript
 
Mobile Web Best Practices
Mobile Web Best PracticesMobile Web Best Practices
Mobile Web Best Practices
 
Nokia N900 Report
Nokia N900 ReportNokia N900 Report
Nokia N900 Report
 
The mobile browser world
The mobile browser worldThe mobile browser world
The mobile browser world
 
Mobile First - WCJ 2012
Mobile First - WCJ 2012Mobile First - WCJ 2012
Mobile First - WCJ 2012
 
Jan Ole Suhr
Jan Ole SuhrJan Ole Suhr
Jan Ole Suhr
 
Mobile Internet
Mobile InternetMobile Internet
Mobile Internet
 
Native Device vs. Mobile Web Applications
Native Device vs. Mobile Web ApplicationsNative Device vs. Mobile Web Applications
Native Device vs. Mobile Web Applications
 
Best Practices For Delivering Quality Web Experiences In A Mobile, Multi-Brow...
Best Practices For Delivering Quality Web Experiences In A Mobile, Multi-Brow...Best Practices For Delivering Quality Web Experiences In A Mobile, Multi-Brow...
Best Practices For Delivering Quality Web Experiences In A Mobile, Multi-Brow...
 
Mobile website --- Web is in pocket....
Mobile website --- Web is in pocket....Mobile website --- Web is in pocket....
Mobile website --- Web is in pocket....
 
Html5 - the new kid on the block
Html5 - the new kid on the blockHtml5 - the new kid on the block
Html5 - the new kid on the block
 
Levitum - Working With Us
Levitum - Working With UsLevitum - Working With Us
Levitum - Working With Us
 
Mobile Web High Performance
Mobile Web High PerformanceMobile Web High Performance
Mobile Web High Performance
 
The Rise Of Tablets: Responsive Web Design is in your future
The Rise Of Tablets: Responsive Web Design is in your futureThe Rise Of Tablets: Responsive Web Design is in your future
The Rise Of Tablets: Responsive Web Design is in your future
 
The rise of tablets how responsive web design is in your future
The rise of tablets   how responsive web design is in your futureThe rise of tablets   how responsive web design is in your future
The rise of tablets how responsive web design is in your future
 
Jennifer Wilson Aimia Nokia Developer Day
Jennifer Wilson Aimia Nokia Developer DayJennifer Wilson Aimia Nokia Developer Day
Jennifer Wilson Aimia Nokia Developer Day
 
Sql server 2012 mobile business intelligence
Sql server 2012   mobile business intelligenceSql server 2012   mobile business intelligence
Sql server 2012 mobile business intelligence
 

Viewers also liked

Arts and Culture Strategic Master Plan - Community Coffee Presentation
Arts and Culture Strategic Master Plan - Community Coffee PresentationArts and Culture Strategic Master Plan - Community Coffee Presentation
Arts and Culture Strategic Master Plan - Community Coffee Presentation
cityofroundrock
 
America's Health Plans Response to President Obama
America's Health Plans Response to President ObamaAmerica's Health Plans Response to President Obama
America's Health Plans Response to President Obama
Pastor Harvey Burnett
 
Social Media For Municipalities
Social Media For MunicipalitiesSocial Media For Municipalities
Social Media For Municipalities
cityofroundrock
 
Tech Trends
Tech TrendsTech Trends
Tech Trends
cityofroundrock
 
YouTube for Developers
YouTube for DevelopersYouTube for Developers
YouTube for Developers
cityofroundrock
 
Social Media: When Will Case Law Catch Up to the
Social Media: When Will Case Law Catch Up to the Social Media: When Will Case Law Catch Up to the
Social Media: When Will Case Law Catch Up to the
cityofroundrock
 
Women In The Ministry Summary
Women In The Ministry SummaryWomen In The Ministry Summary
Women In The Ministry Summary
Pastor Harvey Burnett
 

Viewers also liked (7)

Arts and Culture Strategic Master Plan - Community Coffee Presentation
Arts and Culture Strategic Master Plan - Community Coffee PresentationArts and Culture Strategic Master Plan - Community Coffee Presentation
Arts and Culture Strategic Master Plan - Community Coffee Presentation
 
America's Health Plans Response to President Obama
America's Health Plans Response to President ObamaAmerica's Health Plans Response to President Obama
America's Health Plans Response to President Obama
 
Social Media For Municipalities
Social Media For MunicipalitiesSocial Media For Municipalities
Social Media For Municipalities
 
Tech Trends
Tech TrendsTech Trends
Tech Trends
 
YouTube for Developers
YouTube for DevelopersYouTube for Developers
YouTube for Developers
 
Social Media: When Will Case Law Catch Up to the
Social Media: When Will Case Law Catch Up to the Social Media: When Will Case Law Catch Up to the
Social Media: When Will Case Law Catch Up to the
 
Women In The Ministry Summary
Women In The Ministry SummaryWomen In The Ministry Summary
Women In The Ministry Summary
 

Similar to Simple mobile Websites

Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
Julia Vi
 
How to create a mobile version of your website
How to create a mobile version of your websiteHow to create a mobile version of your website
How to create a mobile version of your website
Mahmoud Farrag
 
Responsive Web Design - Why and How
Responsive Web Design - Why and HowResponsive Web Design - Why and How
Responsive Web Design - Why and How
Judi Wunderlich
 
Cross Device UI Designing
Cross Device UI DesigningCross Device UI Designing
Cross Device UI Designing
Deepu S Nath
 
The Mobile Development Landscape
The Mobile Development LandscapeThe Mobile Development Landscape
The Mobile Development Landscape
Ambert Ho
 
Responsive Web Site Design
Responsive Web Site DesignResponsive Web Site Design
Responsive Web Site Design
Jussi Pohjolainen
 
Philly ete-2011
Philly ete-2011Philly ete-2011
Philly ete-2011
davyjones
 
Mobile App Development
Mobile App DevelopmentMobile App Development
Mobile App Development
Chris Morrell
 
Beyond the Desktop: Sites and Apps for Phones and Tablets
Beyond the Desktop: Sites and Apps for Phones and TabletsBeyond the Desktop: Sites and Apps for Phones and Tablets
Beyond the Desktop: Sites and Apps for Phones and Tablets
Webvanta
 
Mobile web development
Mobile web development Mobile web development
Mobile web development
Moumie Soulemane
 
Advancio, Inc. Academy: Responsive Web Design
Advancio, Inc. Academy: Responsive Web DesignAdvancio, Inc. Academy: Responsive Web Design
Advancio, Inc. Academy: Responsive Web Design
Advancio
 
HTML5 or Android for Mobile Development?
HTML5 or Android for Mobile Development?HTML5 or Android for Mobile Development?
HTML5 or Android for Mobile Development?
Reto Meier
 
Comp4010 Lecture7 Designing AR Systems
Comp4010 Lecture7 Designing AR SystemsComp4010 Lecture7 Designing AR Systems
Comp4010 Lecture7 Designing AR Systems
Mark Billinghurst
 
SPCA2013 - Getting to grips with a SharePoint 2013 BYOD Strategy
SPCA2013 - Getting to grips with a SharePoint 2013 BYOD StrategySPCA2013 - Getting to grips with a SharePoint 2013 BYOD Strategy
SPCA2013 - Getting to grips with a SharePoint 2013 BYOD Strategy
NCCOMMS
 
HTML5 is the Future of Mobile, PhoneGap Takes You There Today
HTML5 is the Future of Mobile, PhoneGap Takes You There TodayHTML5 is the Future of Mobile, PhoneGap Takes You There Today
HTML5 is the Future of Mobile, PhoneGap Takes You There Today
davyjones
 
Mobile Web High Performance
Mobile Web High PerformanceMobile Web High Performance
Mobile Web High Performance
Amjad Rafique
 
The Mobile Web Revealed For The Java Developer
The Mobile Web Revealed For The Java DeveloperThe Mobile Web Revealed For The Java Developer
The Mobile Web Revealed For The Java Developer
balunasj
 
Cm i padwebdev_lunch_learn
Cm i padwebdev_lunch_learnCm i padwebdev_lunch_learn
Cm i padwebdev_lunch_learn
Critical Mass
 
Building Websites for Retina Displays: Making Friends with Pixels
Building Websites for Retina Displays: Making Friends with PixelsBuilding Websites for Retina Displays: Making Friends with Pixels
Building Websites for Retina Displays: Making Friends with Pixels
Shoshi Roberts
 
Mobile Best Practices
Mobile Best PracticesMobile Best Practices
Mobile Best Practices
mintersam
 

Similar to Simple mobile Websites (20)

Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
 
How to create a mobile version of your website
How to create a mobile version of your websiteHow to create a mobile version of your website
How to create a mobile version of your website
 
Responsive Web Design - Why and How
Responsive Web Design - Why and HowResponsive Web Design - Why and How
Responsive Web Design - Why and How
 
Cross Device UI Designing
Cross Device UI DesigningCross Device UI Designing
Cross Device UI Designing
 
The Mobile Development Landscape
The Mobile Development LandscapeThe Mobile Development Landscape
The Mobile Development Landscape
 
Responsive Web Site Design
Responsive Web Site DesignResponsive Web Site Design
Responsive Web Site Design
 
Philly ete-2011
Philly ete-2011Philly ete-2011
Philly ete-2011
 
Mobile App Development
Mobile App DevelopmentMobile App Development
Mobile App Development
 
Beyond the Desktop: Sites and Apps for Phones and Tablets
Beyond the Desktop: Sites and Apps for Phones and TabletsBeyond the Desktop: Sites and Apps for Phones and Tablets
Beyond the Desktop: Sites and Apps for Phones and Tablets
 
Mobile web development
Mobile web development Mobile web development
Mobile web development
 
Advancio, Inc. Academy: Responsive Web Design
Advancio, Inc. Academy: Responsive Web DesignAdvancio, Inc. Academy: Responsive Web Design
Advancio, Inc. Academy: Responsive Web Design
 
HTML5 or Android for Mobile Development?
HTML5 or Android for Mobile Development?HTML5 or Android for Mobile Development?
HTML5 or Android for Mobile Development?
 
Comp4010 Lecture7 Designing AR Systems
Comp4010 Lecture7 Designing AR SystemsComp4010 Lecture7 Designing AR Systems
Comp4010 Lecture7 Designing AR Systems
 
SPCA2013 - Getting to grips with a SharePoint 2013 BYOD Strategy
SPCA2013 - Getting to grips with a SharePoint 2013 BYOD StrategySPCA2013 - Getting to grips with a SharePoint 2013 BYOD Strategy
SPCA2013 - Getting to grips with a SharePoint 2013 BYOD Strategy
 
HTML5 is the Future of Mobile, PhoneGap Takes You There Today
HTML5 is the Future of Mobile, PhoneGap Takes You There TodayHTML5 is the Future of Mobile, PhoneGap Takes You There Today
HTML5 is the Future of Mobile, PhoneGap Takes You There Today
 
Mobile Web High Performance
Mobile Web High PerformanceMobile Web High Performance
Mobile Web High Performance
 
The Mobile Web Revealed For The Java Developer
The Mobile Web Revealed For The Java DeveloperThe Mobile Web Revealed For The Java Developer
The Mobile Web Revealed For The Java Developer
 
Cm i padwebdev_lunch_learn
Cm i padwebdev_lunch_learnCm i padwebdev_lunch_learn
Cm i padwebdev_lunch_learn
 
Building Websites for Retina Displays: Making Friends with Pixels
Building Websites for Retina Displays: Making Friends with PixelsBuilding Websites for Retina Displays: Making Friends with Pixels
Building Websites for Retina Displays: Making Friends with Pixels
 
Mobile Best Practices
Mobile Best PracticesMobile Best Practices
Mobile Best Practices
 

Recently uploaded

GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
Mariano Tinti
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 

Recently uploaded (20)

GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 

Simple mobile Websites

  • 1. Brooks Bennett City of Round Rock Simple Mobile Websites Taking your message on the road
  • 2. What we will cover • Go over basic details specific to mobile web development, focusing on iPhone and Android • Play with some source code to see how simple this stuff really is • Put it all together into one final, fun demo
  • 3. Mobile in the USA • More than 50 million smart-phones in use in USA at the end of 2009 • No signs of slowdown in mobile data usage growth • Is mobile important? Yes, that is why you are here...
  • 4. Mobile Round Rock • High-tech, rapidly growing community • Want to be #1 source for City news and information • Mini-mobile website since 2006 • Mobile traffic is >4% of our web traffic - that is thousands of users per month
  • 5. Why keep it simple? • Limited processors and limited connection speeds mean you must present ‘light’ content • People are looking for specific information on the road • We are government. People want specific information from us and want to get on with their lives...
  • 6. Where we focus • News • Calendar • Staff directory • Service directory • FAQs • Social media links and video
  • 7. Round Rock - On the Go
  • 8. Viewport • The viewport meta tag controls how a page is drawn to the screen of your mobile device
  • 9. Viewport • If your website design is less than 980px wide, then setting the viewport is a really good idea so your current website can look as good as possible on mobile devices
  • 10. Viewport properties • width (can use width=device-width) • height (can use width=device-height) • initial-scale (0-10) • minimum-scale (0-10) • maximum-scale (0-10) • user-scalable (0 or 1)
  • 13. Cascading Stylesheets • Modern mobile browsers have great CSS support • If you can handle your project just using stylesheets, your life will be simple
  • 14. Conditional CSS Mobile Devices <link media="only screen and (max- device-width: 480px)" href="#" type="text/css" rel="stylesheet">
  • 15. Conditional CSS Larger Devices <link media="screen and (min- device-width: 481px)" href="#" type="text/css" rel="stylesheet">
  • 16. Cascading Stylesheets • You can always sniff for a specific device and then use server-side coding to deliver the stylesheet that you want • More on this in a few minutes...
  • 17. Stylesheet tricks • You can offer different styles for portrait and landscape orientations @media all and (orientation: portrait) { body { background-color: #707CA7; } }
  • 18. Stylesheet tricks • iPhone 4 specific stylesheet @media only screen and (min-resolution: 300dpi){ // CSS for iPhone 4’s 320dpi screen }
  • 19. Home screen icons • Both iPhone and Android support the rel attributes “apple-touch-icon-precomposed” and “apple-touch-icon” of the link tag • The precomposed version does not give you the glossy overlay effect on iOS <link rel="apple-touch-icon" href="apple-touch-icon-otg.png"/>
  • 20. Icon sizes All devices listed use PNG files for icons • Android uses 48px * 48px • iPhone uses 57px * 57px • iPhone 4 uses 114px * 114px • I recommend using 114px * 114px or larger. The devices all scale them down fine
  • 22. Devices to support • You thought supporting multiple desktop browsers was a mess... • PPK of quirksmode has a compatibility list @ http://quirksmode.org/m • http://detectmobilebrowser.com has some good scripts for testing
  • 23. User-agent detection • We serve content for iPhone, iPod, Blackberry, Android, Palm Pre, and IEMobile • Be careful of sniffing for “Mobile Safari” because of iPad... We sniff for “iPod” and “iPhone”
  • 24. What not to do (IMHO) • Force smartphone users to mobile site • Not allow a choice to view full site • Pre-load lots of content • Flash!
  • 25. How to test? • iPhone Simulator on OS X (or other device emulator) • Desktop web-browser with user-agent set to iPhone or Android (or other device) • Track down the hardware and test natively
  • 26. Putting it all together • Proper viewport settings, conditional CSS, custom icon, and change content based on screen orientation.
  • 27. Code Cracker Hint: 123123
  • 28. What’s next? • Check for geographic position using geolocation APIs • Augmented reality • Continue to keep up with new mobile technologies and trends
  • 29. Brooks Bennett City of Round Rock Simple Mobile Websites No go take your message on the road!