-
Notifications
You must be signed in to change notification settings - Fork 2
/
changelog.html
44 lines (36 loc) · 1.22 KB
/
changelog.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
<html>
<head>
<title>Wigo4it Tech Radar | Changelog</title>
<link rel="stylesheet" href="radar.css">
<link href='https://fonts.googleapis.com/css?family=Raleway' rel='stylesheet'>
</head>
<body>
<div class="center-box">
<img src="wigo4it-logo.svg" alt="Wigo4it logo">
<h1>Tech Radar</h1>
</div>
<div class="center-box">
<div id="changelog" class="column">
<h2>Changelog</h2>
</div>
</body>
<script>
const changelog = document.getElementById('changelog');
fetch("/versions/versions.json")
.then(response => response.json())
.then(data => {
data.sort((a, b) => a.version < b.version ? 1 : -1);
for (d of data) {
const h = document.createElement('h3');
const a = document.createElement('a');
a.setAttribute('href', d.version === data[0].version ? '/' : `/?version=${d.version}`);
a.append(document.createTextNode(d.title));
h.appendChild(a);
const p = document.createElement('p');
p.append(document.createTextNode(d.description));
changelog.appendChild(h);
changelog.appendChild(p);
}
});
</script>
</html>