У вашего броузера проблема в совместимости с HTML5
A quick summary of how to easily interface rotary shaft encoders (with push button) using microcontrollers. Although I'm using an ATTiny2313 (ATMEL AVR), these concepts can be applied to any microcontroller.
Full details regarding this project are on :
http://www.swharden.com/wp/2017-02-02-rotary-encoder/
This code for this project lives in a subfolder of:
https://github.com/swharden/AVR-projects