Add the html and javascript
A html template is provided to serve as default index.html.
A javascript file is used to draw finger traces on the document
canvas which basically mimics the old mtplot. It also supports
some hot keys:
ESC: the clear the screen
'b': toggle the background color
'f': toggle between full and non-full screen
'p': toggle between pressure mode and point mode
'q': notify the server that this client quits
's': notify the server to save the event file
BUG=chromium:443539
TEST=Manually test.
1. Scp the program to a chromebook.
2. Launch a web server to serve touchpad data on the chromebook.
$ python webplot.py
3. Switch to the chrome browser. Type "localhost" in the omnibox.
It will display a dark background. Fingers move on the touchpad
and observe the corresponding finger traces shown on the
browser tab.
Change-Id: I5d654080d4cf93565db4ef0e1b9c7d44ceabcc5f
Reviewed-on: https://chromium-review.googlesource.com/237525
Reviewed-by: Charlie Mooney <[email protected]>
Commit-Queue: Shyh-In Hwang <[email protected]>
Tested-by: Shyh-In Hwang <[email protected]>
2 files changed