aboutsummaryrefslogtreecommitdiff
path: root/src/web/index.html
blob: 8721acc3a4b70d62e9d4ba509c740842602805d7 (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
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>
	<div align="center">
	<h1>modpack webpage</h1>
	<p>here is a list of modpacks</p>

	<div id="modpacks"></div>
	</div>

	<script type="text/javascript">
		fetch("/modpacklist")
		.then(res=>res.json())
		.then(res=>{
			res.forEach(modpack_name=>{
				modpacks.innerHTML+='<div><a href="/modpacks/'+modpack_name+
				'">'+modpack_name+'</div>';
			})
		})
	</script>
</body>
</html>