-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
307 lines (291 loc) · 18.8 KB
/
index.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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
<!DOCTYPE html>
<html>
<head>
<title>Great learning</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container-fluid wrapper">
<!-- Banner section -->
<div class="row banner" id="banner">
<div class="overlay"></div>
<div class=" row bannerContent mb-3" >
<div class="logo">
<img src="assets/images/gl-logo-white.png" alt="logo">
</div>
<div class="row justify-content-md-center programs">
<div class="col-lg-6 col-sm-12 programContent">
<h2>PG Program in</h2>
<h2>Data Science and Business Analytics</h2>
<div class="programDesc">Learn Data Science, Business Analytics with india's #1 course and power ahead in your career</div>
<div class="programDuration">11 Months Online Mentorship</div>
</div>
<div class="col-lg-4 col-sm-8 registraionForm" id="registraionForm">
<div class="customTitle">Get Started Now</div>
<form class="form" name= "registraionForm" >
<div class="mb-3">
<input type="text" class="form-control" aria-describedby="nameHelp" name="name" placeholder="Name" required>
</div>
<div class="mb-3">
<input type="email" class="form-control" aria-describedby="emailHelp" name="email" placeholder="Enter email" required>
</div>
<div class="mb-3">
<input type="tel" class="form-control" aria-describedby="mobileHelp" name="mobile" placeholder="Mobile No." required>
</div>
<div class="mb-3">
<input type="password" class="form-control" name="password" placeholder="Password" required>
</div>
<div class="mb-3">
<input type="text" class="form-control" aria-describedby="workExpHelp" name="workexp" placeholder="Work Experience">
</div>
<div class="mb-3">
<select class="form-control">
<option>Current Organization</option>
<option>A</option>
<option>B</option>
<option>C</option>
<option>D</option>
</select>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" name="checkbox" aria-describedby="authorizeHelp">
<label class="form-check-label" for="exampleCheck1">I authorize Great Learning representative to contact me abount my interest in this program</label>
</div>
<div class="applyBtn mb-3">
<button class="btn btn-primary" type="button" onclick="validate()">Apply Now</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Celebrities recommendation -->
<div class="row justify-content-md-center width-80 recommendation">
<label class="customTitle col-sm-7" >WHY LEARN FROM GREAT LEARNING</label>
<div class="width-80 mb-3">
<iframe width="420" height="345" src="https://www.youtube.com/embed/KgxAnvhk2_U">
</iframe>
</div>
<div class="row features">
<div class="feature-desc col-md-2 yellowBg ">
<img src="assets/images/curriculum.svg" />
</div>
<div class="feature-desc col-md-2 blueBg">
<img src="assets/images/mentorship.svg"/>
</div>
<div class="feature-desc col-md-2 greenBg">
<img src="assets/images/career-assistance.svg"/>
</div>
</div>
<div class="row features">
<label>Comprehensive Curriculum</label>
<label>Personalised Mentorship</label>
<label>Dedicated Carrer Assistance</label>
</div>
</div>
</div>
<!-- Curriculum snapshot -->
<div class="row justify-content-md-center curriculum">
<label class="customTitle col-sm-3">CURRICULUM SNAPSHOT</label>
<div class="accordion accordion-flush width-80 mb-3" id="accordionFlushExample">
<div class="accordion-item">
<h2 class="accordion-header" id="flush-headingOne">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseOne" aria-expanded="false" aria-controls="flush-collapseOne">
Introduction to Data Science
</button>
</h2>
<div id="flush-collapseOne" class="accordion-collapse collapse" aria-labelledby="flush-headingOne" data-bs-parent="#accordionFlushExample">
<div class="accordion-body">Placeholder content for this accordion, which is intended to demonstrate the <code>.accordion-flush</code> class. This is the first item's accordion body.</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="flush-headingTwo">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseTwo" aria-expanded="false" aria-controls="flush-collapseTwo">
Business Finance
</button>
</h2>
<div id="flush-collapseTwo" class="accordion-collapse collapse" aria-labelledby="flush-headingTwo" data-bs-parent="#accordionFlushExample">
<div class="accordion-body">Placeholder content for this accordion, which is intended to demonstrate the <code>.accordion-flush</code> class. This is the second item's accordion body. Let's imagine this being filled with some actual content.</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="flush-headingThree">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseThree" aria-expanded="false" aria-controls="flush-collapseThree">
Marketing and CRM
</button>
</h2>
<div id="flush-collapseThree" class="accordion-collapse collapse" aria-labelledby="flush-headingThree" data-bs-parent="#accordionFlushExample">
<div class="accordion-body">Placeholder content for this accordion, which is intended to demonstrate the <code>.accordion-flush</code> class. This is the third item's accordion body. Nothing more exciting happening here in terms of content, but just filling up the space to make it look, at least at first glance, a bit more representative of how this would look in a real-world application.</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="flush-headingThree">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseThree" aria-expanded="false" aria-controls="flush-collapseThree">
SQL Programming
</button>
</h2>
<div id="flush-collapseThree" class="accordion-collapse collapse" aria-labelledby="flush-headingThree" data-bs-parent="#accordionFlushExample">
<div class="accordion-body">Placeholder content for this accordion, which is intended to demonstrate the <code>.accordion-flush</code> class. This is the third item's accordion body. Nothing more exciting happening here in terms of content, but just filling up the space to make it look, at least at first glance, a bit more representative of how this would look in a real-world application.</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="flush-headingThree">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseThree" aria-expanded="false" aria-controls="flush-collapseThree">
Advance Static
</button>
</h2>
<div id="flush-collapseThree" class="accordion-collapse collapse" aria-labelledby="flush-headingThree" data-bs-parent="#accordionFlushExample">
<div class="accordion-body">Placeholder content for this accordion, which is intended to demonstrate the <code>.accordion-flush</code> class. This is the third item's accordion body. Nothing more exciting happening here in terms of content, but just filling up the space to make it look, at least at first glance, a bit more representative of how this would look in a real-world application.</div>
</div>
</div>
</div>
</div>
<!-- Learning Outcome -->
<div class="row justify-content-md-center width-80">
<label class="customTitle col-sm-4">LEARNING OUTCOME</label>
<p class="col-sm-12">This is a dummy text to show sub title of Learning outcome which is extending through out the length of this section</p>
<div class="col-sm-12 col-lg-6 learning">
<ul class="learningList">
<li>This is the first item to show outcome. This is the first item to show outcome</li>
<li>This is the first item to show outcome. This is the first item to show outcome</li>
<li>This is the first item to show outcome. This is the first item to show outcome</li>
<li>This is the first item to show outcome. This is the first item to show outcome</li>
<li>This is the first item to show outcome. This is the first item to show outcome</li>
</ul>
</div>
<div class="col-sm-12 col-lg-6 laptop">
<img src="assets/images/laptop.png">
</div>
</div>
<!-- Testimonials -->
<div class="row justify-content-md-center width-80 testimonials" >
<label class="customTitle col-sm-2">TESTIMONIALS</label>
<div class="testimonialCarousal">
<div id="carouselExampleIndicators" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-indicators">
<button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="1" aria-label="Slide 2"></button>
<button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="2" aria-label="Slide 3"></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active">
<div class="d-block w-100"><i class="bi bi-chat-left-quote-fill"></i> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially . <i class="bi bi-chat-left-quote-fill"></i></div>
<div class="testimonialAuthor float-right">Senior Director, Business Development (Software Industry)</div>
</div>
<div class="carousel-item">
<div class="d-block w-100"><i class="bi bi-chat-left-quote-fill"></i> Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).<i class="bi bi-chat-left-quote-fill"></i>
<div class="testimonialAuthor float-right">Director, Business Development (Software Industry)</div>
</div>
</div>
<div class="carousel-item">
<div class="d-block w-100"><i class="bi bi-chat-left-quote-fill"></i> It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. <i class="bi bi-chat-left-quote-fill"></i></div>
<div class="testimonialAuthor float-right">AVP, Business Development (Software Industry)</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</div>
</div>
<!-- About -->
<div class="row justify-content-md-center aboutText">
<div class="width-80">There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable.</div>
</div>
<!-- Footer -->
<div class="row justify-content-md-center footer" id="footer">
<label>Explore this game changing opportunity
<a href="#registraionForm" type="button" class="btn btn-primary">Apply Now</a></label>
</div>
</div>
<!-- jQuery library -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<script>
window.onscroll = function(ev) {
if ( window.scrollY >= document.getElementById('banner').offsetHeight) {
document.getElementById("footer").classList.add("sticky");
}else{
document.getElementById("footer").classList.remove("sticky");
}
};
window.onload = function(){
let retrievedUser = JSON.parse(localStorage.getItem('user'));
if(retrievedUser){
document.registraionForm.name.value = retrievedUser.name ? retrievedUser.name : null;
document.registraionForm.email.value = retrievedUser.email ? retrievedUser.email: null;
document.registraionForm.mobile.value = retrievedUser.mobile ? retrievedUser.mobile : null;
document.registraionForm.checkbox.checked = retrievedUser.checked ? true :false;
}
}
function validate(){
let name = document.registraionForm.name.value;
let email = document.registraionForm.email.value;
let mobile = document.registraionForm.mobile.value;
let password = document.registraionForm.password.value;
let isChecked = document.registraionForm.checkbox.checked;
let hasError = false;
const re = /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;
if(name==null || name==""){
hasError = true;
document.registraionForm.name.className = document.registraionForm.name.className + " error";
}else{
document.registraionForm.name.className = document.registraionForm.name.className.replace('error', '');
}
if(isNaN(mobile) || mobile.length != 10){
hasError = true;
document.registraionForm.mobile.className = document.registraionForm.mobile.className + " error";
}else{
document.registraionForm.mobile.className = document.registraionForm.mobile.className.replace('error', '');
}
if(password.length < 6){
hasError = true;
document.registraionForm.password.className = document.registraionForm.password.className + " error";
}else{
document.registraionForm.password.className = document.registraionForm.password.className.replace('error', '');
}
if(!re.test(String(email).toLowerCase())){
hasError = true;
document.registraionForm.email.className = document.registraionForm.email.className + " error";
}
else{
document.registraionForm.email.className = document.registraionForm.email.className.replace('error', '');
}
if(!isChecked){
hasError = true;
document.registraionForm.checkbox.className = document.registraionForm.checkbox.className + " error";
}else{
document.registraionForm.checkbox.className = document.registraionForm.checkbox.className.replace('error', '');
}
if(!hasError){
let userInfo = {
name:name,
email: email,
mobile: mobile
}
let retrievedUser = JSON.parse(localStorage.getItem('user'));
if(retrievedUser.email == email){
alert('User already registered !!!')
}else{
localStorage.setItem('user', JSON.stringify(userInfo))
resetForm();
alert('Thanks for Registration !!!')
}
}
}
function resetForm(){
document.registraionForm.name.value = null;
document.registraionForm.email.value = null;
document.registraionForm.mobile.value = null;
document.registraionForm.password.value = null;
document.registraionForm.checkbox.checked = false;
}
</script>
</body>
</html>