SlideShare uma empresa Scribd logo
1 de 27
MeetupsFramsia av Andreas Rübner Johnsen den2. februar 2011 Bedre nettsider på iPad og iPhone- og andre dingser
Bedre nettsider på Samsung Galaxy og SE Xperia- og andre dingser
800 800 980 piksler 800 piksler
Endre viewport <meta name = "viewport" content = "width = 800">
Standard bredde på viewport 980 px* 850 px 800 px * Gjelder både iPhone 3 og iPhone 4
Trykkvennlig design
Detektere «touch» Sniffe User-Agentpå serveren Finne skjermstørrelsen med CSS Bruke Javascript: if(window.Touch) /* kun iPhone*/ document.ontouchstart
Input-elementer <input type="text"> <input type="number"> <input type="tel"> <input type="email"> <input type="file">
Ikke bruk!Safari på mobil er ikke helt det samme som på desktop Flash Mouse-over Filopplasting og -nedlasting Nedlastbare fonter
Simulatorer iPhone 3/4 og iPad simulator installer iOS SDK 4 (kun for Mac) Android emulator installer Android SDK (for Windows, Mac, Linux) må først definere en Android VirtualDevice Opera Mobile emulator Windows, Mac, Linux Opera Mini Simulator http://www.opera.com/mobile/demo/ Windows Phone 7 emulator installer Windows Phone Developer Tools
Web apps på en, to, tre, fire, fem!
1. Home screen
2. Legge til ikon <html>   <head>   <title>itDagene</title> <link rel="apple-touch-icon" href=”itdagene.png"> 		 … 		 … iOS, Android, BB6,
3. Optimal bredde <html>   <head>     <title>itDagene</title> 		 <link rel="apple-touch-icon" href=”itdagene.png"> <meta name="viewport" content="width=device-width"> 		 … 		 … iOS, Android, webOS, Opera, WP7
4. Slå av zoom <html>   <head>     <title>itDagene</title> 		 <link rel="apple-touch-icon" href=”itdagene.png"> <meta name="viewport" content="width=device-width, 								user-scalable = no"> 		 … … iOS, Android, webOS, WP7, Opera
5. Skjule Safari <html>   <head>     <title>itDagene</title> 		 <link rel="apple-touch-icon" href=”itdagene.png"> 	  <meta name="viewport" content="width=device-width, 								user-scalable = no"> <meta name="apple-mobile-web-app-capable" content="yes"> 		 … …
6. Offline web app <html manifest="itdageneapp.manifest"> CACHE MANIFEST /itdagene.html /itdagene.css /itdagene.js /itdagene-logo.png
Offline Web Apps Offline Web Apps kan brukes på mobilen uten å være tilkoblet internett. Standardisert i HTML5. Støttes av Safari, Chrome og Opera, iPhone og Android. HTML5 ,[object Object]
Client-side SQL
LocalStorage
 Online API,[object Object]
Web Widgets Web apps som kan  kjøres uten nettleser. ,[object Object]
W3C Widgets,[object Object]

Mais conteúdo relacionado

Destaque

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Destaque (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Bedre nettsider på i pad og iphone

  • 1. MeetupsFramsia av Andreas Rübner Johnsen den2. februar 2011 Bedre nettsider på iPad og iPhone- og andre dingser
  • 2. Bedre nettsider på Samsung Galaxy og SE Xperia- og andre dingser
  • 3.
  • 4. 800 800 980 piksler 800 piksler
  • 5. Endre viewport <meta name = "viewport" content = "width = 800">
  • 6. Standard bredde på viewport 980 px* 850 px 800 px * Gjelder både iPhone 3 og iPhone 4
  • 8. Detektere «touch» Sniffe User-Agentpå serveren Finne skjermstørrelsen med CSS Bruke Javascript: if(window.Touch) /* kun iPhone*/ document.ontouchstart
  • 9. Input-elementer <input type="text"> <input type="number"> <input type="tel"> <input type="email"> <input type="file">
  • 10. Ikke bruk!Safari på mobil er ikke helt det samme som på desktop Flash Mouse-over Filopplasting og -nedlasting Nedlastbare fonter
  • 11. Simulatorer iPhone 3/4 og iPad simulator installer iOS SDK 4 (kun for Mac) Android emulator installer Android SDK (for Windows, Mac, Linux) må først definere en Android VirtualDevice Opera Mobile emulator Windows, Mac, Linux Opera Mini Simulator http://www.opera.com/mobile/demo/ Windows Phone 7 emulator installer Windows Phone Developer Tools
  • 12.
  • 13.
  • 14.
  • 15. Web apps på en, to, tre, fire, fem!
  • 17. 2. Legge til ikon <html> <head> <title>itDagene</title> <link rel="apple-touch-icon" href=”itdagene.png"> … … iOS, Android, BB6,
  • 18. 3. Optimal bredde <html> <head> <title>itDagene</title> <link rel="apple-touch-icon" href=”itdagene.png"> <meta name="viewport" content="width=device-width"> … … iOS, Android, webOS, Opera, WP7
  • 19. 4. Slå av zoom <html> <head> <title>itDagene</title> <link rel="apple-touch-icon" href=”itdagene.png"> <meta name="viewport" content="width=device-width, user-scalable = no"> … … iOS, Android, webOS, WP7, Opera
  • 20. 5. Skjule Safari <html> <head> <title>itDagene</title> <link rel="apple-touch-icon" href=”itdagene.png"> <meta name="viewport" content="width=device-width, user-scalable = no"> <meta name="apple-mobile-web-app-capable" content="yes"> … …
  • 21. 6. Offline web app <html manifest="itdageneapp.manifest"> CACHE MANIFEST /itdagene.html /itdagene.css /itdagene.js /itdagene-logo.png
  • 22.
  • 25.
  • 26.
  • 27.
  • 29. HTML5/CSS3 demoer Demo av Deviceorientation API http://kurrik-slides.appspot.com/html5-techtalk/#slide30 NB! Kun for Chrome påMacbook NB! Tar oftenoensekunderfør den starter HTML5 candance http://code.bocoup.com/audio-data-api/flash-vs-html5/ NB! Kun Firefox 4 – WebGLmåslåspå (beskrevetpåsiden) Kombinasjon av: Webfonts SVG Filters <video> WebGL (3d canvas) Mozilla’sAudio Data API

Notas do Editor

  1. Presentasjonen kunne like gjerne hatt denne tittelen (nesten).
  2. Bruk viewport for å utnytte skjermbredden best mulig.
  3. Kilde: A pixel is not a pixel is not a pixel - http://www.quirksmode.org/blog/archives/2010/04/a_pixel_is_not.html
  4. Har lest at ting som skal trykkes på i grensesnittet bør være minimum 80x80px og ha en avstand på minst 20px. Dette vil variere fra skjerm til skjerm og bør egentlig oppgis i millimeter.
  5. http://articles.sitepoint.com/article/adapting-an-interface-for-touch-devices
  6. Bruk type-attributtet på input-elementer for å gi brukeren det beste grensesnittet.
  7. WP7: ”Pin to Start”
  8. For Android to pick up the icon you need a precomposed icon&lt;link rel=&quot;apple-touch-icon-precomposed&quot; href=&quot;/apple-touch-icon-precomposed.png&quot;/&gt;In 2.1-update1, on the Droid, and I presume other 2.* OS phones, when adding a bookmark to the homescreen, the homescreen only displays a custom icon if the link rel=&quot;apple-touch-icon&quot; or apple-touch-icon-precomposed have a FULL url path. Full meaning domain and everything.
  9. WP7:The keyword “device-width” is intended to set the width of the Viewport to the width of the device that is viewing the page. On Windows Phone 7, the device width is 480 pixels. However, you will notice that if you set the Viewport width to “device-width”, IE actually sets the width to 320 (and also pins it to 320 if you specify a width of less than 320).
  10. http://diveintohtml5.org/offline.html
  11. http://www.w3.org/standards/techs/mobileapp#w3c_all
  12. PhoneGap er et (av flere) rammeverk som gjøre det mulig å lage native apps basert på HTML, CSS og JS. Gir tilgang til hardware devicer i de ulike enhentene. PhoneGap e opensource. Se http://www.phonegap.com/features for hvilkemulighetersomgjørestilgjengeligpå de ulikeplattformene.