Programming games Examples: Audio example. Google Maps api. Classwork: show more complex video. Classwork/Homework: Find place (lat and long) for basic.

Slides:



Advertisements
Similar presentations
® Page 1 Intel Compiler Lab – Intel Array Visualizer HDF Workshop VI December 5, 2002 John Readey
Advertisements

1 Lesson 10 Using JavaScript with Styles HTML and JavaScript BASICS, 4 th Edition Barksdale / Turner.
Web applications. Javascript. Web 2.0: The dynamic, read-write web UC Santa Cruz CMPS 10 – Introduction to Computer Science
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
Developing a Basic Web Page with HTML
11 Using the Google Maps API. 2 Objectives You will be able to Use the Google Maps API to display a map of any location on an HTML page. Programatically.
Using Arc Reader to Locate 12-Digit HUCs 1. Contents Chapter 1: Downloading and Installing ArcReader and Maps: Slide 3 Chapter 2: Locating the 12-Digit.
Chapter 15 HTML 5 Video and Audio Intro to HTML5 1.
Audio and Video on the Web Sec 5-12 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Programming Games Computer science big ideas. Computer Science jargon. Show virtual dog Homework: [Catch up: dice game, credit card or other form.] Plan.
HTML5. What is HTML5? HTML5 will be the new standard for HTML. HTML5 is the next generation of HTML. HTML5 is still a work in progress. However, the major.
4.1 JavaScript Introduction
® Page 1 Intel Compiler Lab – Intel Array Visualizer HDF Workshop VIII October 27, 2004 John Readey
CS346 - Javascript 1, 21 Module 1 Introduction to JavaScript CS346.
Programming Games Recap on Google Maps. Creating elements. Dynamic creation of elements (multiple video elements). Geolocation. Classwork/Homework: Catch-up.
Google Maps API. Static Maps send an HTTP GET request receive an image (PNG, GIF, JPEG) no javascript needed encode params in URL example:
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
RFID Editing and setup. Collect your content and organise it how you want it to be viewed and save it somewhere so you can find it easily. (Media formats.
ACE-HIGH MP3 WAV WMA OGG Converter By :: Natharat Kaewrawang
Programming Games Basic HTML5 audio example. Catch-up. Work on basic video. Homework: Complete basic video.
Programming Games Show your cannonball. HTML5 video. Miro. Classwork/Homework: Acquire video, convert to multiple formats, and produce simple (just html)
JavaScript Programming B.Ramamurthy 6/113/2014B. Ramamurthy CSE6511.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
Lines of Latitude and Longitude
Programming Games Google Map API examples. CSS. Classwork/homework: Catch up. Upload work. Show your [more] complex Google Maps API example. Plan your.
Programming Games Show your simple video. More video examples. Audio. Classwork/Homework: Produce more complex video program.
Processing.js.
Support the spread of “good practice” in generating, managing, analysing and communicating spatial information Participatory Internet-based Mapping Map.
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
Scientific models in the form of maps can be useful for finding locations & showing land formations on the Earth’s surface.
Programming Games Reprise: storage, datatypes. Geolocation/Google API example. Work session Homework: [Catch up. Upload work. Post proposal.] Work on your.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
Creating User Interfaces Recap HTML/HTML5 JavaScript features Homework: keep working on user observation studies. Review JavaScript.
Programming Games Reprise on drawing on canvas. Jargon (concepts): objects. Demonstrate slingshot. Mouse events. Work on your cannonball. Homework: Finish.
Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.
Notes Chapter 10—Adding Graphics. There are two kinds of graphics on the Internet: those you can use on your own Web pages, and those you cannot.  Many.
CHAPTER 15 HTML 5 VIDEO AND AUDIO Intro to HTML5 1.
Creating Interfaces Show form validation examples, Hangman. HTML5 with Google Maps API. Add in localStorage. Design pitfalls. Homework: Make proposal for.
Static Locations, Dynamic Content.
Chapter 11 Adding Media and Interactivity. Chapter 11 Lessons Introduction 1.Add and modify Flash objects 2.Add rollover images 3.Add behaviors 4.Add.
Creating Web Documents: JavaScript Ftp / file management: review Introduction to JavaScript Sources Homework: start review for midterm, work on Project.
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
JavaScript Introduction inf385t Semantic Web 2/20/2006.
(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.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
JavaScript and Ajax (JavaScript Environment) Week 6 Web site:
Chapter 8 Adding Multimedia Content to Web Pages HTML5 & CSS 7 th Edition.
CHAPTER 8 Multimedia 1. Using Multimedia ❖ Multimedia: the combination of text, sound, and video to express an idea or convey a message. ❖ Podcasts: a.
Phonegap Bridge –Geolocation and Google maps CIS 136 Building Mobile Apps 1.
Project 02 Creating and Editing a Web Page Concept Map of Unit Creating and Editing a Web Page Key Learning Understand the elements to create a web page.
Creating Databases Example using Google Maps API + file creation. Dollar sign problem. Classwork/Homework: [catch up]. Work on final project.
HTML Structure & syntax
Chapter 9 HTML 5 Video and Audio
Creating Databases Example using Google Maps API + file creation. Dollar sign problem. Classwork/Homework: [catch up]. Work on final project.
Google APIs and Facebook API
“Under the hood”: Angry Birds Maze
Chapter 4: HTML5 Media - <video> & <audio>
Geolocation using Google maps
Latitude and Longitude
Latitude and Longitude
Playing Video (Part 2).
Geolocation using Google maps
Tutorial 6 Creating Dynamic Pages
How to post on Wikispaces
Catchup. Work on project.
Creating User Interfaces
Geolocation using Google maps
Location Location: Where something is Absolute Location
Show your animation project. HTML5 video. Miro.
Presentation transcript:

Programming games Examples: Audio example. Google Maps api. Classwork: show more complex video. Classwork/Homework: Find place (lat and long) for basic Google Maps API. Build more complex maps project.

Basic audio example Demonstrate Need to acquire audio. Use Miro Video Converter (or other tools) to produce mp3 and wav versions (assuming you didn't start with wav version. Do produce an mp3 version). You can modify the names to make them simpler. Write HTML5 –note: I added an image. You can add whatever you want.

playaudio.html Esther at the piano Your browser does not accept the audio tag.

Recap: Terminology HTML has elements. Element defined by opening and closing tags. Elements are within elements. The video element has a video tag, 3 source tags/elements, content to give message for non- compliant browsers, closing video tag. The video and the source tags contain attributes.

Note If you understand general idea of elements being defined by tags Attributes (aka properties) –Some attributes specific to the type of element and –Some not: any element can have name or id You can quickly get comfortable with new elements…

Next Google Maps API –Basic example –Not so basic example Decide on your final project. May use video, and/or audio, and/or Google Maps API, or anything else.

Preparation for mapping How to designate a location? Latitude: degrees, parallels to equator, which is the zero position. North pole 90, South pole -90 longitude: degrees, measured from Greenwich meridian—this is an arbitrary decision made many years ago. Longitude lines called meridians.

How to get? How to get this? –New Google maps: lat long pop up window (BE PATIENT.) –Classic Google Maps: On lower left, click on Maps Labs and enable drop lat lng tool tip marker. Then, click and shift to get lat, long values. This requires Classic google maps. –Look up various ways (this goes to Google) Also geolocation and using Google Maps with addresses.

Google Maps Application Programming Interface An API provides ways to access functionality –Defines objects, which have methods (functions) and attributes (properties) For HTML and JavaScript, –add an external script element –make use of methods and attributes Documentation is quite good. –Not e: we will skip getting a key.

To bring in a Google Map Note: this is dynamic: it isn't an image of a map, but something you can click on, pan, use controls. Need to set up a place to put the map. Need to specify options. –This is done using an associative array: array with named elements, not numbers as indices.

Objects An HTML document is described by the Document Object Model. –Objects (code and data) Attributes (aka properties) that are values Methods that are functions to be invoked using the properties of the objects Google Maps Application Programming Interface IS a set of objects— We create objects using constructor methods Access attributes and invoke [other] methods Including addEventListener Use a script element referencing external file

Remember Very first html program used Date() Constructed a Date object To save the Date object, can use today = new Date(); Used new Array() to create an Array object. To write something on document: document.write( … );

Map options center of map: given as a Google Maps API latlng object. type of map: given as a Google Maps API constant: TERRAIN, ROADMAP, SATELLITE zoom level: number more…

HTML document in in

somewhere in the code // Determine the base location: replace ??? mylat = ???; mylong = ???; blatlng = new google.maps.LatLng(mylat, mylong); myOptions = { zoom: 12, center: blatlng, mapTypeId: google.maps.MapTypeId.ROADMAP}; map = new google.maps.Map(document.getElementById("place"), myOptions);

basic example

Basic map function init() { blatlng = new google.maps.LatLng( , ); myOptions = { zoom: 14, center: blatlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("place"), myOptions); }

Assignments Basic Google Maps API Determine latitude and longitude value. Create your basic Google Maps API example. Produce second basic example with different location, zoom, type. Produce your own SOMEWHAT more complex Google Maps example. You can do more for your final project.

Teaser Will show example combining Google Maps API and video and audio Consult HTML5 and JavaScript Projects other…

Extra credit Find discussion on the different video formats, including patent issues. Read, summarize and put in working link as post on moodle.

Another extra credit opportunity …and a good thing to do Determine the size and compare of your video files and audio files –Original (probably MOV or AVI) –webm –mp4 –ogg (ogv) –wav –mp3 Make a posting on the Introductions, etc. forum on moodle

Extra credit Make posting on [old] controversies involving Google gathering video for Street View (in Europe). Make posting on RECENT Net Neutrality rulings