alexander-bogomolov
2/28/2014 - 7:59 AM

Vibration API - HTML5 APIs - http://www.starstormdesign.de/vibration-api-html5/

navigator.vibrate = navigator.vibrate || navigator.webkitVibrate || navigator.mozVibrate || navigator.msVibrate;

if (navigator.vibrate) {
  // API verfügbar
}
// Vibriere 1000ms
navigator.vibrate(1000);
// Vibration abbrechen
navigator.vibrate(0);
// Vibriere 300ms, mach 200ms Pause und vibriere anschließend 800ms.
navigator.vibrate([300, 200, 800]);