-
Notifications
You must be signed in to change notification settings - Fork 2
/
signup.html
174 lines (164 loc) · 5.15 KB
/
signup.html
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="signup.css" />
<link rel="stylesheet" href="/navbar.css">
<title>Signup</title>
</head>
<body>
<!-- navbar -->
<div id="navbar">
<div>
<img
onclick="window.location.href='index.html'"
src="https://static.naukimg.com/s/4/100/i/naukri_Logo.png"
alt="navLogo"
/>
</div>
<div id="navJob">
<div id="com1">
<p onclick="window.location.href='naukri.html'">Jobs</p>
<div class="hov1">
<h3>Popular categories</h3>
</div>
</div>
<div id="com2">
<p onclick="window.location.href='navcompnies.html'">companies</p>
<div class="hov2">
<h4>Explore categories</h4>
</div>
</div>
<div id="com3">
<p onclick="window.location.href='naukri.html'">Services</p>
<div class="hov3">
<h4>Resume writing</h4>
</div>
</div>
<div id="com4">
<p onclick="window.location.href='company.html'">Resources</p>
<div class="hov4">
<h4>Free resume_resources</h4>
</div>
</div>
</div>
<div id="navbtn">
<button onclick="window.location.href='login.html'">Login</button>
<button onclick="window.location.href='signup.html'">Register</button>
</div>
<div>
<select name="employ" id="navEmploy">
<option value="">For employers</option>
<option value="Buy online">Buy online</option>
<option value="our hiring solutions">Our Hiring Solutions</option>
<option value="Employer Login">Employer Login</option>
</select>
</div>
</div>
<!-- body -->
<div id="signup">
<div id="information">
<img
src="https://static.naukimg.com/s/7/104/assets/images/green-boy.c8b59289.svg"
alt=""
/>
<h2>On registering, you can</h2>
<p>✅ Build your profile and let recruiters find you</p>
<p>✅ Get job postings delivered right to your email</p>
<p>✅ Find a job and grow your career</p>
</div>
<div id="form_wala">
<form id="details">
<h1>Find a job & grow your career</h1>
<p>Full Name</p>
<input type="text" id="name" placeholder="What is your name?" />
<p>Email Id</p>
<input type="text" id="email" placeholder="Tell us your Email ID" />
<p>We'll send you relevant jobs in your mail</p>
<p>Password</p>
<input
type="password"
id="password"
minlength="6"
placeholder="Create a password for your account"
/>
<p>Minimum 6 character required</p>
<input
value="+91"
type="text"
id="mobile"
placeholder="Mobile Number"
/>
<p>Recruiters will call you on this number</p>
</form>
Work Status
<div id="work_status">
<div>
<h3>I'm Experienced</h3>
<p>I have work experience (excluding internships)</p>
</div>
<div>
<h3>I'm a Fresher</h3>
<p>I am a student/ Haven't worked after graduation</p>
</div>
</div>
<p>Current City</p>
<input
type="text"
id="city"
placeholder="Mention the city you live in"
/>
<p>Resume</p>
<button id="resume">Upload Resume</button
><span id="rData"> DOC, DOCx, PDF, RTF | Max: 2 MB</span>
<p>Recruiters give first preference to candidates who have a resume</p>
<p>
By clicking Register, you agree to the
<span class="term"> Terms and Conditions</span> &
<span class="term">Privacy Policy</span> of Naukri.com
</p>
<button id="register_wow">Register Now</button>
</div>
<div id="submit_button">
<p>Continue with</p>
<button id="google">Google</button>
</div>
</div>
</body>
</html>
<script>
var form = document.querySelector("form")
var arr = []
var registerData = document.querySelector("#register_wow").addEventListener("click",function(event){
event.preventDefault()
var obj ={
name:form.name.value,
password:form.password.value
}
arr.push(obj)
console.log(arr)
if(obj.name =="" || obj.password=="" )
{
console.log("hohohohoh")
alert("User credential cannot be blank")
}
else{
localStorage.setItem("userData",JSON.stringify(arr))
alert("Successfully Registered")
window.location.href="login.html"
}
})
document.querySelector("#navEmploy").addEventListener("click", slectFun);
function slectFun() {
event.preventDefault();
let a = document.querySelector("#navEmploy").value;
// console.log(a)
if (a === "Employer Login") {
window.location.href = "employlogin.html";
} else {
return false;
}
}
</script>