10.17 CASE STUDY: Collector Performance Details and Nonredundant Website Navigation

Collector Performance Subordinate Function Details

The case study section at the end of Chapter 9 described the Collector Performance web page with HTML source code in the body element and top-level JavaScript code in the head element. The top-level JavaScript code made calls to subordinate functions whose details were omitted because they employed features not yet described at that point. But after reading this chapter, you should now be able to understand the JavaScript in those subordinate functions.

FIGURE 10.22 shows the Collector Performance web page’s computeAngles function. It provides examples of using if statements. It also provides examples of ...

Get Web Programming with HTML5, CSS, and JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.