forked from MLSC-BSOITR/Employment-Opportunities
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (48 loc) · 1.78 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
<!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">
<title>Employement Opportunities</title>
<link rel="stylesheet" href="styles.css">
<script src=
"https://code.jquery.com/jquery-3.5.1.js">
</script>
<script>
$(document).ready(function () {
$.getJSON('jobs.json', function (data) {
var count=0;
$.each(data.jobs, function (i, f) {
if(f.position != undefined && f.companyName != undefined && f.requirements != undefined && f.contactEmail != undefined)
{var tblRow = "<tr>" + "<td>" + ++count + "</td>" +
"<td>" + f.companyName + "</td>" + "<td>" + f.position + "</td>" + "<td>" + f.requirements + "</td>" + "<td>" + f.contactEmail + "</td>" + "</tr>"
$('#userdata tbody').append(tblRow);
}
});
});
});
</script>
</head>
<body>
<div class="wrapper">
<div class="profile">
<h1 class="heading"> Available Jobs </h1>
<table id="userdata" border="2">
<thead>
<th>Id</th>
<th>Company Name</th>
<th>Position</th>
<th>Requirements</th>
<th>Contact Email</th>
</thead>
<tbody class="contentBody">
</tbody>
</table>
</div>
</div>
<hr>
<hr>
<marquee>Jobs opening</marquee>
</body>
</html>