1// vibrate device for 300 milliseconds
2window.navigator.vibrate(300);
3// vibrate for 300 milliseconds
4// then wait for 100 milliseconds
5// vibrate again for 200 milliseconds
6window.navigator.vibrate([300, 100, 200]);
7// cancel out ongoing vibration
8window.navigator.vibrate(0);
9//https://usefulangle.com/post/185/javascript-vibrate-device