-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
66 lines (56 loc) · 2.08 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
<html>
<head>
<title>Stickerpicker migration generator</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
</head>
<body>
<script src="browser-matrix.js"></script>
<script src="main.js"></script>
<div>
<input type="text" id="homeserver" placeholder="Homeserver URL">
<input type="text" id="token" placeholder="Access Token">
<button type="button" id="login" onClick="login()">Log in</button>
</div>
<div>
<label>Avatar: </label>
<input type="file" id="avatar">
</div>
<div id="stickerpack">
<datalist id="authorTypeList">
<option value="none">
</datalist>
<datalist id="licenseList">
<option value="unknown">
<option value="GPL-v3.0">
<option value="CC BY-NC 4.0">
</datalist>
<datalist id="licensePathList">
<option value="/licenses/gpl-v3.0.txt">
<option value="/licenses/cc_by-nc_4.0.txt">
</datalist>
<div>
<input type="text" id="name" placeholder="Name of Stickerpack">
<input type="text" id="description" placeholder="Description of Stickerpack">
</div>
<div>
<input type="text" id="authorType" placeholder="Type of Author" list="authorTypeList">
<input type="text" id="authorReference" placeholder="Author Reference (link)">
<input type="text" id="authorName" placeholder="Author Name">
</div>
<div>
<input type="text" id="license" placeholder="License" list="licenseList">
<input type="text" id="licensePath" placeholder="path to license in dimension" list="licensePathList">
</div>
</div>
<div>
<label>Stickers: </label>
<input type="file" id="upload" multiple>
<button type="button" onClick="multiUpload()">Upload to homeserver</button>
</div>
<div id="preview"></div>
<div>
<button type="button" onClick="generateMigration()">Generate migration</button>
</div>
<textarea id="result" style="width: 100%; height: 100%;" value="" autocomplete="off"></textarea>
</body>
</html>