forked from SuperFola/TierListMaker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
232 lines (226 loc) · 7.6 KB
/
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
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<!DOCTYPE html>
<html lang="en">
<head>
<title>TierListMaker</title>
<meta charset="utf-8" />
<meta name="author" content="Nicholas VanCise" />
<meta name="description" content="Tier List maker" />
<meta name="keywords" content="tier list, online, ranking" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"
></script>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.15.3/css/all.css"
integrity="sha384-SZXxX4whJ79/gErwcOYf+zWLeJdY/qpuqC4cAa9rOGUstPomtqpuNWT9wdPEn2fk"
crossorigin="anonymous"
/>
<link href="assets/css/colors.css" rel="stylesheet" />
<link href="assets/css/custom.css" rel="stylesheet" />
<script src="assets/js/html2canvas.min.js" defer></script>
<script src="assets/js/utils.js" defer></script>
<script src="assets/js/export2image.js" defer></script>
<script src="assets/js/saveModal.js" defer></script>
<script src="assets/js/tier-table.js" defer></script>
<script src="assets/js/main.js" defer></script>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">TierListMaker</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a
class="nav-link"
target="_blank"
href="https://github.com/thenick775/TierListMaker"
>
Source code
<span class="icon">
<i class="fab fa-github"></i>
</span>
</a>
</li>
<li class="nav-item">
<a id="btn-export" class="nav-link" href="#">
Screenshot
<span class="icon">
<i class="fa fa-print"></i>
</span>
</a>
</li>
<li class="nav-item">
<a
id="btn-help"
class="nav-link"
href="#"
data-bs-toggle="modal"
data-bs-target="#helpModal"
>
Help
<span class="icon">
<i class="fa fa-hands-helping"></i>
</span>
</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container-md">
<div class="d-flex flex-lg-row flex-column-reverse align-items-start">
<div class="w-100 p-2">
<table class="table">
<thead>
<tr>
<th scope="col" class="col-1 text-center">Tier</th>
<th scope="col" class="col-9 text-center">Content</th>
<th scope="col" class="col-2 text-center" id="settings">
<span class="d-none d-md-inline">Settings</span>
<span class="icon">
<i class="fas fa-cog"></i>
</span>
</th>
</tr>
</thead>
<tbody id="tableBody"></tbody>
</table>
<button id="addRowButton" type="button" class="btn btn-primary">
Add row
</button>
</div>
</div>
</div>
<div
class="modal"
id="addContentModal"
tabindex="-1"
aria-labelledby="addContentModalLabel"
aria-hidden="true"
>
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="addContentModalTitle"></h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body" id="addContentModalBody">
<form>
<div class="mb-3">
<label for="formFile" class="form-label">Choose an image</label>
<input
class="form-control"
type="file"
accept="image/x-png,image/gif,image/jpeg,image/png"
multiple
id="formFile"
/>
</div>
<div class="form-check form-switch">
<input
class="form-check-input"
type="checkbox"
id="flexSwitchCheckDefault"
/>
<label class="form-check-label" for="flexSwitchCheckDefault"
>Stretch image</label
>
</div>
<div class="mb-3">
<label for="colorInput" class="form-label">Tier color</label>
<input
type="color"
class="form-control form-control-color"
id="colorInput"
value="#563d7c"
title="Choose your color"
/>
</div>
</form>
</div>
<div class="modal-footer">
<button
type="button"
class="btn btn-secondary"
data-bs-dismiss="modal"
>
Close
</button>
<button
type="button"
class="btn btn-primary"
id="addContentModalSaveBtn"
>
Save changes
</button>
</div>
</div>
</div>
</div>
<div
class="modal fade"
id="helpModal"
tabindex="-1"
role="dialog"
aria-labelledby="helpModalLabel"
aria-hidden="true"
>
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="helpModalLabel">Help</h5>
</div>
<div class="modal-body">
<p>Drag an image outside of the tier list to remove it.</p>
<p>Drag and drop images between tiers to transfer them.</p>
<p>
Drag and drop images over other images to reorder them within a
tier.
</p>
<p>Drag images from your computer to quickly add them to a tier.</p>
<p>
Use the "Settings" column to add bulk images to tiers, change tier
colors, and move tiers up and down in the tier list.
</p>
</div>
<div class="modal-footer">
<button
type="button"
class="btn btn-secondary"
data-bs-dismiss="modal"
>
Close
</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
</body>
</html>