-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlife_and_honorary.html
53 lines (44 loc) · 1.85 KB
/
life_and_honorary.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
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
</head>
<body>
<div id="nav"></div>
<div id="content">
<div id="picture-header"></div>
<div class="title-container">
<div class="w3-center title">
<h1 class="blue">Gamma Pi Life and Honorary Members</h1>
</div>
</div>
<div class="w3-container w3-padding-32" style="background-color: #DFDFDF; border-top: 2px solid #09268a; border-bottom: 2px solid #09268a;">
<h2 id="life-and-honorary-header" class="blue">These brothers have graciously supported our chapter through lifetime membership</h2>
<div id="life-and-honorary" class="w3-container w3-margin-top w3-margin-bottom"></div>
<h2 class="blue" style="text-align: center;">Thank You</h2>
</div>
</div>
<div id="footer"></div>
</body>
<script src="static/script.js"></script>
<script type="text/javascript">
fetch('static/life_and_honorary.json', {
method: 'GET'
})
.then(response => response.json())
.then(json => getMembers(json));
function getMembers(json) {
for (let i = 0; i < json.members.length; i++) {
var element = document.createElement("span");
var node = document.createTextNode(json.members[i]);
element.appendChild(node);
if (i == json.members.length-1 && i%3 == 0){
element.style.marginLeft = "35.5%";
i++;
}
element.classList.add("life-and-honorary-col-" + (i%3 + 1));
document.getElementById("life-and-honorary").appendChild(element);
}
}
</script>
</html>