Try to create vibrations patterns matching different types of content.
You can start with the following code:
<html>
<head>
<title>Vibrations pattern example</title>
</head>
<body>
<script>function warning() {
navigator.vibrate(1);
}
</script>
<button onclick="warning()">Warning !</button>
<script>function win() {
navigator.vibrate(1);
}
</script>
<button onclick="win()">You won !</button>
<script>function loose() {
navigator.vibrate(1);
}
</script>
<button onclick="loose()">You lost !</button>
<script>function hurry() {
navigator.vibrate(1);
}
</script>
<button onclick="hurry()">Hurry !</button>
</body>
</html>