-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathviewclusters.html
More file actions
60 lines (55 loc) · 1.68 KB
/
Copy pathviewclusters.html
File metadata and controls
60 lines (55 loc) · 1.68 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
<html lang="en">
<head>
<title>The Neighborhood</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://www.w3schools.com/lib/w3data.js"></script>
<script>
$(document).ready(function() {
$.get("http://custom-env.jjkdyjrpmq.us-east-1.elasticbeanstalk.com/cluster",
function(data){
console.log(data.clusterList.length);
for(i = 0; i < data.clusterList.length; i++){
$('#clusters').append('<tr><td>' + data.clusterList[i].name + '</td><td>'+ data.clusterList[i].address
+ '</td><td>'+data.clusterList[i].admin.firstName +'</td><td>'+data.clusterList[i].statusValue +'</td></tr></table>');
}
});
});
</script>
</head>
<body>
<!-- Header here -->
<div w3-include-html="moderatorheader.html"></div>
<script>
w3IncludeHTML();
</script>
<div class="container" style="text-align: center">
<h2>List of Clusters</h2>
<br/>
<div class="container">
<table id="clusters" class="table table-hover">
<thead>
<tr>
<th>Name</th>
<th>Address</th>
<th>Admin</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<!-- Data to be retrived from db-->
</tbody>
</table>
</div>
</div>
<br/>
<div w3-include-html="moderatorfooter.html"></div>
<script>
w3IncludeHTML();
</script>
<!-- Footer here -->
</body>
</html>