Just bought a skywriter to control my mirror based on swipes and presses. (https://shop.pimoroni.com/products/skywriter-hat)
It comes with a python library: https://github.com/pimoroni/skywriter-hat
What I would like to achieve is that a certain div comes to the page when I make a “up” gesture. Or when I swipe left, that the entire page is switched to another profile.
What is the best starting point to control javascript in a webpage thru python?