Creating User Interfaces

Slides:



Advertisements
Similar presentations
CSCI 3100 Tutorial 6 Web Development Tools 1 Cuiyun GAO 1.
Advertisements

Introduction to HTML5 Programming donghao. HTML5 is the New HTML Standard New Elements, Attributes. Full CSS3 Support Video and Audio 2D/3D Graphics Local.
The E/R model, triggers, HTML5 Reminder … next Tuesday is the first exam. 1.
Understand Web Page Development Software Development Fundamentals LESSON 4.1.
HTML 5 The next generation of web programming. WHERE IT ALL BEGAN.
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
Where Do I Start REFERENCE: LEARNING WEB DESIGN (4 TH EDITION) BY ROBBINS 2012 – CHAPTER 1 (PP. 3 – 14)
Development of mobile applications using PhoneGap and HTML 5
HTML 5 New Standardization of HTML. I NTRODUCTION HTML5 is The New HTML Standard, New Elements New Attributes Full CSS3 Support Video and Audio 2D/3D.
Director of Computer Center, DaYeh University Ku-Yaw Chang.
HTML5 Accessibility Ted Drake, Yahoo! Accessibility Lab Slideshare.net/7mary4.
Computer Concepts 2014 Chapter 7 The Web and .
INTRODUCTION TO DHTML. TOPICS TO BE DISCUSSED……….  Introduction Introduction  UsesUses  ComponentsComponents  Difference between HTML and DHTMLDifference.
Create Interfaces College exercise. Continue HTML5: HTML5 logo, drawing images. Coin toss. Homework: acquire video & audio.
Introduction to course. Refresher on client/server; JavaScript.
GIS technologies and Web Mapping Services
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
Programming Games Recap on Google Maps. Creating elements. Dynamic creation of elements (multiple video elements). Geolocation. Classwork/Homework: Catch-up.
Chapter 6 The World Wide Web. Web Pages Each page is an interactive multimedia publication It can include: text, graphics, music and videos Pages are.
Programming games Examples: Audio example. Google Maps api. Classwork: show more complex video. Classwork/Homework: Find place (lat and long) for basic.
Advanced Level Course. Site Extras Site Extras consist of four categories: Stationeries Site Trash Designs Components.
Creating Web Documents XHTML Project II topics should be posted Start Forms Homework: Forms not required for midterm or project 2. At some point, read.
Getting Started with Canvas IDIA Spring 2013 Bridget M. Blodgett.
Programming Games Google Map API examples. CSS. Classwork/homework: Catch up. Upload work. Show your [more] complex Google Maps API example. Plan your.
HTML5 for Mobile Andrew Kinai. HTML vs HTML5 HTML:A language that describes documents' formatting and content, which is basically composed of static text.
HTML5. HTML5’s overall theme The browser as a rich application platform rich, cross-device user interfaces offline operation capability hardware access.
Programming Games Show your simple video. More video examples. Audio. Classwork/Homework: Produce more complex video program.
Congratulations! You are part of a global community of thousands of web developers who attend Web Camps to keep their web development skills up-to-date.
Programming Games Reprise: storage, datatypes. Geolocation/Google API example. Work session Homework: [Catch up. Upload work. Post proposal.] Work on your.
Creating User Interfaces Recap HTML/HTML5 JavaScript features Homework: keep working on user observation studies. Review JavaScript.
Session: 1. © Aptech Ltd. 2Introduction to the Web / Session 1  Explain the evolution of HTML  Explain the page structure used by HTML  List the drawbacks.
CHAPTER 15 HTML 5 VIDEO AND AUDIO Intro to HTML5 1.
Types of Spatial Data Sites Data portals: Find and download data –Humboldt County, National Atlas “Atlases”: General information –GoogleMaps, MapQuest.
Programming games Context of what we are doing. Drawing on canvas. Homework: [Complete coin toss examples.] Do your own drawings. Upload files to website.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
HTML 5 The Future of Web Development. What is HTML5? “HTML5 is a specification of how the web’s core language, HTML, should be formatted and utilized.
Creating Animations, Working with Graphics, and Accessing Data Lesson 9.
Presented By Nanda Kumar(972789) P. Trinesh (982816) Sk. Salma (982824) K. Madhuri (982814) HTML5.
(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.
Learning Aim B.  It is a good idea to think carefully about the design of a website before you try to implement it.
Web Design Terminology Unit 2 STEM. 1. Accessibility – a web page or site that address the users limitations or disabilities 2. Active server page (ASP)
IN THIS LESSON WE WILL REVIEW THE STRUCTURE OF THE INTERNET AND HOW BROWSERS ASSEMBLE WEBSITES BASED ON INSTRUCTIONS THEY RECEIVE FROM SERVERS. Internet.
® ® copyright © 2013 Open Geospatial Consortium What HTML5 and REST mean to the Geo community Raj Singh, PhD Open Geospatial Consortium
Creating User Interfaces Reprise on guest speaker. Usability checklists. Reprise on user- centered. Semantic tags. Responsive design. Classwork/homework:
introductionwhyexamples What is a Web site? A web site is: a presentation tool; a way to communicate; a learning tool; a teaching tool; a marketing important.
TNPW1 Ing. Jiří Štěpánek.  In current version (XHTML 1.0 strict)  No multimedia elements  No semantics elements  Only few input types  Only few document.
4.3. Code animations by using JavaScript Access data access by using JavaScript. Creating Animations, Working with Graphics, and Accessing Data.
Creating Databases Example using Google Maps API + file creation. Dollar sign problem. Classwork/Homework: [catch up]. Work on final project.
The HTML5 logo was introduced by W3C in 2010
Chapter 17 The Need for HTML 5.
Project 1 Introduction to HTML.
Objective % Select and utilize tools to design and develop websites.
Internet of the Past.
Human Computer Interaction
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
HTML5 – The Saga Continues
Application with Cross-Platform GUI
Objective % Select and utilize tools to design and develop websites.
Introduction to D3.js and Bar Chart in D3.js
Chapter 27 WWW and HTTP.
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
Types of Spatial Data Sites
Teaching slides Chapter 6.
Types of Spatial Data Sites
Giuseppe Attardi Università di Pisa
Catchup. Work on project.
Types of Spatial Data Sites
Show your animation project. HTML5 video. Miro.
Presentation transcript:

Creating User Interfaces Recap HTML/HTML5 JavaScript features Homework: keep working on user observation studies. Review JavaScript

HTML5 & JavaScript semantic elements canvas video and audio localStorage Distinct from HTML5 geolocation and use of Google Maps API Scalar Vector Graphics

Aside Many sources I learn by doing examples and examining examples, so that is what I do here The final project is to be done in HTML and JavaScript (or Processing JS. Show next class.) Teaching something. You can specify the browser. You can restrict yourself to desktop computer or not. Getting something to work on mobile is a challenge.

Semantic elements To make document clearer for you and for teams Replacement for some uses of <div id="thing">….</div> Need to format in the <style> section Note: there are new CSS elements, including transformations

Style In <style> element article {display:block; font-family:Impact, Charcoal, sans-serif; margin:20px;} Note: fonts with spaces in names need quotation marks: "Times New Roman" Names change when used by JavaScript fontFamily, zIndex

canvas Rectangles Paths (including arcs): stroke or fill Images Frames from video Portions of other canvases Can also transform coordinates

Drawing on canvas canvasref = document.getElementById("mycanvas"); ctx = canvasref.getContext("2d"); var flower = Image(); flower.src="tulip.jpg"; ctx.drawImage(flower, potx, poty, 100,200); ctx.fillStyle="rgb(100,0,100)"; ctx.fillRect(300,200,120,200);

For your project You need to think if and how you are going to use canvas One canvas element or multiple elements Canvas elements in fixed location or moving around Way to do animation Drawing and clearing and re-drawing, or not

Video and Audio Native support as opposed to requiring plugin Now: different in different browsers, but this can be managed by making multiple copies Dynamic control, including Placing on screen Starting and stopping Multiple video and/or audio elements or not May need to be concerned with time for downloading

Interlude Standard web applications are stateless. But, what if you want (need) to save information One approach: save small amount of data on the client computer. Cookies Another approach, store data on the server Formal database or something else Commercial: Creating Databases for Web Applications, probably next Spring.

localStorage Like cookies: store information on client computer Accessed by program (document) from same site If (localStorage.oldlat) { var oldlat=Number(localStorage.oldlat); … } localStorage.oldlat = String(mylat);

Geolocation and Google Maps API Geolocation: returns location! Must be ok'ed by user unless all permission given. Can be used with Google Maps API to bring in a map Get a street address Can be combined with canvas

Geolocation Is not synchronous. That is, it is an asynchronous operation, setting up callbacks. Note: this is another example of event handling (see next chart) Your code sets up so that the browser performs a task and, depending on success or failure, the function you designate is invoked.

Events Mouse down on canvas canvas.addEventListener('mousedown',startreveal,true); http://faculty.purchase.edu/jeanine.meyer/html5/uncoverA.html http://faculty.purchase.edu/jeanine.meyer/html5/movingpictures.html Click on a Google Map (use autonymous function) listener=google.maps.event.addListener(map,'click', function(event){ resetnow(event.latLng); }); http://faculty.purchase.edu/jeanine.meyer/html5/geolocationlocalstorage.html Timing tid=setInterval(playback,20); See http://faculty.purchase.edu/jeanine.meyer/html5/eyesfollowrecord.html

Scalar Vector Graphics Distinct way to describe hierarchy of paths and shapes Special language Can make dynamic Compare http://faculty.purchase.edu/jeanine.meyer/html5/html5logoscalesvg.html http://faculty.purchase.edu/jeanine.meyer/html5/html5logoscale.html

SVG Includes ability to specify Bezier curves See Daddy Joe example: http://faculty.purchase.edu/jeanine.meyer/html5/littlejoesvg2.html Article: http://faculty.purchase.edu/jeanine.meyer/svgAug2012.pdf

More Examples Go to http://faculty.purchase.edu/jeanine.meyer/morehtml5examples.html Pick examples to examine…

Advice Before plunging into coding, think about What are elements on screen Dynamic versus static What are the states of the application What information is to be stored and where What are the critical events Your user (in this case, student) does something Others

Homework Keep work on User Observation Study Keep reviewing HTML, HTML5 and JavaScript Identify and post to the Sources and Sites forum a unique favorite site for JavaScript help and say what makes it good! OR plan to do project using Processing, and then use Processing JS to make it run on browser.