33
Windows 8 & HTML5: friends with benefits DevTeach Montreal – 2012-12-11 Frédéric Harper Technical Evangelist @ Microsoft Canada @fharper | outofcomfortzone.net

DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

  • View
    660

  • Download
    1

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

Windows 8 & HTML5: friends with benefitsDevTeach Montreal – 2012-12-11

Frédéric Harper

Technical Evangelist @ Microsoft Canada

@fharper | outofcomfortzone.net

Page 2: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

WINDOWS 8

Page 3: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

Windows reimagined

New fast and fluid Start screen

Everything great about Windows 7 we made even better

Touch, mouse, keyboard

Page 4: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

Great experience across all hardware

Tablets to laptops to all-in-ones

Highest power to the most efficient chipset

Touch, mouse, keyboard

Page 5: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits
Page 6: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits
Page 7: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

Content Before Chrome

Page 8: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

Content Before Chrome

Content comes first. Immerse users in the things they love

Leave only the most relevant elements on screen to minimize distractions

Page 9: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

If you know web technologies, you are ready to build amazing apps for the Windows Store

Page 10: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

Windows Core OS Services

JavaScript(Chakra)

CC++

C#VB

Windows 8 Store Apps

Communication & Data

Application Model

Devices & Printing

WinRT APIs

Graphics & Media

XAML HTML / CSS

HTMLJavaScrip

tCSS

CC++

C#VB

Desktop Apps

Win32.NET / SL

Internet Explorer

Sys

tem

Ser

vice

sV

iew

Mod

el

Con

trol

ler

Cor

e

Windows Core OS Services

Communication & Data

Application Model

Devices & Printing

Graphics & Media

Sys

tem

Ser

vice

sC

ore

Page 11: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

HTML5

demo

Page 12: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

MORE WEB STANDARDS

Page 13: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

IE9 hardware-accelerated platform

CSS 2D Transforms

CSS Backgrounds & Borders

CSS Color

CSS Fonts

CSS Media Queries

CSS Namespaces

CSS OM Views

CSS Selectors

CSS Values and Units

Data URI

DOM Element Traversal

DOM HTML

DOM Level 3 Core

DOM Level 3 Events

DOM Style

DOM Traversal and Range

DOMParser and XMLSerializer

ECMAScript 5

HTML5 Canvas

HTML5 Geolocation

HTML5 Selection

HTML5 semantic elements

HTML5 video and audio

ICC Color Profiles

Selectors API Level 2

SVG, standalone and in HTML

XHTML/XML

Page 14: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

IE10 hardware-accelerated platformCSS 2D Transforms

CSS 3D Transforms

CSS Animations

CSS Backgrounds & Borders

CSS Color

CSS Flexbox

CSS Fonts

CSS Grid

CSS Hyphenation

CSS Image Values (Gradients)

CSS Media Queries

CSS multi-column Layout

CSS Namespaces

CSS OM Views

CSS Positioned Floats (Exclusions)

CSS Selectors

CSS Transitions

CSS Values and Units

Data URI

DOM Element Traversal

DOM HTML

DOM Level 3 Core

DOM Level 3 Events

DOM Style

DOM Traversal and Range

DOMParser and XMLSerializer

ECMAScript 5

File Reader API

File Saving

FormData

HTML5 Application Cache

HTML5 async

HTML5 BlobBuilder

HTML5 Canvas

HTML5 Drag and drop

HTML5 Forms and Validation

HTML5 Geolocation

HTML5 History API

HTML5 Parser

HTML5 Sandbox

HTML5 Selection

HTML5 semantic elements

HTML5 track

HTML5 video and audio

JavaScript Typed Array

ICC Color Profiles

IndexedDB

Page Visibility

Pointer (Mouse, Pen, and Touch) Events

RequestAnimationFrame

Navigation Timing

Selectors API Level 2

SVG Filter Effects

SVG, standalone and in HTML

Web Messaging

Web Sockets

Web Workers

XHTML/XML

XMLHttpRequest (Level 2)

XMLHttpRequest CORS

Page 15: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

Popular CSS3 features in Windows 8

2D & 3D transforms

Transforms Animations

Transitions

MotionGrid

Flexbox

Layout

Gradients

Filter Effects

Text-shadow

GraphicsMulti-column, hyphenation

Pagination

Position float

Content flow

Windows hardware acceleration makes these beautiful and fast

Page 16: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

CSS3 demos

demo

Page 17: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

Popular HTML5features inWindows 8

Web Sockets

Web Workers

IndexedDB

Ecmascript 5

File API & Blobs

Geolocation

Audio tag

Video tag

Touch-first

Pointer events

Zoom regions

Snap Points

Forms

Validation

Input types

Spell checking

Page 18: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

HTML5 demos

demo

Page 19: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

From IE10 web app to Windows app

• Minor API differences http://msdn.microsoft.com/en-us/library/windows/apps/hh700404.aspx

• Different host No plug-ins in Windows apps Trust level differences (local and web context) http://msdn.microsoft.com/en-us/library/windows/apps/hh465373.aspx

• UX [recommended]

• Windows 8 features [recommended]

Page 20: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

Context in HTML/JS Windows appsFeature Local context Web context

Windows Run-time Yes No

Windows Library for Javascript

Yes No

External script references

No Yes

Cross-domain XHR requests

Yes No

Automatic filtering for script injection on DOM

Yes No

There are ways to communicate across contexts, ways to give websites access to some web standards features and ways to skip automatic filtering within a function.

Page 21: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

TOOLS

Page 22: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

Visual Studio 2012 RC & Blend for Visual Studio 2012 RC

demo

Page 23: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

WINJS

Page 24: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

Windows Library for JavaScript (WinJS)library for building apps using JavaScript

Web technologies you’re already familiar with

Utilities and patterns for responsive, reliable apps

Use interactive design tools

Build your apps fast and with high quality

Matches the Windows 8 design style

Controls for common user experiences

Designed for touch as well as traditional input

Scales across form factors

Make your apps look and feel great

Page 25: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

WinJS

Helpers for Namespaces, Constructor Definition

Promises

App Model

Navigation

Page & User controls

Data binding

Controls

Animations

Templates

Utilities

Default CSS Styles

Page 26: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

WinJS controls SettingsFlyout

Flyout

Semantic Zoom

Flipview

SemanticZoomListview

Menu

Rating

Slide does not include all WinJS controls (App Bar, Tooltip, ViewBox, ToggleSwitch, HTMLControl, etc.)

DatePicker

Page 27: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

Porting HTML5

demo

Page 28: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

Prefer your own library? Go ahead!

• Adhere to the Windows UI and personality

• Understand our web context & sandboxing model

• Mix & match works fine

Page 29: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

You can build amazing sites and apps with the Windows 8 web platform

Page 30: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

dev.windows.com

Page 31: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

The Developer Movement is giving you the chance!

Ready to create the next app phenomenon?

DeveloperMovement.ca/APPS

Page 32: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

About

• Publish awesome Windows apps• And collect points every step of the way to redeem great rewards like a pair of Monster Headphones and much more! Victory is only an app away. It’s time to make yours the next big thing!

Join The Developer Movement now!

DeveloperMovement.ca/APPS

Page 33: DevTeach Montreal - 2012-12-11 - Windows 8 & HTML5: friends with benefits

QuestionsFrédéric Harper

[email protected]

@fharper

http://webnotwar.ca

http://outofcomfortzone.net