Fail vibration

Developer
Size
2,008 Kb
Views
10,120

How do I make an fail vibration?

Phone vibrate when form return failed result. What is a fail vibration? How do you make a fail vibration? This script and codes were developed by Anthony on 04 January 2023, Wednesday.

Fail vibration Previews

Fail vibration - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Fail vibration</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <form method="post" action="#" id="form">
<input id="input-1" type="text" placeholder="Firstname" required />
<button onclick="checkInput('input-1')" type="submit" class="button--submit">Send</button>
</form> <script src="js/index.js"></script>
</body>
</html>

Fail vibration - Script Codes CSS Codes

input,
button{ display: block; margin: 5px 0;
}

Fail vibration - Script Codes JS Codes

function checkInput(input) { input = document.getElementById(input); if(input.checkValidity() === false){ if (navigator.vibrate !== undefined) { navigator.vibrate([50, 100, 50]); } }
}
Fail vibration - Script Codes
Fail vibration - Script Codes
Home Page Home
Developer Anthony
Username Tonours
Uploaded January 04, 2023
Rating 3
Size 2,008 Kb
Views 10,120
Do you need developer help for Fail vibration?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Anthony (Tonours) Script Codes
Create amazing art & images with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!