-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSCRIPT.html
More file actions
114 lines (109 loc) · 2.49 KB
/
SCRIPT.html
File metadata and controls
114 lines (109 loc) · 2.49 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html>
<head>
<script>
function formvalidate()
{
var y=document.getElementById("name").value;
var z=y.toLowerCase;
var pat=/[a-z]{1,30}/;
var c=pat.test(z);
if(c==false)
{
alert("wrong name input");
return false;
}
var y=document.getElementById("mobile").value;
pat=/[0-9]{10}/;
c=pat.test(y);
if(c==false)
{
alert("wrong mobile input");
return false;
}
var y=document.getElementById("email").value;
pat=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
c=pat.test(y);
if(c==false)
{
alert("wrong email input");
return false;
}
var pas1=document.getElementById("password").value;
var pas2=document.getElementById("retype").value;
if(pas1!=pas2)
{
alert(" both password should be same");
}
}
</script>
<style type="text/css">
#login
{
height: 100vh;
width: 100%;
background-image: url(sign.jpg);
background-size: cover;
}
#form
{
height: 200px;
width: 100px;
position: relative;
top:40%;
left:20%;
}
input,button
{
color:white;
background: none;
border: none;
border-bottom: 2px solid white;
padding 50px;
margin:20px;
font-family: cursive;
position: relative;
left: 350px;
top:-150px;
text-transform: uppercase;
opacity: 1;
}
#login_heading
{
position: relative;
top:-200px;
left:350px;
color: white;
font-size: 40px;
font-family: cursive;
width:30ch;
text-shadow: 0 0 10px green, 0 0 20px green, 0 0 30px green, 0 0 40px green, 0 0 50px green, 0 0 60px green, 0 0 70px green;
opacity: 1;
}
button
{
background:none;
font-family: cursive;
color: white;
background: 2px solid white;
border-radius: 40%;
position: relative;
left: 405px;
}
</style>
</head>
<body>
<div id="login">'
<form id="form" onsubmit="return formvalidate()" action="google.com">
<div id="login_heading" >SIGN UP FORM</div>
<br>
<input type="text" placeholder="NAME" id="name">
<input type="text" placeholder="MOBILE_NUMBER" id="mobile">
<input type="text" placeholder="EMAIL" id="email">
<input type="password" placeholder="PASSWORD" id="password">
<input type="password" placeholder="RETYPEPASSWORD" id="retype">
<button type ="submit" value="submit">SUBMIT</button>
</form>
</div>
</body>
</html>