Session 4 Chapter 15 - How to Use jQuery Mobile to Build and Mobile Web Site ITI 134: HTML5 Desktop and Mobile Level II www.profburnett.com.

Slides:



Advertisements
Similar presentations
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
Advertisements

CNIT 132 Intermediate HTML and CSS jQuery Mobile.
ITI 133: HTML5 Desktop and Mobile Level I
Review of last session The Weebly Dashboard The Weebly Dashboard Controls your account and your sites Controls your account and your sites From here you.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
 jQuery Mobile An Introduction. What is jQuery Mobile  A framework built on top of jQuery, used for creating mobile web applications  Designed to make.
Anatomy of an App HTML, CSS, jQuery, jQuery Mobile CIS 136 Building Mobile Apps 1.
© 2011 Delmar, Cengage Learning Chapter 2 Developing a Web Page.
WDV 331 Dreamweaver Applications Designing Websites for Mobile Devices Dreamweaver CS6 Chapter 11.
UNIT 7 MOBILE APPLICATIONS. OBJECTIVES  CO3 Create a website that is optimized for viewing on a mobile device. 2.
Page Layout & Mobile Web Using columns, grid systems, etc… to layout sites for desktops and mobile.
DEVELOPING FOR MOBILE Jackie Calapristi. AGENDA  Why you should go mobile  Mobile Design Options  Responsive Design  Tips & Tools to Help You Build.
CS 174: Web Programming April 21 Class Meeting Department of Computer Science San Jose State University Spring 2015 Instructor: Ron Mak
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
© Ms. Masihi.  The Dreamweaver Welcome Screen first opens when you start Dreamweaver.  This screen gives you quick access to previously opened files,
Web Technologies Website Development Trade & Industrial Education
Chapter 2 Developing a Web Page. Chapter 2 Lessons Introduction 1.Create head content and set page properties 2.Create, import, and format text 3.Add.
Chapter 2 Developing a Web Page. A web page is composed of two distinct sections: –The head content –The body Creating Head Content and Setting Page Properties.
Week 8 – Part 3 More on Links, Layout, and Mobile Key Concepts 1.
Website Development with Dreamweaver
Copyright 2012 Adobe Systems Incorporated. All rights reserved. ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. ® Copyright 2012 Adobe.
Style Sheets for Print and Mobile Media Types Supplemental Material.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Positioning Objects with CSS and Tables
 An HTML, CSS, Javascript framework you can use as a basis for creating web sites  Uses CSS settings, fundamental HTML elements styled and enhanced.
Fundamentals of Web DevelopmentRandy Connolly and Ricardo Hoar Textbook to be published by Pearson Ed in early Bootstrap.
Header, Footer, and Navigation toolbars CIS 136 Building Mobile Apps 1.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Essential Questions What challenges do mobile devices present to Web designers? What are the basic concepts.
Web Development & Design Foundations with HTML5
HTML5 Level II Session IV
CNIT131 Internet Basics & Beginning HTML
CSS Layouts: Positioning and Navbars
HTML5 Level II Session V Chapter 8 - How to Use Responsive Web Design (RWD)
Tutorial 6 Topic: jQuery and jQuery Mobile Li Xu
Web Development & Design Foundations with HTML5
Cascading Style Sheets (Layout)
HTML5 Level II Session II
Web Development & Design Foundations with HTML5 7th Edition
Tutorial 4: jQuery Mobile
ITI 133 HTML5 Desktop and Mobile Level I
Chapter 8 More on Links, Layout, and Mobile Key Concepts
ITI 133 HTML5 Desktop and Mobile Level I
HTML5 Level I Session III
Course Review HTML5 Level II Course Review
HTML5 Level II Session III
Course Review HTML5 Level II Course Review
HTML5 Level I Session II Chapter 3 - How to Use HTML to Structure a Web Page
HTML5 Session III Chapter 5 - How to Use the CSS Box Model for Spacing, Borders, and Backgrounds Chapter 6 - How to use CSS for page.
HTML5 Level I Session III
HTML5 Level I Session III
Session I Chapter 18 - How to Design a Web Site
Anatomy of an App User Interface Design
Course Review ITI HTML5 Level II Course Review
HTML Level II (CyberAdvantage)
Session VI Chapter 8 - How to Use Responsive Web Design (RWD)
Chapter 8 - How to Use Responsive Web Design (RWD)
SEEM4570 Tutorial 5: jQuery + jQuery Mobile
ITI 239 HTML5 Desktop and Mobile Level I
Course Review HTML5 Level II Course Review
Chapter 7 Absolute/relative hyperlinks Frag id 3-column site
Course Review HTML5 Level II Course Review
HTML5 Session II Chapter 2 - How to Code, Test and Validate a Web Page Chapter 3 - How to Use HTML to Structure a Web Page
ITI 163: Web, Mobile, and Social Media Design Introduction
Web Page Layout Imran Rashid CTO at ManiWeber Technologies.
ITI 134: HTML5 Desktop and Mobile Level II
Master a Skill / Learn for Life
Web Development & Design Foundations with HTML5
Session IV Chapter 15 - How Work with Fonts and Printing
ITI 133: HTML5 Desktop and Mobile Level I
Presentation transcript:

Session 4 Chapter 15 - How to Use jQuery Mobile to Build and Mobile Web Site ITI 134: HTML5 Desktop and Mobile Level II

Class Outline  Providing Content to Mobile Devices  Intro to jQuery Mobile  How to Use jQuery Mobile to Build a web site.  How to Format Content with jQuery Mobile  How to Use jQuery Mobile for Page Layout 3/4/ Copyright © Carl M. Burnett

Providing Content to Mobile Devices  Mobile App – Native Application  Mobile Web Application Frameworks Mobile Web Application Frameworks  Link to Mobilized Website  JavaScript Detected Phone  Server-Side Script to Detect and Redirect  Wireless Universal Resource File (WURFL) API 3/4/ Copyright © Carl M. Burnett

Viewport 3/4/2014 Copyright © Carl M. Burnett 4

Properties for Viewport Metadata  width PropertyDescription width The width of the viewport in pixels height The height of the viewport in pixels initial-scale Number that indicates initial zoom factor for the page minimum-scale Number that indicates minimum zoom factor for the page maximum-scale Number that indicates maximum zoom factor for the page user-scalable Indicates whether user can zoom in or out 3/4/2014 Copyright © Carl M. Burnett 5

Meta Elements Set Viewport Properties <meta name="viewport" content="width=device-width, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1"> 3/4/2014 Copyright © Carl M. Burnett 6

Mobile Web Design Guidelines  Keep your layout simple.  One-column layouts work best.  Only essential content.  Keep images small and a minimum.  Avoid using Flash.  Only essential navigation in the header.  Other navigation part of page content.  Make links and other elements large.  Use relative measurements. 3/4/2014 Copyright © Carl M. Burnett 7

Mobile Web Design Testing Guidelines  Use device emulators and browser simulators.  Test all pages on different mobile devices and browsers.  Deploy on server and test on the devices. themselves. 3/4/2014 Copyright © Carl M. Burnett 8

jQuery Framework  jQuery (the core library)  jQuery Mobile 3/4/2014 Copyright © Carl M. Burnett 9

Files for jQuery Mobile Web Apps  The jQuery JavaScript file  The jQuery Mobile JavaScript file  The jQuery Mobile CSS style sheet 3/4/ Copyright © Carl M. Burnett

Ways to Include jQuery Files 3/4/ Copyright © Carl M. Burnett <link rel="stylesheet" href=" jquery.mobile-1.0b3.min.css"> <!-- include the jQuery and jQuery Mobile JavaScript files --> <script src=" jquery min.js"> <script src=" jquery.mobile-1.0b3.min.js"> Download and Deploy From Web Server. Content Delivery Network (CDN) <link rel="stylesheet" href="jquery.mobile-1.0b3.min.css"> <!-- include the jQuery and jQuery Mobile JavaScript files -->

jQuery Mobile Web Page Header The page content Footer The HTML for the mobile web page 3/4/2014 Copyright © Carl M. Burnett 12

jQuery Mobile Web Pages SJV Town Hall The Speakers Jeffrey Toobin October 19, 2011 <img src="images/toobin75.jpg" alt="Jeffrey Toobin"> © 2011 SJV Town Hall The Supreme Nine: Black Robed Secrets <img src="images/toobin_court.cnn.jpg" alt="Jeffrey Toobin"> Author of the critically acclaimed best seller, © 2011 HTML for two pages in one HTML file 3/4/2014 Copyright © Carl M. Burnett 13

Transitions that can be used TransitionDescription slide The next page slides in from right to left slideup The next page slides in from bottom to top slidedown The next page slides in from top to bottom pop The next page fades in from the middle of the screen fade The next page fades into view flip The next page flips back to front “pop” transition “fade” transition “fade” transition 3/4/2014 Copyright © Carl M. Burnett 14

Mobile Web Page Buttons 3/4/2014 Copyright © Carl M. Burnett 15

jQuery Mobile Icons 3/4/2014 Copyright © Carl M. Burnett 16

HTML for Buttons <!-- For inline buttons, set the data-line attribute to true --> Cancel OK <!-- To add an icon to a button, use the data-icon attribute --> Delete Home <!-- To group buttons, use a div element with the attributes that follow --> Yes <a href="#" data-role="button" data-icon="arrow-d">No Maybe <!-- To code a Back button, set the data-rel attribute to back --> <a href="#" data-role="button" dat-rel="back" data-icon="back">Back to previous page <a href=" data-role="button" data-icon="plus">Add to Facebook <a href=" data-role="button" data-icon="plus">Tweet this Page 3/4/2014 Copyright © Carl M. Burnett 17

Mobile Web Page with Navigation Bar SJV Town Hall <a href="#home" class="ui-btn-active" data-icon="home" data-theme="b">Home <a href="#speakers" data-icon="star" data-theme="b">Speakers <a href="#contactus" data-icon="grid" data-theme="b">Contact Us The HTML for the navigation bar 3/4/2014 Copyright © Carl M. Burnett 18

Headers and Navigation Bar Themes Header “a”, bar “b”Header “e”, bar “d” ThemeDescription a Black background with white foreground. This is the default. b Blue background with white foreground c Light gray background with a black foreground. Text will appear in bold. d Dark gray background with black foreground. Text will not appear in bold. e Orange background with black foreground. Use for accents, and use sparingly. 3/4/2014 Copyright © Carl M. Burnett 19

HTML for Headers and Navigation Bar Themes 3/4/ Copyright © Carl M. Burnett SJV Town Hall <a href="#home" data-icon="home" data-theme="d">Home <a href="#speakers" data-icon="star" data-theme="d" class="ui-btn-active"> Speakers <a href="#news" id="news" data-icon="grid" data-theme="d">News

Two Column Mobile Web Page Black Robed Secrets <img src="images/toobin75.jpg" alt="Jeffrey Toobin"> Jeffrey Toobin October 19, 2011 Babylon to Beijing Too Big to Fail <img src="images/sorkin75.jpg" alt="Andrew Ross Sorkin"> Andrew Sorkin November 16, 2011 <!-- the code for next speaker in the second column --> 3/4/2014 Copyright © Carl M. Burnett 21

Mobile page with Collapsible Content All blocks collapsed Second block expanded 3/4/2014 Copyright © Carl M. Burnett 22

HTML for Collapsible Content Jeffrey Toobin October 19, 2011 Black Robed Secrets Author of the critically acclaimed... Andrew RossSorkin November 16, 2011 Too Big to Fail <img src="images/sorkin75.jpg" alt="Andrew Ross Sorkin"> A leading voice on Wall Street and... 3/4/2014 Copyright © Carl M. Burnett 23

Mobile Web Page Accordion All blocks collapsed First block expanded 3/4/2014 Copyright © Carl M. Burnett 24

HTML for Accordion Jeffrey Toobin October 19, 2011 Black Robed Secrets <img src="images/toobin75.jpg" alt="Jeffrey Toobin"> Author of the critically acclaimed best seller, The Nine: Inside the Secret World of the Supreme Court, Jeffrey Toobin brings us the inside story of one of America's most mysterious and powerful institutions. 3/4/2014 Copyright © Carl M. Burnett 25

Student Exercise 2  Complete Exercise 15-1 on page 523 using Dreamweaver.  Upload your HTML pages and CSS files to the live site to preview. 3/4/ Copyright © Carl M. Burnett

Class Review  Mobile Devices  Intro to JQuery Mobile  How to Use JQuery Mobile to Build a web site.  How to Format Content with JQuery Mobile  How to Use JQuery Mobile for Page Layout 3/4/ Copyright © Carl M. Burnett Next – Session 5 Chapter 16 – Advanced HTML5 and CSS3 Features