We will start by writing the HTML code for our HTML JavaScript client. You may use a computer other than the Raspberry Pi:
- Create a project folder on your computer and call it HTML JavaScript Client
- Copy the Paho JavaScript library from Chapter 17, Building the JavaScript Client, into the project folder
- Using your favorite HTML editor, create a file called index.html and save it inside the folder you created in step 1
- Type the following into index.html and save it again:
<html> <head> <title>T.A.R.A.S Robot Car Control</title> <script src="paho.javascript-1.0.3/paho-mqtt.js" type="text/javascript"></script> <script src="scripts/index.js" type='text/javascript'></script> <link rel="stylesheet" href="styles/styles.css"> ...