Chapter 13 HTML5 Functions
|
|
- Roxanne York
- 5 years ago
- Views:
Transcription
1 Sungkyunkwan University Chapter 13 HTML5 Functions Prepared by H. Ahn and H. Choo Web Programming Copyright Networking Laboratory Copyright Networking Laboratory Networking Laboratory 1/50
2 Chapter 13 Outline 13.1 SVG 13.2 Drag-and-drop 13.3 HTML5 Geolocation 13.4 HTML5 Web Worker Web Programming Networking Laboratory 2/50
3 13.1 SVG Scalable Vector Graphics (SVG) is an XML-based vector image format SVG is used to define vector-based graphics on the Web SVG is recommended by W3C since 1999 Web Programming Networking Laboratory 3/50
4 13.1 SVG SVG graphics don t lose quality when enlarged or resized All elements and attributes in an SVG file are animatable SVG images can be created and edited with any text editor Web Programming Networking Laboratory 4/50
5 13.1 SVG Difference between SVG and Canvas SVG is a language for describing 2D graphics in XML SVG is XML based, which means that every element is available within the SVG DOM In SVG, each drawn shape is remembered as an object If attributes of an SVG object are changed, the browser can automatically re-render the shape Canvas draws 2D graphics, on the fly with a JavaScript Canvas is rendered pixel by pixel In canvas, once the graphic is drawn, it is forgotten by the browser If its position should be changed, the entire scene needs to be redrawn, including any objects that might have been covered by the graphic Web Programming Networking Laboratory 5/50
6 13.1 SVG Difference between SVG and Canvas SVG Canvas 500% Scale 500% Scale Web Programming Networking Laboratory 6/50
7 13.1 SVG Circle Example <!DOCTYPE html> <html> <body> <svg width="100" height="100"> <circle cx="50" cy="50" r="40" stroke="green" strokewidth="4" fill="yellow" /> </svg> </body> </html> Web Programming Networking Laboratory 7/50
8 13.1 SVG Circle Example fill="red" fill="blue" Web Programming Networking Laboratory 8/50
9 13.1 SVG Rectangle Example <!DOCTYPE html> <html> <body> <svg width="400" height="100"> <rect width="400" height="100" style="fill:rgb(0,0,255);stroke -width:10;stroke:rgb(0,0,0)" /> </svg> </body> </html> Web Programming Networking Laboratory 9/50
10 13.1 SVG Rectangle Example Web Programming Networking Laboratory 10/50
11 13.1 SVG Rounded Rectangle Example <!DOCTYPE html> <html> <body> <svg width="400" height="180"> <rect x="50" y="20" rx="20" ry="20" width="150" height="150" style="fill:red;stroke:black;stroke-width:5;opacity:0.5" /> </svg> </body> </html> Web Programming Networking Laboratory 11/50
12 13.1 SVG Rounded Rectangle Example rx="20" ry="20" rx="50" ry="50" rx="100" ry="100" Web Programming Networking Laboratory 12/50
13 13.1 SVG Polygon Example <!DOCTYPE html> <html> <body> <svg width="300" height="300"> <polygon points="100,20 250, ,210" style="fill: red; stroke: black; stroke-width: 3" /> </svg> </body> </html> Web Programming Networking Laboratory 13/50
14 13.1 SVG Polygon Example Web Programming Networking Laboratory 14/50
15 13.1 SVG Logo Example <!DOCTYPE html> <html> <body> <svg height="130" width="500"> <defs> <lineargradient id="grad1" x1="0%" y1="0%" x2="100%" y2="0%"> <stop offset="0%" style="stop-color:rgb(255,255,0);stopopacity:1" /> <stop offset="100%" style="stop-color:rgb(255,0,0);stopopacity:1" /> </lineargradient> </defs> <ellipse cx="100" cy="70" rx="85" ry="55" fill="url(#grad1)" /> <text fill="#ffffff" font-size="45" fontfamily="verdana" x= 40" y="86">skku</text> </svg> </body> </html> Web Programming Networking Laboratory 15/50
16 13.1 SVG Logo Example Web Programming Networking Laboratory 16/50
17 13.1 SVG Polyline Example <!DOCTYPE html> <html> <body> <svg> <polyline points="10,10 150,20 180,70 230,80" style="fill: none; stroke: red; stroke-width: 3" /> </svg> </body> </html> Web Programming Networking Laboratory 17/50
18 13.1 SVG Polyline Example Web Programming Networking Laboratory 18/50
19 13.1 SVG Animation Example <!DOCTYPE html> <html> <body> <svg> <rect width="100" height="100" fill="red"> <animate attributename="height" from="0" to="100" dur="10s" /> </rect> </svg> </body> </html> Web Programming Networking Laboratory 19/50
20 13.1 SVG Animation Example Web Programming Networking Laboratory 20/50
21 13.1 SVG Animation Example <!DOCTYPE html> <html> <body> <svg height="500" width="500"> <circle r="100" cx="150" cy="110" fill="slategrey" stroke="#000" stroke-width="7"> <animate attributename="r" from="0" to="100" dur="3s" /> <animate attributename="cx" from="50" to="150" dur="3s" /> </circle> </svg> </body> </html> Web Programming Networking Laboratory 21/50
22 13.1 SVG Animation Example Web Programming Networking Laboratory 22/50
23 13.2 Drag and Drop Drag and drop is one of the most popular user interfaces in Windows Dragging an object to another application with the mouse In HTML5, drag and drop is part of the standard: Any element can be draggable Drag Drop Web Programming Networking Laboratory 23/50
24 13.2 Drag and Drop Events Drag source Passing elements Drop target Web Programming Networking Laboratory 24/50
25 13.2 Drag and Drop Example <!DOCTYPE html> <html> <head> <style> #shopping_cart { width: 450px; height: 100px; padding: 10px; border: 1px dotted red; } </style> <script> function allowdrop(e) { e.preventdefault(); } Web Programming Networking Laboratory 25/50
26 13.2 Drag and Drop Example function handledragstart(e) { e.datatransfer.effectallowed = 'move'; e.datatransfer.setdata("text", e.target.id); } function handledrop(e) { e.preventdefault(); var src = e.datatransfer.getdata("text"); e.target.appendchild(document.getelementbyid(src)); } </script> </head> Web Programming Networking Laboratory 26/50
27 13.2 Drag and Drop Example <body> <p>move things by dragging.</p> <div id="shopping_cart" ondrop="handledrop(event)" ondragover="allowdrop(event)"></div> <br> <img id="img1" src="tv.png" draggable="true" ondragstart="handledragstart(event)" width="150" height="100"> <img id="img2" src="audio.png" draggable="true" ondragstart="handledragstart(event)" width="150" height="100"> <img id="img3" src="camera.png" draggable="true" ondragstart="handledragstart(event)" width="150" height="100"> </body> </html> Web Programming Networking Laboratory 27/50
28 13.2 Drag and Drop Example - Result Web Programming Networking Laboratory 28/50
29 13.2 Drag and Drop Example - Result Web Programming Networking Laboratory 29/50
30 13.3 HTML5 Geolocation The HTML Geolocation API is used to get the geographical position of a user Geolocation allows you to share your location with a website Web Programming Networking Laboratory 30/50
31 13.3 HTML5 Geolocation Geolocation Object var geolocation = navigator.geolocation; Method getcurrentposition() watchposition() clearwatch Description Returns the user's position Returns the current position of the user and continues to return updated position as the user moves Stops the watchposition() method Web Programming Networking Laboratory 31/50
32 13.3 HTML5 Geolocation Example <!DOCTYPE html> <html> <body> <script> <p>click the button to get your coordinates.</p> <button onclick="getlocation()">try It</button> <p id="demo"></p> var x = document.getelementbyid("demo"); function getlocation() { if (navigator.geolocation) { navigator.geolocation.getcurrentposition(showposition); } else { Web Programming Networking Laboratory 32/50
33 13.3 HTML5 Geolocation Example x.innerhtml = "Geolocation is not supported by this browser."; } } function showposition(position) { x.innerhtml = "Latitude: " + position.coords.latitude + "<br>longitude: " + position.coords.longitude; } </script> </body> </html> Web Programming Networking Laboratory 33/50
34 13.3 HTML5 Geolocation Example Web Programming Networking Laboratory 34/50
35 13.3 HTML5 Geolocation Example - Mark on a map <!DOCTYPE html> <html> <body> <p id="demo">click the button to get your position.</p> <button onclick="getlocation()">try It</button> <div id="mapholder"></div> <script> var x = document.getelementbyid("demo"); function getlocation() { if (navigator.geolocation) { navigator.geolocation.watchposition(showposition); } else { x.innerhtml = "Geolocation is not supported by this browser."; } } Web Programming Networking Laboratory 35/50
36 13.3 HTML5 Geolocation Example - Mark on a map function showposition(position) { var latlon = position.coords.latitude + "," + position.coords.longitude; var img_url = " +latlon+"&zoom=14&size=400x300&key=aizasybu- 916DdpKAjTmJNIgngS6HL_kDIKU0aU"; document.getelementbyid("mapholder").innerhtml = "<img src='"+img_url+"'>"; } function showerror(error) { switch(error.code) { case error.permission_denied: x.innerhtml = "User denied the request for Geolocation." break; Web Programming Networking Laboratory 36/50
37 13.3 HTML5 Geolocation Example - Mark on a map case error.position_unavailable: x.innerhtml = "Location information is unavailable." break; case error.timeout: x.innerhtml = "The request to get user location timed out." break; case error.unknown_error: x.innerhtml = "An unknown error occurred." break; } } </script> </body> </html> Web Programming Networking Laboratory 37/50
38 13.3 HTML5 Geolocation Example - Result Web Programming Networking Laboratory 38/50
39 13.3 HTML5 Geolocation The getcurrentposition() Method Property coords.latitude coords.longitude coords.accuracy coords.altitude coords.altitudeacc uracy coords.heading coords.speed timestamp Returns The latitude as a decimal number (always returned) The longitude as a decimal number (always returned) The accuracy of position (always returned) The altitude in meters above the mean sea level (returned if available) The altitude accuracy of position (returned if available) The heading as degrees clockwise from North (returned if available) The speed in meters per second (returned if available) The date/time of the response (returned if available) Web Programming Networking Laboratory 39/50
40 13.3 HTML5 Geolocation Get Location while Moving Call watchposition() on geolocation object watchposition(): Returns the current position of the user and continues to return updated position as the user moves (like the GPS in a car). clearwatch(): stops the watchposition () method Web Programming Networking Laboratory 40/50
41 13.3 HTML5 Geolocation Get Location while Moving <!DOCTYPE html> <html> <body> <button onclick="startgeolocation()"> 위치정보시작 </button> <button onclick="stopgeolocation()"> 위치정보중지 </button> <div id="target"></div> <script> var id; var mydiv = document.getelementbyid("target"); function startgeolocation() { if (navigator.geolocation) { id = navigator.geolocation.watchposition(showgeolocation); } } Web Programming Networking Laboratory 41/50
42 13.3 HTML5 Geolocation Get Location while Moving function showgeolocation(location) { mydiv.innerhtml = "( 위도 : " + location.coords.latitude + ", 경도 : " + location.coords.longitude + ")"; } function stopgeolocation() { if (navigator.geolocation) { navigator.geolocation.clearwatch(id); } } </script> </body> </html> Web Programming Networking Laboratory 42/50
43 13.3 HTML5 Geolocation Get Location while Moving It keep update the current position until the user stops Web Programming Networking Laboratory 43/50
44 13.4 HTML5 Web Worker When executing scripts in an HTML page, the page becomes unresponsive until the script is finished A web worker is a JavaScript that runs in the background, without affecting the performance of the page Users can continue to do whatever they want: Clicking, selecting things, etc., while the web worker runs in the background Web Programming Networking Laboratory 44/50
45 13.4 HTML5 Web Worker Counting Example // worker.js // javascropt source to find prime number var i = 0; function timedcount() { i = i + 1; postmessage(i); settimeout("timedcount()",500); } timedcount(); Web Programming Networking Laboratory 45/50
46 13.4 HTML5 Web Worker Counting Example <!DOCTYPE html> <html> <body> <p>count numbers: <output id="result"></output></p> <button onclick="startworker()">start Worker</button> <button onclick="stopworker()">stop Worker</button> <script> var w; function startworker() { if(typeof(worker)!== "undefined") { if(typeof(w) == "undefined") { w = new Worker("worker.js"); } w.onmessage = function(event) { Web Programming Networking Laboratory 46/50
47 13.4 HTML5 Web Worker Counting Example document.getelementbyid("result").innerhtml = event.data; }; } else { document.getelementbyid("result").innerhtml = "Sorry, your browser does not support Web Workers..."; } } function stopworker() { w.terminate(); w = undefined; } </script> </body> </html> Web Programming Networking Laboratory 47/50
48 13.4 HTML5 Web Worker Counting Example Web Programming Networking Laboratory 48/50
49 13.4 HTML5 Web Worker Finding Prime Number Example // worker2.js // javascript source to find prime number var n = 1; search: while (true) { n += 1; for (var i = 2; i <= Math.sqrt(n) ; i += 1) if (n % i == 0) continue search; // deliver prime number to a web page whenever it finds it postmessage(n); } Web Programming Networking Laboratory 49/50
50 13.4 HTML5 Web Worker Example Find Prime Number Web Programming Networking Laboratory 50/50
CSCU9B2 Practical 8: Location-Aware Web Pages NOT USED (DOES NOT ALL WORK AS ADVERTISED)
CSCU9B2 Practical 8: Location-Aware Web Pages NOT USED (DOES NOT ALL WORK AS ADVERTISED) Aims: To use JavaScript to make use of location information. This practical is really for those who need a little
More informationHTML5. Language of the Modern Web. By: Mayur Agrawal. Copyright TIBCO Software Inc.
HTML5 Language of the Modern Web By: Mayur Agrawal Copyright 2000-2015 TIBCO Software Inc. Content Exploring prior standards Why HTML5? HTML5 vs HTML4 Key Features of HTML5 HTML5 and Technical Writing
More informationDeveloping Location based Web Applications with W3C HTML5 Geolocation
International Journal of Interdisciplinary and Multidisciplinary Studies (IJIMS), 2017, Vol 4, No.3,179-185. 179 Available online at http://www.ijims.com ISSN - (Print): 2519 7908 ; ISSN - (Electronic):
More information/
HTML5 Audio & Video HTML5 introduced the element to include audio files in your pages. The element has a number of attributes which allow you to control audio playback: src This
More informationHTML5 - SVG. SVG is mostly useful for vector type diagrams like Pie charts, Two-dimensional graphs in an X,Y coordinate system etc.
http://www.tutorialspoint.com/html5/html5_svg.htm HTML5 - SVG Copyright tutorialspoint.com SVG stands for Scalable Vector Graphics and it is a language for describing 2D-graphics and graphical applications
More informationScalable Vector Graphics (SVG) vector image World Wide Web Consortium (W3C) defined with XML searched indexed scripted compressed Mozilla Firefox
SVG SVG Scalable Vector Graphics (SVG) is an XML-based vector image format for twodimensional graphics with support for interactivity and animation. The SVG specification is an open standard developed
More information16. HTML5, HTML Graphics, & HTML Media 웹프로그래밍 2016 년 1 학기 충남대학교컴퓨터공학과
16. HTML5, HTML Graphics, & HTML Media 웹프로그래밍 2016 년 1 학기 충남대학교컴퓨터공학과 목차 HTML5 Introduction HTML5 Browser Support HTML5 Semantic Elements HTML5 Canvas HTML5 SVG HTML5 Multimedia 2 HTML5 Introduction What
More informationIntroduction to HTML 5. Brad Neuberg Developer Programs, Google
Introduction to HTML 5 Brad Neuberg Developer Programs, Google The Web Platform is Accelerating User Experience XHR CSS DOM HTML iphone 2.2: Nov 22, 2008 canvas app cache database SVG Safari 4.0b: Feb
More informationWhat is HTML5? The previous version of HTML came in The web has changed a lot since then.
What is HTML5? HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML came in 1999. The web has changed a lot since then. HTML5 is still a work in progress. However,
More informationScalable Vector Graphics SVG
LECTURE 7 Scalable Vector Graphics SVG CS 5513 Multimedia Systems Spring 2009 Imran Ihsan Principal Design Consultant OPUSVII www.opuseven.com Faculty of Engineering & Applied Sciences What is SVG? SVG
More informationData Visualization (DSC 530/CIS )
Data Visualization (DSC 530/CIS 602-02) Web Programming Dr. David Koop 2 What languages do we use on the Web? 3 Languages of the Web HTML CSS SVG JavaScript - Versions of Javascript: ES6, ES2015, ES2017
More informationScalable Vector Graphics commonly known as SVG is a XML based format to draw vector images. It is used to draw twodimentional vector images.
About the Tutorial Scalable Vector Graphics commonly known as SVG is a XML based format to draw vector images. It is used to draw twodimentional vector images. This tutorial will teach you basics of SVG.
More informationTUTORIAL: D3 (1) Basics. Christoph Kralj Manfred Klaffenböck
TUTORIAL: D3 (1) Basics Christoph Kralj christoph.kralj@univie.ac.at Manfred Klaffenböck manfred.klaffenboeck@univie.ac.at Overview Our goal is to create interactive visualizations viewable in your, or
More informationData Visualization (DSC 530/CIS )
Data Visualization (DSC 530/CIS 602-01) HTML, CSS, & SVG Dr. David Koop Data Visualization What is it? How does it differ from computer graphics? What types of data can we visualize? What tasks can we
More informationMaurizio Tesconi 24 marzo 2015
Maurizio Tesconi 24 marzo 2015 Raster graphics images Lossy (jpeg, jpeg2000) Lossless (gif, png, >ff, ) Fixed resolu>on Can be very large Original informa>on is lost Difficult to add metadata Difficult
More informationHTML5. HTML5 Introduction. Form Input Types. Semantic Elements. Form Attributes. Form Elements. Month Number Range Search Tel Url Time Week
WEB DESIGNING HTML HTML - Introduction HTML - Elements HTML - Tags HTML - Text HTML - Formatting HTML - Pre HTML - Attributes HTML - Font HTML - Text Links HTML - Comments HTML - Lists HTML - Images HTML
More informationSlug: HTML5 for Mobile Web Applications, ISBN number, 23! kyrnin hour23-code.doc
Slug: HTML5 for Mobile Web Applications, ISBN number, 23! kyrnin hour23-code.doc Hour 23 Code to detect support for GeoLocation, simply detect if the browser has that object: function supports_geolocation()
More informationData Visualization (DSC 530/CIS )
Data Visualization (DSC 530/CIS 60201) CSS, SVG, and JavaScript Dr. David Koop Definition of Visualization Computerbased visualization systems provide visual representations of datasets designed to help
More informationTechno Expert Solutions An institute for specialized studies!
HTML5 and CSS3 Course Content to WEB W3C and W3C Members Why WHATWG? What is Web? HTML Basics Parts in HTML Document Editors Basic Elements Attributes Headings Basics Paragraphs Formatting Links Head CSS
More informationIAT 355 : Lab 01. Web Basics
IAT 355 : Lab 01 Web Basics Overview HTML CSS Javascript HTML & Graphics HTML - the language for the content of a webpage a Web Page put css rules here
More informationCS474 MULTIMEDIA TECHNOLOGY
CS474 MULTIMEDIA TECHNOLOGY Pr. G. Tziritas, Spring 2018 SVG Animation Tutorial G. Simantiris (TA) OVERVIEW Introduction Definitions SVG Creating SVGs SVG basics Examples Animation using software Examples
More informationIntroduction to WEB PROGRAMMING
Introduction to WEB PROGRAMMING Web Languages: Overview HTML CSS JavaScript content structure look & feel transitions/animation s (CSS3) interaction animation server communication Full-Stack Web Frameworks
More informationHTML5, CSS3, JQUERY SYLLABUS
HTML5, CSS3, JQUERY SYLLABUS AAvhdvchdvchdvhdh HTML HTML - Introduction HTML - Elements HTML - Tags HTML - Text HTML - Formatting HTML - Pre HTML - Attributes HTML - Font HTML - Text Links HTML - Comments
More information1. More jquery Methods 2. JavaScript + SVG: Raphaël 3. About SVG 4. Working with SVG 5. Animating SVG
CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB By Hassan S. Shavarani UNIT6: JAVASCRIPT AND GRAPHICS 1 TOPICS 1. More jquery Methods 2. JavaScript + SVG: Raphaël 3. About SVG 4. Working with
More informationGeolocation in HTML5 and Android. Kiet Nguyen
Geolocation in HTML5 and Android Kiet Nguyen Agenda Introduction to Geolocation Geolocation in Android Geolocation in HTML5 Conclusion Introduction to Geolocation To get user's location Common methods:
More informationD3 Introduction. Gracie Young and Vera Lin. Slides adapted from
D3 Introduction Gracie Young and Vera Lin Slides adapted from Maneesh Agrawala Jessica Hullman Ludwig Schubert Peter Washington Alec Glassford and Zach Maurer CS 448B: Visualization Fall 2018 Topics 1)
More informationHow to lay out a web page with CSS
How to lay out a web page with CSS A CSS page layout uses the Cascading Style Sheets format, rather than traditional HTML tables or frames, to organize the content on a web page. The basic building block
More informationCOURSE OUTLINE MOC 20480: PROGRAMMING IN HTML5 WITH JAVASCRIPT AND CSS3
COURSE OUTLINE MOC 20480: PROGRAMMING IN HTML5 WITH JAVASCRIPT AND CSS3 MODULE 1: OVERVIEW OF HTML AND CSS This module provides an overview of HTML and CSS, and describes how to use Visual Studio 2012
More informationData Visualization (CIS 468)
Data Visualization (CIS 468) Web Programming Dr. David Koop Languages of the Web HTML CSS SVG JavaScript - Versions of Javascript: ES6/ES2015, ES2017 - Specific frameworks: react, jquery, bootstrap, D3
More informationThis is the vector graphics "drawing" technology with its technical and creative beauty. SVG Inkscape vectors
1 SVG This is the vector graphics "drawing" technology with its technical and creative beauty SVG Inkscape vectors SVG 2 SVG = Scalable Vector Graphics is an integrated standard for drawing Along with
More informationAbout the Tutorial. Audience. Prerequisites. Copyright and Disclaimer. D3.js
About the Tutorial D3 stands for Data-Driven Documents. D3.js is a JavaScript library for manipulat ing documents based on data. D3.js is a dynamic, interactive, online data visualizations framework used
More informationD3js Tutorial. Tom Torsney-Weir Michael Trosin
D3js Tutorial Tom Torsney-Weir Michael Trosin http://www.washingtonpost.com/wp-srv/special/politics Contents Some important aspects of JavaScript Introduction to SVG CSS D3js Browser-Demo / Development-Tools
More informationAdaptive Mobile Web Pages Using HTML5 and CSS for Engineering Faculty
ASEE-NMWSC2013-0057 Adaptive Mobile Web Pages Using HTML5 and CSS for Engineering Faculty Wen-Chen Hu Department of Computer Science University of North Dakota Grand Forks, ND 58202-9015 wenchen@cs.und.edu
More informationFundamentals of Website Development
Fundamentals of Website Development CSC 2320, Fall 2015 The Department of Computer Science In this chapter History of HTML HTML 5-2- 1 The birth of HTML HTML Blows and standardization -3- -4-2 HTML 4.0
More informationExploring and Mitigating Privacy Threats of HTML5 Geolocation API
Exploring and Mitigating Privacy Threats of HTML5 Geolocation API Hyungsub Kim, Sangho Lee, Jong Kim Pohang University of Science and Technology (POSTECH) Annual Computer Security Applications Conference
More informationHTML5 - INTERVIEW QUESTIONS
HTML5 - INTERVIEW QUESTIONS http://www.tutorialspoint.com/html5/html5_interview_questions.htm Copyright tutorialspoint.com Dear readers, these HTML5 Interview Questions have been designed specially to
More informationFLOATING AND POSITIONING
15 FLOATING AND POSITIONING OVERVIEW Understanding normal flow Floating elements to the left and right Clearing and containing floated elements Text wrap shapes Positioning: Absolute, relative, fixed Normal
More informationpysvg Tutorial Lets start with the typical "hello world" which I have already packed into a method.
pysvg Tutorial Working with pysvg is relatively straight forward. You (still) need some knowledge on what values the appropriate svg elements need. Apart of that it's a piece of cake. Note that parameters
More informationCMPS 179. UX for Designing 3D, Anima2on, and Interac2on for the Web. Name Professors: Here Reid Swanson & Matt Maclaurin
CMPS 179 UX for Designing 3D, Anima2on, and Interac2on for the Web Name Professors: Here Reid Swanson & Matt Maclaurin TA: Title Peter Here Mawhorter (Arial) ARIAL CMPS NARROW 179: Today TITLE Wait list
More informationData Visualization (CIS/DSC 468)
Data Visualization (CIS/DSC 468) Data Dr. David Koop SVG Example http://codepen.io/dakoop/pen/ yexvxb
More informationPHP,HTML5, CSS3, JQUERY SYLLABUS
PHP,HTML5, CSS3, JQUERY SYLLABUS AAvhdvchdvchdvhdh HTML HTML - Introduction HTML - Elements HTML - Tags HTML - Text HTML - Formatting HTML - Pre HTML - Attributes HTML - Font HTML - Text Links HTML - Comments
More informationSam Weinig Safari and WebKit Engineer. Chris Marrin Safari and WebKit Engineer
Sam Weinig Safari and WebKit Engineer Chris Marrin Safari and WebKit Engineer 2 3 4 5 Simple presentation of complex data 6 Graphs can be interactive California County: San Francisco Population: 845,559
More informationChapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21
Table of Contents Chapter 1 Getting Started with HTML 5 1 Introduction to HTML 5... 2 New API... 2 New Structure... 3 New Markup Elements and Attributes... 3 New Form Elements and Attributes... 4 Geolocation...
More informationSCALABLE VECTOR GRAPHICS
SCALABLE VECTOR GRAPHICS VECTOR GRAPHICS? Contrary to raster/bitmap images (pixel description) Graphics are described using mathematical/geometrical primitives 2D objects: lines, curves, circles, rectangles,
More informationCS7026 HTML5. Canvas
CS7026 HTML5 Canvas What is the element HTML5 defines the element as a resolution-dependent bitmap canvas which can be used for rendering graphs, game graphics, or other visual images
More informationGraphics. HCID 520 User Interface Software & Technology
Graphics HCID 520 User Interface Software & Technology PIXELS! 2D Graphics 2D Raster Graphics Model Drawing canvas with own coordinate system. Origin at top-left, increasing down and right. Graphics
More informationTAMZ I. (Design of Applications for Mobile Devices I) Lecture 7 Timers HTML5 APIs
TAMZ I (Design of Applications for Mobile Devices I) Lecture 7 Timers HTML5 APIs Working with timers See e.g.: http://www.w3schools.com/jsref/met_win_setinterval.asp http://www.w3schools.com/jsref/met_win_settimeout.asp
More informationDuncan Temple Lang. This is more of a ``how to'' than a ``why'', or ``how does it work'' document.
Duncan Temple Lang Here we describe the basics of the XML parsing facilities in the Omegahat package for R and S. There are two styles of parsing -- document and event based. Document. The document approach
More informationCMPSCI 105 Midterm Exam Spring 2015 March 5, 2015 Professor William T. Verts
CMPSCI 105 Midterm Exam Spring 2015 March 5, 2015 Professor William T. Verts OPEN BOOK, OPEN NOTES, NO ELECTRONIC AIDS. TURN OFF CELL PHONES!!! Page 1 of 8 15 Points (1 point each) Fill in your answer
More informationInstallation and Configuration Manual
Installation and Configuration Manual IMPORTANT YOU MUST READ AND AGREE TO THE TERMS AND CONDITIONS OF THE LICENSE BEFORE CONTINUING WITH THIS PROGRAM INSTALL. CIRRUS SOFT LTD End-User License Agreement
More informationAi Adobe. Illustrator. Creative Cloud Beginner
Ai Adobe Illustrator Creative Cloud Beginner Vector and pixel images There are two kinds of images: vector and pixel based images. A vector is a drawn line that can be filled with a color, pattern or gradient.
More informationUSING SVG XML FOR REPRESENTATION OF HISTORICAL GRAPHICAL DATA
Преглед НЦД 9 (2006), 39 45 Dušan Tošić, Vladimir Filipović, (Matematički fakultet, Beograd) Jozef Kratica (Matematički institut SANU, Beograd) USING SVG XML FOR REPRESENTATION OF HISTORICAL GRAPHICAL
More informationUSING SVG XML FOR REPRESENTATION OF HISTORICAL GRAPHICAL DATA
Преглед НЦД 9 (2006), 39 45 Dušan Tošić, Vladimir Filipović, (Matematički fakultet, Beograd) Jozef Kratica (Matematički institut SANU, Beograd) USING SVG XML FOR REPRESENTATION OF HISTORICAL GRAPHICAL
More informationWord 2003: Flowcharts Learning guide
Word 2003: Flowcharts Learning guide How can I use a flowchart? As you plan a project or consider a new procedure in your department, a good diagram can help you determine whether the project or procedure
More informationTHE JAVASCRIPT ARTIST 15/10/2016
THE JAVASCRIPT ARTIST 15/10/2016 Objectives Learn how to program with JavaScript in a fun way! Understand the basic blocks of what makes a program. Make you confident to explore more complex features of
More informationInteractive Tourist Map
Adobe Edge Animate Tutorial Mouse Events Interactive Tourist Map Lesson 1 Set up your project This lesson aims to teach you how to: Import images Set up the stage Place and size images Draw shapes Make
More informationVisualization Process
Visualization Process Visualization Torsten Möller Agenda Overview of visualization pipelines Detail on d3 s implementation 2 Visualization Process Visualization pipeline Pipeline Model [J. Heer, Prefuse]
More informationGraphics. HCID 520 User Interface Software & Technology
Graphics HCID 520 User Interface Software & Technology PIXELS! 2D Graphics 2D Graphics in HTML 5 Raster Graphics: canvas element Low-level; modify a 2D grid of pixels.
More informationUsing Java with HTML5 and CSS3 (+ the whole HTML5 world: WebSockets, SVG, etc...)
Using Java with HTML5 and CSS3 (+ the whole HTML5 world: WebSockets, SVG, etc...) Helder da Rocha Independent Java & Web professional Argo Navis Informatica Ltda. São Paulo, Brazil helder@argonavis.com.br
More informationData Visualization (DSC 530/CIS )
Data Visualization (DSC 530/CIS 602-01) JavaScript Dr. David Koop Quiz Given the following HTML, what is the selector for the first div? the super Bowl
More informationLearning to Code with SVG
Learning to Code with SVG Lesson Plan: Objective: Lab Time: Age range: Requirements: Resources: Lecture: Coding a Frog in SVG on a 600 by 600 grid Hands-on learning of SVG by drawing a frog with basic
More informationA novel approach in converting SVG architectural data to X3D worlds
A novel approach in converting SVG architectural data to X3D worlds K. Kapetanakis 1, P. Spala 2, P. Sympa 3, G. Mamakis 4 and A. G. Malamos 5 1 Department of Applied Informatics and Multimedia, Technological
More informationCS 418: Interactive Computer Graphics. Introduction. Eric Shaffer
CS 418: Interactive Computer Graphics Introduction Eric Shaffer Computer Graphics is Used By Video Game Industry Revenue of $99B globally in 2016 Computer Graphics is Used By Medical Imaging and Scientific
More informationA Dreamweaver Tutorial. Contents Page
A Dreamweaver Tutorial Contents Page Page 1-2 Things to do and know before we start Page 3-4 - Setting up the website Page 5 How to save your web pages Page 6 - Opening an existing web page Page 7 - Creating
More information5/19/2015. Objectives. JavaScript, Sixth Edition. Using Touch Events and Pointer Events. Creating a Drag-and Drop Application with Mouse Events
Objectives JavaScript, Sixth Edition Chapter 10 Programming for Touchscreens and Mobile Devices When you complete this chapter, you will be able to: Integrate mouse, touch, and pointer events into a web
More informationPaint/Draw Tools. Foreground color. Free-form select. Select. Eraser/Color Eraser. Fill Color. Color Picker. Magnify. Pencil. Brush.
Paint/Draw Tools There are two types of draw programs. Bitmap (Paint) Uses pixels mapped to a grid More suitable for photo-realistic images Not easily scalable loses sharpness if resized File sizes are
More informationCreating or enlarging a hole in the center of a kaleidoscope (Paint Shop Pro)
TM Kaleidoscope Kreator Tutorial Series Creating or enlarging a hole in the center of a kaleidoscope (Paint Shop Pro) There may be times when you want to create (or enlarge) a hole in the center of a kaleidoscope:
More informationGenerating Vectors Overview
Generating Vectors Overview Vectors are mathematically defined shapes consisting of a series of points (nodes), which are connected by lines, arcs or curves (spans) to form the overall shape. Vectors can
More informationHTML5 and CSS3 JavaScript Advanced Features Page 1
HTML5 and CSS3 JavaScript Advanced Features Page 1 1 HTML5 and CSS3 JAVASCRIPT ADVANCED FEATURES 2 3 4 5 6 Geolocation The HTML5 Geolocation API is used to get the geographical position of a user Most
More informationHow to lay out a web page with CSS
Activity 2.6 guide How to lay out a web page with CSS You can use table design features in Adobe Dreamweaver CS4 to create a simple page layout. However, a more powerful technique is to use Cascading Style
More informationHTML Exercise 21 Making Simple Rectangular Buttons
HTML Exercise 21 Making Simple Rectangular Buttons Buttons are extremely popular and found on virtually all Web sites with multiple pages. Buttons are graphical elements that help visitors move through
More informationWeb Programming 1 Packet #5: Canvas and JavaScript
Web Programming 1 Packet #5: Canvas and JavaScript Name: Objectives: By the completion of this packet, students should be able to: use JavaScript to draw on the canvas element Canvas Element. This is a
More informationServer-Side Graphics
Server-Side Graphics SET09103 Advanced Web Technologies School of Computing Napier University, Edinburgh, UK Module Leader: Uta Priss 2008 Copyright Napier University Graphics Slide 1/16 Outline Graphics
More informationMTA EXAM HTML5 Application Development Fundamentals
MTA EXAM 98-375 HTML5 Application Development Fundamentals 98-375: OBJECTIVE 3 Format the User Interface by Using CSS LESSON 3.4 Manage the graphical interface by using CSS OVERVIEW Lesson 3.4 In this
More informationMobile Site Development
Mobile Site Development HTML Basics What is HTML? Editors Elements Block Elements Attributes Make a new line using HTML Headers & Paragraphs Creating hyperlinks Using images Text Formatting Inline styling
More informationHow to create shapes. Drawing basic shapes. Adobe Photoshop Elements 8 guide
How to create shapes With the shape tools in Adobe Photoshop Elements, you can draw perfect geometric shapes, regardless of your artistic ability or illustration experience. The first step to drawing shapes
More informationGIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar
GIMP WEB 2.0 MENUS Web 2.0 Menus: Horizontal Navigation Bar WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR Hover effect: You may create your button in GIMP. Mine is 122 pixels by 48 pixels. You can use whatever
More information20480C: Programming in HTML5 with JavaScript and CSS3. Course Code: 20480C; Duration: 5 days; Instructor-led. JavaScript code.
20480C: Programming in HTML5 with JavaScript and CSS3 Course Code: 20480C; Duration: 5 days; Instructor-led WHAT YOU WILL LEARN This course provides an introduction to HTML5, CSS3, and JavaScript. This
More informationPaint Tutorial (Project #14a)
Paint Tutorial (Project #14a) In order to learn all there is to know about this drawing program, go through the Microsoft Tutorial (below). (Do not save this to your folder.) Practice using the different
More informationINKSCAPE BASICS. 125 S. Prospect Avenue, Elmhurst, IL (630) elmhurstpubliclibrary.org. Create, Make, and Build
INKSCAPE BASICS Inkscape is a free, open-source vector graphics editor. It can be used to create or edit vector graphics like illustrations, diagrams, line arts, charts, logos and more. Inkscape uses Scalable
More informationProgrammazione Web a.a. 2017/2018 HTML5
Programmazione Web a.a. 2017/2018 HTML5 PhD Ing.Antonino Raucea antonino.raucea@dieei.unict.it 1 Introduzione HTML HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text
More informationSVG. Scalable Vector Graphics. 070-SVG: 1 HKU ICOM Multimedia Computing Dr. YIP Chi Lap
SVG Scalable Vector Graphics 070-SVG: 1 SVG SVG: Scalable Vector Graphics A language for describing two-dimensional vector and mixed vector/raster graphics in XML Have profiles for display on mobile phones
More informationCreating a 3D bottle with a label in Adobe Illustrator CS6.
Creating a 3D bottle with a label in Adobe Illustrator CS6. Step 1 Click on File and then New to begin a new document. Step 2 Set up the width and height of the new document so that there is enough room
More informationA user-friendly reference guide HTML5 & CSS3 SAMPLE CHAPTER. Rob Crowther MANNING
A user-friendly reference guide HTML5 & CSS3 SAMPLE CHAPTER Rob Crowther MANNING Hello! HTML5 & CSS3 by Rob Crowther Chapter 3 Copyright 2013 Manning Publications Brief contents PART 1 LEARNING HTML5 1
More informationTop Trends in elearning. September 15 & 16, Is HTML5 Ready for elearning? Debbie Richards, Creative Interactive Ideas
Top Trends in elearning September 15 & 16, 2011 501 Is HTML5 Ready for elearning? Is HTML5 Ready for elearning? Polls 1 and 3 2 Session 501 Is HTML5 Ready for elearning? Page 1 What s Covered in This Session?
More informationCISC 1600, Lab 2.2: Interactivity in Processing
CISC 1600, Lab 2.2: Interactivity in Processing Prof Michael Mandel 1 Getting set up For this lab, we will again be using Sketchpad, a site for building processing sketches online using processing.js.
More informationPaths. "arc" (elliptical or circular arc), and. Paths are described using the following data attributes:
Paths Paths are described using the following data attributes: "moveto" (set a new current point), "lineto" (draw a straight line), "arc" (elliptical or circular arc), and "closepath" (close the current
More informationHow to lay out a web page with CSS
How to lay out a web page with CSS You can use table design features in Adobe Dreamweaver CS3 to create a simple page layout. However, a more powerful technique is to use Cascading Style Sheets (CSS).
More informationHTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية
HTML Mohammed Alhessi M.Sc. Geomatics Engineering Wednesday, February 18, 2015 Eng. Mohammed Alhessi 1 W3Schools Main Reference: http://www.w3schools.com/ 2 What is HTML? HTML is a markup language for
More informationUI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML
UI Course (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) HTML: Introduction The World Wide Web (WWW) and history of HTML Hypertext and Hypertext Markup Language Why HTML Prerequisites Objective
More informationNAVIGATION INSTRUCTIONS
CLASS :: 13 12.01 2014 NAVIGATION INSTRUCTIONS SIMPLE CSS MENU W/ HOVER EFFECTS :: The Nav Element :: Styling the Nav :: UL, LI, and Anchor Elements :: Styling the UL and LI Elements CSS DROP-DOWN MENU
More informationIndex LICENSED PRODUCT NOT FOR RESALE
Index LICENSED PRODUCT NOT FOR RESALE A Absolute positioning, 100 102 with multi-columns, 101 Accelerometer, 263 Access data, 225 227 Adding elements, 209 211 to display, 210 Animated boxes creation using
More informationLinks Menu (Blogroll) Contents: Links Widget
45 Links Menu (Blogroll) Contents: Links Widget As bloggers we link to our friends, interesting stories, and popular web sites. Links make the Internet what it is. Without them it would be very hard to
More informationUnit 21 - Creating a Navigation Bar in Macromedia Fireworks
Unit 21 - Creating a Navigation Bar in Macromedia Fireworks Items needed to complete the Navigation Bar: Unit 21 - House Style Unit 21 - Graphics Sketch Diagrams Document ------------------------------------------------------------------------------------------------
More informationDeveloper's HTML5. Cookbook. AAddison-Wesley. Chuck Hudson. Tom Leadbetter. Upper Saddle River, NJ Boston Indianapolis San Francisco
HTML5 Developer's Cookbook Chuck Hudson Tom Leadbetter AAddison-Wesley Upper Saddle River, NJ Boston Indianapolis San Francisco New York Toronto Montreal London Munich Paris Madrid Capetown Sydney Tokyo
More informationLING 408/508: Computational Techniques for Linguists. Lecture 14
LING 408/508: Computational Techniques for Linguists Lecture 14 Administrivia Homework 5 has been graded Last Time: Browsers are powerful Who that John knows does he not like? html + javascript + SVG Client-side
More informationVisual HTML5. Human Information Interaction for Knowledge Extraction, Interaction, Utilization, Decision making HI-I-KEIUD
Visual HTML5 1 Overview HTML5 Building apps with HTML5 Visual HTML5 Canvas SVG Scalable Vector Graphics WebGL 2D + 3D libraries 2 HTML5 HTML5 to Mobile + Cloud = Java to desktop computing: cross-platform
More informationNational Weather Map
Weather Map Objectives Each student will utilize the Google Docs drawing application to create a map using common weather map symbols that show the current state of the weather in the United States. Benchmarks
More informationStyles, Style Sheets, the Box Model and Liquid Layout
Styles, Style Sheets, the Box Model and Liquid Layout This session will guide you through examples of how styles and Cascading Style Sheets (CSS) may be used in your Web pages to simplify maintenance of
More informationWEB DESIGNING SYLLABUS
WEB DESIGNING SYLLABUS AAvhdvchdvchdvhdh HTML HTML - Introduction HTML - Elements HTML - Tags HTML - Text HTML - Formatting HTML - Pre HTML - Attributes HTML - Font HTML - Text Links HTML - Comments HTML
More information