HTML5 and JavaScript Projects - Jeanine Meyer

HTML5 and JavaScript Projects (eBook)

Build on your Basic Knowledge of HTML5 and JavaScript to Create Substantial HTML5 Applications

(Autor)

eBook Download: PDF
2018 | 2nd ed.
XIX, 425 Seiten
Apress (Verlag)
978-1-4842-3864-6 (ISBN)
Systemvoraussetzungen
79,99 inkl. MwSt
  • Download sofort lieferbar
  • Zahlungsarten anzeigen
Build on your basic knowledge of HTML5 and JavaScript to create substantial HTML5 applications. Through the many interesting projects you can create in this book, you'll develop HTML5 skills for future projects, and extend the core skills you may have learned with its companion book, The Essential Guide to HTML5.

HTML5 and JavaScript Projects is fully updated as a second edition and covers important programming techniques and HTML, CSS, and JavaScript features to help you build projects with images, animation, video, audio and line drawings. You'll learn how to build games, quizzes and other interactive projects; incorporate the use of the Google Maps API and localStorage; and address the challenges of Responsive Design and Accessibility.

Each project starts out with a description of the example's operation, often with full-color illustrations.  You'll then review the HTML5 and JavaScript concepts that relate to the project followed by a step-by-step explanation of the programming used. Tables are used to show the relationship of functions and provide comments for each line of code so that you can easily apply the techniques to your own HTML5 projects.?

What You'll Learn

  • Enhance your HTML5 and JavaScript programming skills.
  • Poduce applications combining Canvas drawings, photos, and videos
  • Incorporate Google Maps and geolocation into your projects
  • Build applications requiring persistent data, storing the information locally or on a database on the server
Who This Book Is For

Developers who have some knowledge of programming and want to build more substantial applications by combining basic features and combining JavaScript with other technologies.



Jeanine Meyer is a Professor at Purchase College/SUNY and past Coordinator of the Mathematics/Computer Science Board of Study.  Before Purchase, she taught at Pace University and worked at IBM Research and other parts of IBM and at other companies. She is the author of 4 books and co-author of 3 more on topics ranging from educational uses of multimedia, programming (two published by Apress), databases and number theory. She earned a PhD in computer science at the Courant Institute at New York University, an MA in mathematics at Columbia, and a SB (the college used the Latin form) in mathematics from the University of Chicago.  She is a member of Phi Beta Kappa, Sigma Xi, Association of Women in Science, Association of Computing Machinery, and a featured reviewer for ACM Computing Reviews. Jeanine is trying but remains a beginner at Spanish and piano.


Build on your basic knowledge of HTML5 and JavaScript to create substantial HTML5 applications. Through the many interesting projects you can create in this book, you'll develop HTML5 skills for future projects, and extend the core skills you may have learned with its companion book, The Essential Guide to HTML5. HTML5 and JavaScript Projects is fully updated as a second edition and covers important programming techniques and HTML, CSS, and JavaScript features to help you build projects with images, animation, video, audio and line drawings. You'll learn how to build games, quizzes and other interactive projects; incorporate the use of the Google Maps API and localStorage; and address the challenges of Responsive Design and Accessibility.Each project starts out with a description of the example's operation, often with full-color illustrations.  You'll then review the HTML5 and JavaScript concepts that relate to the project followed by a step-by-step explanation of the programming used. Tables are used to show the relationship of functions and provide comments for each line of code so that you can easily apply the techniques to your own HTML5 projects.?What You'll Learn Enhance your HTML5 and JavaScript programming skills.Poduce applications combining Canvas drawings, photos, and videos Incorporate Google Maps and geolocation into your projects Build applications requiring persistent data, storing the information locally or on a database on the server Who This Book Is ForDevelopers who have some knowledge of programming and want to build more substantial applications by combining basic features and combining JavaScript with other technologies.

Jeanine Meyer is a Professor at Purchase College/SUNY and past Coordinator of the Mathematics/Computer Science Board of Study.  Before Purchase, she taught at Pace University and worked at IBM Research and other parts of IBM and at other companies. She is the author of 4 books and co-author of 3 more on topics ranging from educational uses of multimedia, programming (two published by Apress), databases and number theory. She earned a PhD in computer science at the Courant Institute at New York University, an MA in mathematics at Columbia, and a SB (the college used the Latin form) in mathematics from the University of Chicago.  She is a member of Phi Beta Kappa, Sigma Xi, Association of Women in Science, Association of Computing Machinery, and a featured reviewer for ACM Computing Reviews. Jeanine is trying but remains a beginner at Spanish and piano.

Table of Contents 5
About the Author 11
About the Technical Reviewer 12
Acknowledgments 13
Introduction 14
Chapter 1: Building the HTML5 Logo: Drawing on Canvas with Scaling and Semantic Tags 17
Introduction 17
Project History and Critical Requirements 20
HTML5, CSS, and JavaScript features 22
Drawing Paths on Canvas 22
Placing Text on Canvas and in the Body of a Document 25
Coordinate Transformations 26
Using the Range Input Element 28
Building the Application and Making It Your Own 30
Testing and Uploading the Application 37
Summary 37
Chapter 2: Family Collage: Manipulating Programmer-Defined Objects on a Canvas 38
Introduction 38
Critical Requirements 41
Autoplay Policy 41
HTML5, CSS, and JavaScript Features 42
JavaScript Objects 42
External File of Specifications 44
Rect 45
Oval 46
Picture 47
Videoblock 47
Heart 48
Creating the Elements 50
Drawing 52
Checking for a Mouse Over Object 57
User Inter face 61
Saving the Canvas to an Image 66
Building the Application and Making It Your Own 67
Testing and Uploading the Application 92
Summary 92
Chapter 3: Bouncing Video: Animating and Masking HTML5 Video 93
Introduction 93
Project History and Critical Requirements 100
HTML5, CSS, and JavaScript Features 101
Definition of the Body and the Window Dimensions 101
Animation 103
Video Drawing Frames on Canvas or As a Movable Element 109
Video Drawn on Canvas 109
Movable Video Element 111
Traveling Mask 112
User Interface 115
Building the Application and Making It Your Own 116
Making the Application Your Own 129
Testing and Uploading the Application 130
Summary 131
Chapter 4: Map Maker: Combining Google Maps and the  Canvas 132
Introduction 132
Latitude and Longitude and Other Critical Requirements 144
HTML5, CSS, and JavaScript Features 150
The Google Maps API 150
Canvas Graphics 153
Cursor 157
JavaScript Events 158
Calculating Distance and Rounding Values for Display 163
Building the Application and Making It Your Own 165
Testing and Uploading the Application 178
Summary 178
Chapter 5: Map Portal: Using Google Maps to Access Your Media 179
Introduction 179
Project History and Critical Requirements 187
HTML5, CSS, and JavaScript Features 188
Google Maps API for Map Access and Event Handling 188
Project Content in External File 191
Distances and Tolerances 193
Regular Expressions Used to Create the HTML 194
Dynamic Creation of HTML5 Markup and Positioning 195
Hint Button 198
Building the Application and Making It Your Own 199
The Quiz Application 199
Testing and Uploading the Application 213
Summary 213
Chapter 6: Add to 15 Game 214
Introduction 214
General Requirements for a Game 216
HTML5, CSS, and JavaScript 217
Styling in CSS 217
JavaScript Arrays 218
Setting Up the Game 220
Responding to a Player Move 220
Generating the Computer Move 221
Building the Application and Making It Your Own 222
Testing and Uploading the Application 232
Summary 232
Chapter 7: Origami Directions: Using Math-Based Line Drawings, Photographs, and Videos 233
Introduction 233
Critical Requirements 243
HTML5, CSS, JavaScript Features, and Mathematics 244
Overall Mechanism for Steps 244
User Interface 248
Coordinate Values 248
Utility Functions for Display 250
Utility Functions for Calculation 253
Step Line Drawing Functions 255
Displaying a Photograph 264
Presenting and Removing a Video 264
Building the Application and Making It Your Own 265
Testing and Uploading the Application 298
Summary 299
Chapter 8: Jigsaw Video 300
Introduction 300
Background and Critical Requirements 306
HTML5, CSS, JavaScript, and Programming Features 306
Creating the Base Picture 307
Dynamically Created Elements 307
Setting Up the Game 309
Handling Player Actions 310
Using Mouse Events 311
Calculating If the Puzzle Is Complete 313
Preparing, Positioning, and Playing the Video and Making It Hidden or Visible 314
Building the Application and Making It Your Own 315
Testing and Uploading the Application 327
Summary 327
Chapter 9: US States Game: Building a Multiactivity Game 329
Introduction 329
Critical Requirements 340
HTML5, CSS, JavaScript Features, Programming Techniques, and Image Processing 341
Acquiring the Image Files for the Pieces and  Determining Offsets 341
Creating Elements Dynamically 349
User Interface Overall 350
User Interface for Asking the Player to Click a State 351
User Interface for Asking the Player to Name a State 352
Spreading Out the Pieces 354
Setting Up the Jigsaw Puzzle 355
Saving and Recreating the State of the Jigsaw Game and Restoring the Original Map 357
Building the Application and Making It Your Own 361
Testing and Uploading the Application 382
Summary 382
Chapter 10: Responsive Design and Accessibility 383
Introduction 383
Critical Requirements 388
Screen Size and Dimension 389
Touch 389
Screen Reader and Tabs 389
HTML, CSS, and JavaScript Features 390
Meta Tags 390
HTML and CSS Use of Percentages and Auto 391
CSS @media 392
The HTML alt Attribute and Semantic Elements 392
HTML tabIndex 393
JavaScript Use of Width and Height Properties 393
Creating Elements Dynamically 394
Choosing From List 395
Mouse Events, Touch Events, and Key Events 396
Building the Reveal Application and Making It Your Own 398
Testing and Uploading the Reveal Application 412
Building the Countries/Capitals Quiz and Making It Your Own 412
Testing and Uploading the Countries/Capitals Quiz Application 422
Testing and Uploading the Jigsaw Turning to Video Application 422
Summary 423
Index 424

Erscheint lt. Verlag 21.8.2018
Zusatzinfo XIX, 425 p. 107 illus., 105 illus. in color.
Verlagsort Berkeley
Sprache englisch
Themenwelt Mathematik / Informatik Informatik Software Entwicklung
Mathematik / Informatik Informatik Web / Internet
Schlagworte geolocation • Google map API • HTML5 • HTML canvas • JavaScript • localStorage
ISBN-10 1-4842-3864-8 / 1484238648
ISBN-13 978-1-4842-3864-6 / 9781484238646
Haben Sie eine Frage zum Produkt?
PDFPDF (Wasserzeichen)
Größe: 11,0 MB

DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasser­zeichen und ist damit für Sie persona­lisiert. Bei einer missbräuch­lichen Weiter­gabe des eBooks an Dritte ist eine Rück­ver­folgung an die Quelle möglich.

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schränkt geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.

Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Das umfassende Handbuch

von Jürgen Sieben

eBook Download (2023)
Rheinwerk Computing (Verlag)
67,43
Mini-Refactorings für besseres Software-Design

von Kent Beck

eBook Download (2024)
O'Reilly Verlag
26,90
Grundlagen, Menschen, Prozesse, Techniken

von Jochen Ludewig; Horst Lichter

eBook Download (2023)
dpunkt (Verlag)
49,90