Web Vibrate polyfill

Fork on GitHub

This is a small polyfill to simulate the vibration API in browsers where it isn't available. Just for testing purposes it'll shake the document instead of playing a buzzing sound (might come later). That way you can test without going crazy with annoying sounds.

Test by activating the buttons below: