Progress <progress value="22" max="100"></progress>

Slides:



Advertisements
Similar presentations
CS 142 Lecture Notes: EventsSlide 1 Access to Event Object ● event variable (HTML): ● Passed as argument to function (DOM/Firefox): element.onclick = mouseClick;
Advertisements

HTML5 Overview HOANGPT2. 1. General 2. New Elements List 3.
Backwards Compatible HTML5/CSS3 Apps in ASP.NET Nik Kalyani, Founder/CEO, HyperCrunch, Inc.
MASTERY OBJECTIVE: Learn parts of an html document Learn basic html tags HTML-An Introduction.
Neal Stublen Why Use a Canvas?  Flexibility… Use of drawing primitives (lines, arcs, text) Direct access to element display pixels.
Programming Club IIT Kanpur
HTML 5 Previous version: HTML4.01, 1999 Still work in progress, most browsers support some of it.
HTML 5 The next generation of web programming. WHERE IT ALL BEGAN.
Dongseop Kim.  Purpose of HTML 5  Semantic Mark up  Web Form Function  Support Rich Web Application.
CANVAS Fundamentals. What is Canvas? Canvas is a medium for oil painting. One of the earliest oils on canvas is a French Madonna from Canvas is.
CHAPTER 21 INTRODUCING THE HTML 5 CANVAS. LEARNING OBJECTIVES How to create a canvas using the and tag pair How to test if a browser supports canvas operations.
Canvas, SVG, Workers Doncho Minkov Telerik Corporation
Web Programming Language Week 13 Ken Cosh HTML 5.
Naveen Prabhu Quadwave Consulting Pvt.Ltd.. Agenda  HTML 5 – The Standards  Browsers and HTML5 support  HTML5 Learnability  Perspectives of Web Designer,
INTRODUCTION TO HTML5 Drag and Drop in HTML5. Browsers Support  Currently, most of the major HTML5 desktop web browsers support the new HTML5 drag-and-drop.
HTML5 Internet Engineering Spring 2014 Bahador Bakhshi CE & IT Department, Amirkabir University of Technology.
IT Engineering I Instructor: Rezvan Shiravi
HTML5 Accessibility Ted Drake, Yahoo! Accessibility Lab Slideshare.net/7mary4.
@ 翁玉礼 HTML5 Discuss. Compare to html4 Canvas Video and audio Local offline store New form control.
CS 215 Web Oriented Programming Review Dr. Orland Hoeber orland
Getting Started with Canvas IDIA Spring 2013 Bridget M. Blodgett.
Patrick Chanezon (slides from Matthew Papakipos) June Google’s HTML5 Work: What’s Next?
HTML5 CANVAS. SAVING INFORMATION BETWEEN FUNCTION CALLS.
Canvas academy.zariba.com 1. Lecture Content 1.What is Canvas? 2.Including Canvas in your HTML 3.Commands in Canvas 4.Drawing Shapes with Canvas 5.Animations.
Introduction What is it? What does this mean? Features Animated Logo Html5 Flash Canvas Tunneler Html5 Animation Html5 Canvas Caching.
Proglan Session 1. .  HTML5 will be the new standard for HTML.  The previous version of HTML, HTML 4.01, came in The web has changed a lot since.
Code for touch, get mouse and pen for free Pointer API captures pen motion, passing coordinates to Ink API Ink API helps render and stores motion.
New Tags, New Attributes, New JavaScript APIs, Forms, Validation, Audio, Video, SVG, Canvas Doncho Minkov Telerik Corporation
Session: 19. © Aptech Ltd. 2HTML5 Geolocation and APIs / Session 19  Explain geolocation and its use in HTML5  Explain the Google Maps API  Explain.
CS 174: Web Programming October 5 Class Meeting Department of Computer Science San Jose State University Fall 2015 Instructor: Ron Mak
Wednesday 5 December 2012 Part II. Wednesday 5 December Make an Element Draggable What to Drag - ondragstart and setData() Where to Drop - ondragover.
CHAPTER 22 ADVANCED CANVAS PROGRAMMING. LEARNING OBJECTIVES How the HTML 5 canvas supports linear and radial gradients How to fill a shape with a pattern.
Pick One by David Matthews
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 12.
Event Handling (the right way). A Simple Web Page Events - Summary The web page looks like this:
Rich Internet Applications 9. HTML 5 and RIAs. HTML 5 Standard currently under development by W3C Aims to improve the language with support for the latest.
Lab 5: More on Events and Introduction to the Canvas Tag User Interface Lab: GUI Lab Sep. 23 rd, 2013.
(1) HTML5, CSS, Twitter Bootstrap. (2) HTML5 Will be the new standard New features Drag and Drop and Support for local storage,,,, New input types Removed.
Can SAS Do Canvas? Creating Graphs Using HTML 5 Canvas Elements Edwin J. van Stein Astellas Pharma Global Development.
07 – HTML5 Canvas (1) Informatics Department Parahyangan Catholic University.
SE-2840 Dr. Mark L. Hornick 1 Dynamic HTML Handling events from DOM objects.
Why is HTML5 a buzz word? Is HTML5 really a technology worth talking?
CHAP 2. CANVAS API.  Dynamically generate and render graphics, charts, images and animations  SVG (Scalable Vector Graphics) vs. Canvas  Bitmap canvas.
Development of Internet Applications HTML5 Ing. Jan Janoušek 7.
XHTML. What Is XHTML? XHTML stands for EXtensible HyperText Markup Language XHTML is almost identical to HTML XHTML is stricter than HTML XHTML is HTML.
Introduction to Web Programming for Visualization
Chapter 4: Feature Detection & Drag and Drop
Drag-and-Drop By Michelle
Pick One by David Matthews
Introduction to HTML5.
Intro to JavaScript CS 1150 Spring 2017.
Web Programming Language
COMP3220 Web Infrastructure COMP6218 Web Architecture
Introduction to Programming the WWW I
. - t !!l t. - 1f1f J - /\/\ - ' I __.
Programming Games Mouse position. Examples. Review for final quiz.
The Canvas.
Event Driven Programming & User Defined Functions
Step 1 Click on VM icon.
.. '.. ' 'i.., \. J'.....,....., ,., ,,.. '"'". ' · · f.. -··-·· '.,.. \...,., '.··.. ! f.f.
Drag-and-Drop Processing
Simple Canvas Example Your browser doesn’t support canvases var canvas = document.getElementById("canvas1"); var context.
CSc 337 Lecture 21: Canvas.
Events: Changed and Input
Brandon Roman CS300.
CSc 337 Lecture 20: Canvas.
CSc 337 Lecture 19: Canvas.
Developed by GROUP #.... PLATFORM CANVAS Customer segment #1
HTML5 – A few features L. Grewe.
Presentation transcript:

Progress <progress value="22" max="100"></progress> CS 142 Lecture Notes: HTML5

Web Storage localStorage.setItem("state", "California"); localStorage.getItem("state"); localStorage.removeItem("state"); localStorage.state = "Missouri"; CS 142 Lecture Notes: HTML5

Drag and Drop Mark elements draggable: New events: <img draggable="true"> New events: ondragstart: when user “picks” up object to drag ondragover: when user drags object over an HTML element ondrop: when user drops object Passing information from source to target: One or more type-value pairs In ondragstart handler: event.dataTransfer.setData(type, value); In ondragover and ondrop handlers: var value = event.dataTransfer.getData(type); CS 142 Lecture Notes: HTML5

CS 142 Lecture Notes: HTML5

Simple Canvas Example <canvas id="canvas1"> Your browser doesn’t support canvases </canvas> var canvas = document.getElementById("canvas1"); var context = canvas.getContext("2d"); context.strokeStyle = "#ff0000"; context.lineWidth = 8; context.beginPath(); context.moveTo(50, 100); context.lineTo(200, 100); context.lineTo(200, 50); context.lineTo(150, 50); context.lineTo(150, 150); context.stroke(); 100 50 CS 142 Lecture Notes: HTML5

More Complex Canvas Example CS 142 Lecture Notes: HTML5