Fail vibration
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 - 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]); } }
}
Developer | Anthony |
Username | Tonours |
Uploaded | January 04, 2023 |
Rating | 3 |
Size | 2,008 Kb |
Views | 10,120 |
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!
Name | Size |
Remember MSN Wizz | 2,206 Kb |
Button hover | 2,867 Kb |
Send button effect | 2,754 Kb |
Bender edit profile | 4,818 Kb |
Svg animation test | 2,338 Kb |
Background Animation | 4,554 Kb |
A Pen by Anthony | 7,238 Kb |
SVG fill animation | 2,203 Kb |
Simple form input effect | 3,080 Kb |
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!
Name | Username | Size |
Formations | Cantelope | 5,731 Kb |
A Pen by Ash | Littleginger | 2,386 Kb |
Angular Sandbox | Alexgurrola | 1,616 Kb |
3d css cube | Semenchenko | 4,578 Kb |
Polygon Logo in CSS | Kai | 3,412 Kb |
Brown by pure CSS, no image, no javascript | Aaronchuo | 2,652 Kb |
A form arranged using automatic placement. | Vikasford | 2,103 Kb |
Subscription Newsletter - Before inlining | Bradstrong | 7,526 Kb |
Bootstrap Carousel Fade Transition | Rowno | 2,484 Kb |
A Pen by Kenny Mark | Kennymark | 5,574 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!