diff options
| author | iceyrazor <iceyfoxservers@gmail.com> | 2024-08-25 04:28:32 -0500 |
|---|---|---|
| committer | iceyrazor <iceyfoxservers@gmail.com> | 2024-08-25 04:28:32 -0500 |
| commit | e76582ebac3fa4f9c83009f6e9409c4c5bb95618 (patch) | |
| tree | 79aaf499262d2299c92b522115841545f555db0f /src/web/index.html | |
init
Diffstat (limited to 'src/web/index.html')
| -rw-r--r-- | src/web/index.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/web/index.html b/src/web/index.html new file mode 100644 index 0000000..8721acc --- /dev/null +++ b/src/web/index.html @@ -0,0 +1,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>
\ No newline at end of file |
