66

Use html5 to build what you want, where you want it

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Use html5 to build what you want, where you want it
Page 2: Use html5 to build what you want, where you want it
Page 3: Use html5 to build what you want, where you want it
Page 4: Use html5 to build what you want, where you want it

GoalUse your existing skills to build apps

Learn few typical features

Page 5: Use html5 to build what you want, where you want it

IS IMPORTANT

the web community is big

because

Page 6: Use html5 to build what you want, where you want it

IS IMPORTANT

There are a lot of reusable things on the internet

because

Page 7: Use html5 to build what you want, where you want it

IS IMPORTANT

It is reusable across multiple platforms

because

Page 8: Use html5 to build what you want, where you want it

IS IMPORTANT

it is reusable across multiple platforms

with a minimum effort

because

Page 9: Use html5 to build what you want, where you want it

How does HTML5 fit in the windows 8 platform

Page 10: Use html5 to build what you want, where you want it

Windows 8 platform

Page 11: Use html5 to build what you want, where you want it

Windows 8 platform

Page 12: Use html5 to build what you want, where you want it
Page 13: Use html5 to build what you want, where you want it
Page 14: Use html5 to build what you want, where you want it

We will build this app

Page 15: Use html5 to build what you want, where you want it

DEMO:Turn an existing HTML website into a Win 8 Store application

Page 16: Use html5 to build what you want, where you want it
Page 17: Use html5 to build what you want, where you want it
Page 18: Use html5 to build what you want, where you want it

From HTML to Win 8 in 3 steps

1. Use your existing HTML, CSS and JavaScript skills

2. Add typical Windows 8 features like: Tiles

WinJS and WinJS controls

Portrait, landscape, snapped and filled

Contracts

...

3. Deploy your app to the store

Page 19: Use html5 to build what you want, where you want it

Use your HTML and CSS skills

Page 20: Use html5 to build what you want, where you want it

Popular HTML Features

Page 21: Use html5 to build what you want, where you want it

Popular CSS feature

Page 22: Use html5 to build what you want, where you want it

DEMO:(re)use your html and css skills

Page 23: Use html5 to build what you want, where you want it

WinJS

Page 24: Use html5 to build what you want, where you want it

WinJS

Library for building Windows Store apps using JavaScript

Matches the Windows Store design guidelines

Offers controls for common user experiences

Designed for touch as well as traditional input

Scales across form factors

Page 25: Use html5 to build what you want, where you want it

WinJS Contains

Page 26: Use html5 to build what you want, where you want it
Page 27: Use html5 to build what you want, where you want it

Or use your favorite library

jQuery, knockout, MooTools, Dojo, YUI

like

Page 28: Use html5 to build what you want, where you want it

Dangerous scripts

Microsoft doesn’t allow code injection

if (isWin8) {MSApp.execUnsafeLocalFunction(function () {

body.appendChild(container).appendChild(div);});

}else {

body.appendChild(container).appendChild(div);}

Page 29: Use html5 to build what you want, where you want it

WinJS Controls or Modern UI Controls

Page 30: Use html5 to build what you want, where you want it

First, you have the standard HTML Controls

<button> <input> <select> <progress> ...

Page 31: Use html5 to build what you want, where you want it

Then, you have WinJS or Modern UI Controlsbased on a <div> or <span> element

with data-win-control to specify the control

and data-win-options to set properties

Page 32: Use html5 to build what you want, where you want it

WinJS Controls

Page 33: Use html5 to build what you want, where you want it

WinJS Styled Controls

Page 34: Use html5 to build what you want, where you want it

More controls

Page 35: Use html5 to build what you want, where you want it

Demo: Application bar

Page 36: Use html5 to build what you want, where you want it

DEMO:Application bar

Page 37: Use html5 to build what you want, where you want it

Different states and orientations

Page 38: Use html5 to build what you want, where you want it

Different states == Different UI

Page 39: Use html5 to build what you want, where you want it
Page 40: Use html5 to build what you want, where you want it
Page 41: Use html5 to build what you want, where you want it
Page 42: Use html5 to build what you want, where you want it

Different states == CSS3 Media Queries

Page 43: Use html5 to build what you want, where you want it

Media Queries to support differentlayouts

@media screen and (-ms-view-state: fullscreen-portrait) {}

@media screen and (-ms-view-state: fullscreen-landscape) {}

@media screen and (-ms-view-state: filled) {}

@media screen and (-ms-view-state: snapped) {}

Page 44: Use html5 to build what you want, where you want it
Page 45: Use html5 to build what you want, where you want it
Page 46: Use html5 to build what you want, where you want it
Page 47: Use html5 to build what you want, where you want it

Demo: Snapped application

Page 48: Use html5 to build what you want, where you want it

DEMO:Support different orientations

Page 49: Use html5 to build what you want, where you want it

Contracts

Page 50: Use html5 to build what you want, where you want it

Contracts

Every webdeveloper can choose where he wants to

put the search or share functionality

Every windows developer can choose where he wants to put the option to change the settings

Page 51: Use html5 to build what you want, where you want it
Page 52: Use html5 to build what you want, where you want it
Page 53: Use html5 to build what you want, where you want it
Page 54: Use html5 to build what you want, where you want it

Contracts

Contracts enable integrating the Windows 8 experience into your app

Page 55: Use html5 to build what you want, where you want it

Contracts

Page 56: Use html5 to build what you want, where you want it

Demo: Share Contract

Page 57: Use html5 to build what you want, where you want it

DEMO:Contracts

Page 58: Use html5 to build what you want, where you want it

Tiles

Page 59: Use html5 to build what you want, where you want it

Tiles

Tap on tile to launch or switch an app

Static tiles

Static default tile specified in app manifest

Square and wide tile

Dynamic Tiles

Can have live updates

Based on templates

Page 60: Use html5 to build what you want, where you want it
Page 61: Use html5 to build what you want, where you want it

Templates

Page 62: Use html5 to build what you want, where you want it

TileUpdater

Page 63: Use html5 to build what you want, where you want it

Demo: Tiles

Page 64: Use html5 to build what you want, where you want it

DEMO:Tiles

Page 65: Use html5 to build what you want, where you want it
Page 66: Use html5 to build what you want, where you want it

Resources

Images

If we don’t remember me

http://iwdrm.tumblr.com

Anonymous Ostrich

Klaus Delanghe