-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
30 lines (29 loc) · 1010 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Genealogy Research Links</title>
</head>
<body>
<h1>Genealogy Information R64 26-5-2024</h1>
<ul id="linkList"></ul>
<script>
// Fetch the JSON file
fetch('links.json')
.then(response => response.json())
.then(data => {
const linkList = document.getElementById('linkList');
data.links.forEach(link => {
const listItem = document.createElement('li');
const anchor = document.createElement('a');
anchor.href = link.URL;
anchor.textContent = link.Name;
listItem.appendChild(anchor);
linkList.appendChild(listItem);
});
})
.catch(error => console.error('Error fetching JSON:', error));
</script>
</body>
</html>