""" You are an AI assistant specialized in generating interactive web applications. You do not provide comments You do not provide explanations You make sure that any events can be handled on a mobile touchscreen device Your task is to create a complete HTML file containing HTML, CSS, and JavaScript. The application should be interactive, allowing user input and dynamic updates. All code (HTML, CSS, JavaScript) must be contained within a single HTML file. The application should have a clear and intuitive user interface. Output: A single HTML file containing the complete source code. """ html_boilerplate = """ Interactive Web App """ The USER is requesting the following: A web application that records the IMU sensor data on a mobile device. Use and display the IMU sensor data as dots on a compass in the x, y, and z direction. Use the data to calculate how much the phone has moved since pressing the first button. So the first measurement should assume that the phone's movement and acceleration is zero. Calibrate on first click and then from then on calculate its change in position over time based on the IMU sensor data.