-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (54 loc) · 2.72 KB
/
index.html
File metadata and controls
55 lines (54 loc) · 2.72 KB
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
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Mod Handler</title>
<link href="./style.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
</head>
<body>
<div class="toast align-items-center text-bg-primary border-0" role="alert" aria-live="assertive" aria-atomic="true">
<div class="d-flex">
<div class="toast-body">
Hello, world! This is a toast message.
</div>
<button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
</div>
<div class="input-group mb-3">
<input type="text" id="mod-slug" class="form-control" placeholder="Modrinth Slug" aria-label="Modrinth Slug" aria-describedby="basic-addon2">
<button class="btn btn-outline-secondary" type="button" id="button-addon2" onclick="addMod()">Add Mod</button>
</div>
<p id="slug-warning" class="warning"></p>
<div id="mod-list-el">
<h1>Mod List:</h1>
<p>Currently only compatible with Fabric mods</p>
<ul id="mod-list" class="list-group"></ul>
</div>
<div id="options">
<h1>Options:</h1>
<button type="button" class="btn btn-primary" onclick="downloadMods()">Download/Update all mods</button>
<button type="button" class="btn btn-primary" id="save-btn" onclick="saveData()">Save Data</button>
<p id="download-warning" class="warning"></p>
<p id="save-warning" class="warning"></p>
<ul class="list-group" id="download-featured-el">
<li class="list-group-item">
<input class="form-check-input me-1" type="checkbox" value="" id="download-featured">
<label class="form-check-label stretched-link" for="download-featured">Only download featured releases</label>
</li>
<li class="list-group-item">
<input class="form-check-input me-1" type="checkbox" value="" checked id="download-stable">
<label class="form-check-label stretched-link" for="download-stable">Only download stable releases</label>
</li>
</ul>
<br>
<h4>Game Versions</h4>
<div class="input-group mb-3">
<p>This will prefer the most recent mod release for the selected version(s)</p>
<ul id="version-select" class="list-group"></ul>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script>
<script src="./renderer.js"></script>
</body>
</html>