SlideShare a Scribd company logo
1 of 10
Download to read offline
jQuery Mobile
Hour 5
Building Your First Mobile Site
about.me/babon
What You'll Learn in Hour 5
+ The basic structure of a page
+ How to add a header and a footer bar to your
page
+ How to add some simple formatting to your
layout
+ How to attach an image and make it scale
+ How to use a button to link to another page
about.me/babon
Structuring the Page
Start with your template.html
Save as mobile_template.html
about.me/babon
Adding a Header and Footer
Add to mobile_template.html
● header
● content
● footer
Hints: data-role="page"
data-role="header"
data-role="content"
data-role="footer" about.me/babon
Formatting Text Content
Header section should contain your H1 tag.
Footer section typically contains H3 tag.
Add some p tags to the content.
about.me/babon
Adding an Image
Add a largish image to the content area
Add style to the head to make image "stretchy"
<style type=text/css>
img {
max-width: 100%;
}
</style> about.me/babon
Linking to a Second Page
Create a second page.
Hints: data-role="page" id="pageone"
data-role="page" id="pagetwo"
about.me/babon
Linking to a Second Page
Create text links to navigate between pages.
Hints: data-role="button" href="#pagetwo"
data-role="button" href="#pageone"
Gene's busted example.
about.me/babon
Assignment
Build a three-page site that features
classmates' LinkedIn info.
Use tutorials from jQuery jAM and
documentation from jQueryMobile for
assistance.
about.me/babon
Additional Tutorials
Tutorials to be reviewed for homework ...
jQuery Mobile for Absolute Beginners
Parts 1, 2, 3, 4
Getting Started with jQuery Mobile
Creating a Website Using jQuery Mobile
Part 1
about.me/babon

More Related Content

More from Gene Babon (20)

Anatomy Virtual Self Study Group NEPHP 2018
Anatomy Virtual Self Study Group NEPHP 2018Anatomy Virtual Self Study Group NEPHP 2018
Anatomy Virtual Self Study Group NEPHP 2018
 
Become a Front End Web Developer
Become a Front End Web DeveloperBecome a Front End Web Developer
Become a Front End Web Developer
 
Navigating a Career in Web Technology
Navigating a Career in Web TechnologyNavigating a Career in Web Technology
Navigating a Career in Web Technology
 
Info Session
Info SessionInfo Session
Info Session
 
Info session
Info sessionInfo session
Info session
 
Getting Things Done
Getting Things DoneGetting Things Done
Getting Things Done
 
Lesson 17
Lesson 17Lesson 17
Lesson 17
 
Lesson 18
Lesson 18Lesson 18
Lesson 18
 
Lesson 17
Lesson 17Lesson 17
Lesson 17
 
Lesson 16
Lesson 16Lesson 16
Lesson 16
 
Lesson 11
Lesson 11Lesson 11
Lesson 11
 
Lesson 10
Lesson 10Lesson 10
Lesson 10
 
Lesson 09
Lesson 09Lesson 09
Lesson 09
 
Lesson 05
Lesson 05Lesson 05
Lesson 05
 
Lesson 04
Lesson 04Lesson 04
Lesson 04
 
Lesson 01
Lesson 01Lesson 01
Lesson 01
 
Lesson 18
Lesson 18Lesson 18
Lesson 18
 
Lesson 17
Lesson 17Lesson 17
Lesson 17
 
Lesson 16
Lesson 16Lesson 16
Lesson 16
 
Lesson 15
Lesson 15Lesson 15
Lesson 15
 

Recently uploaded

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Recently uploaded (20)

Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 

jQuery Mobile Hour 5

  • 1. jQuery Mobile Hour 5 Building Your First Mobile Site about.me/babon
  • 2. What You'll Learn in Hour 5 + The basic structure of a page + How to add a header and a footer bar to your page + How to add some simple formatting to your layout + How to attach an image and make it scale + How to use a button to link to another page about.me/babon
  • 3. Structuring the Page Start with your template.html Save as mobile_template.html about.me/babon
  • 4. Adding a Header and Footer Add to mobile_template.html ● header ● content ● footer Hints: data-role="page" data-role="header" data-role="content" data-role="footer" about.me/babon
  • 5. Formatting Text Content Header section should contain your H1 tag. Footer section typically contains H3 tag. Add some p tags to the content. about.me/babon
  • 6. Adding an Image Add a largish image to the content area Add style to the head to make image "stretchy" <style type=text/css> img { max-width: 100%; } </style> about.me/babon
  • 7. Linking to a Second Page Create a second page. Hints: data-role="page" id="pageone" data-role="page" id="pagetwo" about.me/babon
  • 8. Linking to a Second Page Create text links to navigate between pages. Hints: data-role="button" href="#pagetwo" data-role="button" href="#pageone" Gene's busted example. about.me/babon
  • 9. Assignment Build a three-page site that features classmates' LinkedIn info. Use tutorials from jQuery jAM and documentation from jQueryMobile for assistance. about.me/babon
  • 10. Additional Tutorials Tutorials to be reviewed for homework ... jQuery Mobile for Absolute Beginners Parts 1, 2, 3, 4 Getting Started with jQuery Mobile Creating a Website Using jQuery Mobile Part 1 about.me/babon