-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcareerdetails.html
594 lines (489 loc) · 24 KB
/
careerdetails.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
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
<!doctype html>
<html lang="zxx">
<title id="head"></title>
<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="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/animate.min.css">
<link rel="stylesheet" href="assets/fonts/remixicon.css">
<link rel="stylesheet" href="assets/css/owl.carousel.min.css">
<link rel="stylesheet" href="assets/css/owl.theme.default.min.css">
<link rel="stylesheet" href="assets/css/metismenu.min.css">
<link rel="stylesheet" href="assets/css/simplebar.min.css">
<link rel="stylesheet" href="assets/css/dropzone.min.css">
<link rel="stylesheet" href="assets/css/magnific-popup.css">
<link rel="stylesheet" href="assets/css/odometer.min.css">
<link rel="stylesheet" href="assets/css/meanmenu.min.css">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/table.css">
<link rel="stylesheet" href="assets/css/responsive.css">
<link rel="stylesheet" href="assets/css/theme-dark.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<title>eDvance - ${data.title}</title>
<link rel="icon" type="image/png" href="assets/images/favicon.png">
</head>
<body>
<div class="preloader">
<div class="d-table">
<div class="d-table-cell">
<div class="spinner"></div>
</div>
</div>
</div>
<div class="navbar-area">
<div class="mobile-responsive-nav">
<div class="container-fluid">
<div class="mobile-responsive-menu">
<div class="logo">
<a href="index.html">
<img src="assets/images/logo.png" class="logo-one" alt="Logo">
<img src="assets/images/logo-2.png" class="logo-two" alt="Logo">
</a>
</div>
</div>
</div>
</div>
<div class="desktop-nav desktop-nav-one nav-area">
<div class="container-fluid">
<nav class="navbar navbar-expand-md navbar-light ">
<a class="navbar-brand" href="index.html">
<img src="assets/images/logo.png" class="logo-one" alt="Logo">
<img src="assets/images/logo-2.png" class="logo-two" alt="Logo">
</a>
<div class="collapse navbar-collapse mean-menu" id="navbarSupportedContent">
<ul class="navbar-nav">
<li class="nav-item">
<a href="index.html" class="nav-link">
Home
</a>
</li>
<li class="nav-item">
<a href="about-us.html" class="nav-link">
About Us
</a>
</li>
<li class="nav-item">
<a href="contact.html" class="nav-link">
Contact Us
</a>
</li>
<!-- <li class="nav-item">
<a href="#" class="nav-link">
Languages
<i class="ri-arrow-down-s-line"></i>
</a>
<ul class="dropdown-menu">
<li class="nav-item">
<button class="backtr" onclick="changeLanguage1()">
<a class="nav-link"> English </a>
</button>
</li>
<li class="nav-item">
<button class="backtr" onclick="changeLanguage('bn')">
<a class="nav-link">Bengali</a>
</button>
</li>
<li class="nav-item">
<button class="backtr" onclick="changeLanguage('kn')">
<a class="nav-link">Kannada</a>
</button>
</li>
<li class="nav-item">
<button class="backtr" onclick="changeLanguage('hi')">
<a class="nav-link">Hindi</a>
</button>
</li>
<li class="nav-item">
<button class="backtr" onclick="changeLanguage('pa')">
<a class="nav-link">Punjabi</a>
</button>
</li>
<li class="nav-item">
<button class="backtr" onclick="changeLanguage('gu')">
<a class="nav-link">Gujrathi</a>
</button>
</li>
<li class="nav-item">
<button class="backtr" onclick="changeLanguage('mr')">
<a class="nav-link">Marathi</a>
</button>
</li>
</ul>
</li> -->
<li class="nav-item">
<a href="#" class="nav-link">
More
<i class="ri-arrow-down-s-line"></i>
</a>
<ul class="dropdown-menu">
<li class="nav-item">
<a href="categories.html" class="nav-link">
Career Guides
</a>
</li>
<li class="nav-item">
<a href="aptitude.html" class="nav-link">
Aptitude Test
</a>
</li>
</ul>
</li>
</ul>
<div class="others-options d-flex align-items-center">
<div class="navbar-nav">
<li class="nav-item">
<a class="nav-link">
<i class="" id="lightMode-icon"></i>
</a>
</li>
<li> </li>
</div>
<!-- <div class="optional-item">
<a href="student-info.html" class="default-btn two border-radius-5">Get Started
<i class="ri-user-3-line"></i></a>
</div> -->
<div class="optional-item">
<a href="ai-chat.html" class="default-btn border-radius-5">AI Chat
<i class="ri-user-5-line"></i></a>
</div>
</div>
</div>
</nav>
</div>
</div>
<div class="side-nav-responsive">
<div class="container-max">
<div class="dot-menu">
<div class="circle-inner">
<div class=""><i class="" id="lightMode-icon1"></i></div>
</div>
</div>
</div>
</div>
</div>
<div class="inner-banner">
<div class="container">
<div class="inner-title text-center" id="title"></div>
</div>
</div>
<div class="career-details-area pt-50 ptb-45">
<div class="container">
<div class="career-details-content">
<div class="content">
<ul id="dur"></ul>
</div>
<div class="career-articel">
<h3 id="head1">What Makes This Career Worth Pursuing?</h3>
<div class="bar"></div>
<p id="p1_1"></p>
<p id="p1_2"></p>
</div>
<!-- <blockquote class="blockquote">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Feugiat enim a erat sit vulputate
elementum orci. Risus nec viverra ornare venenatis proin ac varius tristique ut. Vitae egestas
tellus amet nulla cursus in that.
</p>
<span>Thomas Deltom</span>
<div class="line1"></div>
<div class="line2"></div>
</blockquote> -->
</div>
<div class="career-preview-img ptb-45" id="img"></div>
<div class="career-details-content">
<div class="career-articel">
<h3 id="head2">Description</h3>
<div class="bar"></div>
<p id="desc"></p>
</div>
<div class="career-portfolio">
<h3 id="head3">Skills You Need</h3>
<div class="bar"></div>
</div>
<div class="career-details-list-two" id="skillsList">
</div>
<div class="career-portfolio">
<h3 id="head4">How To Pursue</h3>
<div class="bar"></div>
</div>
<div class="career-details-list-two" id="educationList"></div>
<div class="career-details-list">
<h3 id="head23">Job Opportunities</h3>
<div class="bar" id="head23_bar"></div>
<div class="row">
<div class="col-lg-6 col-md-6" id="jobOpportunitiesLeft"></div>
<div class="col-lg-6 col-md-6" id="jobOpportunitiesRight"></div>
</div>
</div>
<div class="career-portfolio">
<h3 id="head24">Top Indian Institutes</h3>
<div class="bar" id="head24_bar"></div>
</div>
<div class="career-details-list-two" id="insti"></div>
<div class="career-portfolio">
<h3 id="head25">Pros</h3>
<div class="bar"></div>
</div>
<div class="career-details-list-two" id="pros"></div>
<div class="career-portfolio">
<h3 id="head26">Cons</h3>
<div class="bar"></div>
</div>
<div class="career-details-list-two" id="cons"></div>
<div class="comments-form" style="text-align: center !important;">
<div class="contact-form" onMouseOver="this.style.borderColor='#00CA99'"
onMouseOut="this.style.borderColor='#c4c4c4'">
<h3 id="head27">Are you Confused?</h3>
<h6 id="head29" style="color: var(--bodyColor); font-size: 16px;" class="pb-7">Talk To Our AI
Counsellor</h6>
<form id="" action="ai-chat.html">
<div class="row">
<div class="col-lg-12 col-md-12">
<button class="default-btn border-radius-5" id="head28">
Chat Here <i class="ri-chat-4-line"></i>
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<footer class="footer-area" id="footer">
</footer>
<script>
$.get("footer.html", function (data) {
$("#footer").replaceWith(data);
});
</script>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/jquery.magnific-popup.min.js"></script>
<script src="assets/js/odometer.min.js"></script>
<script src="assets/js/jquery.appear.min.js"></script>
<script src="assets/js/meanmenu.min.js"></script>
<script src="assets/js/metismenu.min.js"></script>
<script src="assets/js/simplebar.min.js"></script>
<script src="assets/js/dropzone.min.js"></script>
<script src="assets/js/sticky-sidebar.min.js"></script>
<script src="assets/js/tweenMax.min.js"></script>
<script src="assets/js/owl.carousel.min.js"></script>
<script src="assets/js/wow.min.js"></script>
<script src="assets/js/jquery.ajaxchimp.min.js"></script>
<script>
async function fetchJson() {
try {
// Replace 'careers.json' with the correct path to your JSON file
const response = await fetch('careers.json');
const data = await response.json();
return data;
} catch (error) {
console.error('Error fetching JSON:', error);
}
}
// Call the async function and assign the result to 'careers'
(async () => {
const careers = await fetchJson();
// Handle the 'careers' variable as needed
function getQueryParam(name) {
const urlParams = new URLSearchParams(window.location.search);
return urlParams.get(name);
}
function getCareerDetails(careerid) {
// const career = careers.find(c => c.careerid === careerid);
// if (career) {
// console.log("Found career details:", career);
// return career;
// } else {
// console.error("Career not found with careerid:", careerid);
// return null; // Return null or handle the absence of a matching career
// }
return career = careers.find(c => c.careerid === careerid);
}
const careerid = getQueryParam('careerid');
const data = getCareerDetails(careerid.replace(/["']/g, ''));
function createSkillsList() {
const skillsListContainer = document.getElementById('skillsList');
const skillsList = data.skills.map((skill, index) => `<li id="qw1_${index + 1}">${skill}</li>`).join('');
skillsListContainer.innerHTML = `<ul>${skillsList}</ul>`;
}
createSkillsList()
function staticData() {
const descriptionContainer = document.getElementById('desc');
descriptionContainer.innerHTML = `${data.desc}`;
const p1_1Container = document.getElementById('p1_1');
p1_1Container.innerHTML = `${data.p1_1}`;
const p1_2Container = document.getElementById('p1_2');
p1_2Container.innerHTML = `${data.p1_2}`;
const imgContainer = document.getElementById('img');
imgContainer.innerHTML = `<img src=${data.img1} alt=${data.alt1}>`;
const headContainer = document.getElementById('head');
headContainer.innerHTML = `eDvance - ${data.title}`;
const durContainer = document.getElementById('dur');
durContainer.innerHTML = `
<li>
<i class="ri-time-line"></i> <span id="dur1">${data.duration}</span>
</li>
<li><a href=${data.cat_dir} id="dur2">${data.cat}</a></li>
`;
const titleContainer = document.getElementById('title');
titleContainer.innerHTML = `
<h3 id="tit1">${data.title}</h3>
<ul>
<li>
<a href="index.html">Home</a>
</li>
<li>
<a href=${data.cat_dir} id="tit2">${data.cat}</a>
</li>
</ul>`;
}
staticData()
function createProsList() {
const prosListContainer = document.getElementById('pros');
const prosList = data.pros.map((pro, index) => `<li id="qw6_${index + 1}">${pro}</li>`).join('');
prosListContainer.innerHTML = `<ul>${prosList}</ul>`;
}
createProsList()
function createConsList() {
const consListContainer = document.getElementById('cons');
const consList = data.cons.map((con, index) => `<li id="qw7_${index + 1}">${con}</li>`).join('');
consListContainer.innerHTML = `<ul>${consList}</ul>`;
}
createConsList()
function createEducationList() {
const educationListContainer = document.getElementById('educationList');
const educationList = data.educ.map((education, index) => `<li id="qw2_${index + 1}">${education}</li>`).join('');
educationListContainer.innerHTML = `<ul>${educationList}</ul>`;
}
createEducationList();
function createJobOpportunitiesLeft() {
if (data.opp_l.length == 0) {
const instiTitle = document.getElementById("head23");
instiTitle.textContent = "";
const instibar = document.getElementById("head23_bar");
instibar.classList.remove("bar");
}
else {
const jobOpportunitiesLeftContainer = document.getElementById('jobOpportunitiesLeft');
const jobOpportunitiesLeftList = data.opp_l.map((opp, index) => `
<ul>
<li><i class="ri-check-line"></i><span id="qw3_${index + 1}">${opp}</span></li>
</ul>
`).join('');
jobOpportunitiesLeftContainer.innerHTML = jobOpportunitiesLeftList;
}
}
createJobOpportunitiesLeft();
function createInstiList() {
if (data.insti.length == 0) {
const instiTitle = document.getElementById("head24");
instiTitle.textContent = "";
const instibar = document.getElementById("head24_bar");
instibar.classList.remove("bar");
}
else {
const instiListContainer = document.getElementById('insti');
const instiListItems = data.insti.map((inst, index) => `
<ul>
<a class="pb-7" href="${inst.link}" target="_blank">
<li id="qw5_${index + 1}">${inst.name}</li>
</a>
</ul>
`).join('');
instiListContainer.innerHTML = instiListItems;
}
}
createInstiList();
function createJobOpportunitiesRight() {
const jobOpportunitiesRightContainer = document.getElementById('jobOpportunitiesRight');
const jobOpportunitiesRightList = data.opp_r.map((opp, index) => `
<ul>
<li><i class="ri-check-line"></i><span id="qw4_${index + 1}">${opp}</span></li>
</ul>
`).join('');
jobOpportunitiesRightContainer.innerHTML = jobOpportunitiesRightList;
}
createJobOpportunitiesRight();
localStorage.setItem("sk_len", data.skills.length);
localStorage.setItem("pur_len", data.educ.length);
localStorage.setItem("oppl_len", data.opp_l.length);
localStorage.setItem("oppr_len", data.opp_r.length);
localStorage.setItem("insti_len", data.insti.length);
localStorage.setItem("pro_len", data.pros.length);
localStorage.setItem("con_len", data.pros.length);
})();
function changeLanguage1() {
location.reload()
}
function changeLanguage(lang) {
const skil_len = localStorage.getItem("sk_len");
const skillid = []
for (var i = 0; i < skil_len; i++)
skillid.push("qw1_" + (i + 1));
const purs_len = localStorage.getItem("pur_len");
const purid = []
for (var i = 0; i < purs_len; i++)
purid.push("qw2_" + (i + 1));
const oppl_len = localStorage.getItem("oppl_len");
const opplid = []
for (var i = 0; i < oppl_len; i++)
opplid.push("qw3_" + (i + 1));
const oppr_len = localStorage.getItem("oppr_len");
const opprid = []
for (var i = 0; i < oppr_len; i++)
opprid.push("qw4_" + (i + 1));
const insti_len = localStorage.getItem("insti_len");
const instiid = []
for (var i = 0; i < insti_len; i++)
instiid.push("qw5_" + (i + 1));
const pro_len = localStorage.getItem("pro_len");
const proid = []
for (var i = 0; i < pro_len; i++)
proid.push("qw6_" + (i + 1));
const con_len = localStorage.getItem("con_len");
const conid = []
for (var i = 0; i < con_len; i++)
conid.push("qw7_" + (i + 1));
// Your Google Cloud Translation API key
const apiKey = 'REPLACE WITH YOUR OWN CLOUD TRANSLATION API KEY';
// List of element IDs to translate
const elementID = ['desc', 'p1_1', 'p1_2', "head1", "head2", "head3", "head4", "head23", "head24", "head25", "head26", "head27", "head28", "head29", "dur1", "dur2", "tit1", "tit2"];
const elementIDs = elementID.concat(skillid, purid, opplid, opprid, instiid, proid, conid);
console.log(elementIDs)
// Make API request for each element
elementIDs.forEach(elementID => {
const element = document.getElementById(elementID);
// Check if the element exists and has text content
if (element && element.textContent.trim() !== '') {
const textToTranslate = element.textContent;
// Make API request
fetch(`https://translation.googleapis.com/language/translate/v2?key=${apiKey}`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
q: [textToTranslate],
target: lang,
}),
})
.then(response => response.json())
.then(data => {
// console.log(data);
// Update content with translated text
element.textContent = data.data.translations[0].translatedText;
})
.catch(error => console.error('Error:', error));
}
});
}
</script>
<script src="assets/js/form-validator.min.js"></script>
<script src="assets/js/contact-form-script.js"></script>
<script src="assets/js/custom.js"></script>
</body>
</html>