3.3.6 The Cisco Coffee JavaScript application
The figure shows a simulated version of the Cisco Coffee JavaScript application currently running in your browser. If you click Show Real Data, you will see a status message that says, 'No sensors found'. That is because there are no actual sensors attached to the application. The application is generating fictitious sensor data. While the entirety of the code is out of the scope of this course, feel free to open the file and analyse it on your own to see how much you understand.
You can view the source by right-clicking anywhere in the figure and choosing an option similar to View Source or View Frame Source,depending on the browser. Scroll down to the section in the code that starts with Script. Lines that began with a double forward slash (//) denote comments. The comments provide a brief explanation of the code. If you would like to investigate this JavaScript application further, you can download the following files:
- Lab – Cisco Coffee JavaScript Application (Optional).pdf [Tip: hold Ctrl and click a link to open it in a new tab. (Hide tip)]
- Cisco Coffee JavaScript Files.zip