-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathform.js
More file actions
36 lines (26 loc) · 769 Bytes
/
form.js
File metadata and controls
36 lines (26 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
function loginBtn(e) {
const num = document.getElementById('myInput').value;
if (num === "") {
setTimeout(function show() {
let snd = new Audio('https://drive.google.com/file/d/19qZ2Hxr_9zh7a2XSFHuJQUL-9RXVFGiH/view?usp=sharing');
snd.play()
}, 1000)
alert('Please enter 8 digit password')
} else if (num < 0) {
alert("Please enter positive password")
}
}
submit.addEventListener('click', loginBtn)
function myFunction() {
var x = document.getElementById("myInput");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
function upperCaseF(a) {
setTimeout(function () {
a.value = a.value.toUpperCase();
}, 1);
}