blob: bd72c29476e7d7f9fe214e58a2c3416f06d59595 (
plain)
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
|
<html>
<head>
<link rel="stylesheet" href="new.min.css">
</head>
<body>
<script type="text/javascript">
var jsonFile;
var active;
fetch("kalauerdb.json")
.then(res => res.json())
.then(data => populate_page(data));
function populate_page(data)
{
active = data
kalauer()
}
function kalauer(){
console.log(active)
}
</script>
<header>Welcome to the Kalauer Club</header>
<h1>Your Kalauer</h1>
<p>
<a href="#" onclick="kalauer()">
<button>Neuer Kalauer</button>
</a>
</p>
<h1>Kalauer Roster</h1>
<p>
<table>
<tr>
<th>Name</th>
<th>Weight</th>
<th>Weight</th>
<th>Approved</th>
<th>Rejected</th>
<th>Active</th>
</tr>
</table>
</p>
</body>
</html>
|