forked from matcool/gd-macro-converter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew.html
73 lines (72 loc) · 2.45 KB
/
new.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>New Macro Converter</title>
<style>
body {
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
background: #444;
color: white;
}
select {
background: #262626;
color: white;
padding: 7px;
border: none;
border-radius: 4px;
}
.mono-block {
font-family: monospace;
background-color: rgba(0, 0, 0, 0.3);
padding: 0.15em 0.3em;
}
.button {
all: unset;
cursor: pointer;
color: white;
background-color: #262626;
padding: 0.3125em 0.625em;
border-radius: 4px;
}
.button:hover {
background-color: #232323;
}
.button:active {
background-color: #202020;
}
</style>
</head>
<body>
<div style="display: flex; justify-content: center; margin-top: 5em;">
<div style="display: flex; flex-direction: column; width: 40em; gap: 0.5em;">
<div style="display: flex; justify-content: center; padding: 2.5em; background-color: #333; font-size: 2rem" id="drag-area">
{{dragAreaMessage}}
</div>
<div show-if="hasMacro" style="font-size: 1.05rem">
<div>File: <span class="mono-block">{{fileName}}</span></div>
<div show-if="guessFailed">Unable to guess macro type, please select it below</div>
<div show-if="!guessFailed">
Guessed macro type: {{macroType}} <br>
Is frame: {{macroFrame}} <br>
FPS: {{macroFPS}}
</div>
</div>
<label>
Converting from <bot-select id="select-from" />
</label>
<label>
Converting to <bot-select id="select-to" />
</label>
<div show-if="hasMacro">
<button id="convert-button" class="button">Convert</button>
</div>
</div>
</div>
<script src="https://unpkg.com/file-saver@2.0.5/dist/FileSaver.min.js"></script>
<script src="parser.js"></script>
<script src="new.js"></script>
</body>
</html>