<button onclick="titret(1000)">Titret</button>
<button onclick="titret([1000, 200, 1000, 2000, 400]);">Titret (3 defa aralıklı)</button>
function titret(sure) {
			navigator.vibrate(sure);
      console.log(sure + "ms");
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.