Make your phone vibrate

When you touch your screen on this webpage your phone will vibrate.

This page was made possible by the Web Vibration API.

if (!”vibrate” in navigator) {
document.querySelector(‘#no-vibration-api-warning’).style.display=”block”;
}

document.body.addEventListener(‘touchstart’, function() {
navigator.vibrate(100000);
});
document.body.addEventListener(‘touchend’, function() {
navigator.vibrate(0);
});

.post {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Chrome/Safari/Opera */
-khtml-user-select: none; /* Konqueror */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none;
}