-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
89 lines (85 loc) · 3.26 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>JSON制作器v2汉化版</title>
<link href="https://fonts.googleapis.com/css?family=PT+Sans&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>JSON制作器v2(lchzh汉化)</h1>
<p style="font-size: 10pt">
作者:tastyBlackTiles#3429<br>
创建于2019年3月13日<br>
v2初版发布于2019年9月21日<br>
更新于2019年9月25日<br>
-<br>
将代码放在第一个框中,然后单击“创建”按钮生成代码。<br>
要查看歌曲的信息,单击“查看信息”按钮。<br>
单击“保存JSON文件”按钮以保存您的自定义歌曲文件。
</p>
<textarea id="input" placeholder="c1[L],d1[L],e1[L],f1[L],g1[L],a1[L],b1[L],c2[L];"></textarea>
<textarea id="output" placeholder="最终输出将在这里。:)" readonly></textarea>
<hr>
<form>
<span id="bpm_text">BPM:</span>
<input type="number" style="width: 48px" id="bpm">—baseBeats:
<select id="bb">
<option value="0.0625">0.0625</option>
<option value="0.125">0.125</option>
<option value="0.25">0.25</option>
<option value="0.375">0.375</option>
<option value="0.5" selected>0.5</option>
<option value="0.75">0.75</option>
<option value="1">1</option>
</select>—
<input type="checkbox" id="bpm_to_tps" onclick="check()">BPM到TPS—
<input type="checkbox" id="mutes_to_spaces">Mutes到Spaces—
<input type="checkbox" id="enable_audition">添加"audition"(可选)—
<input type="checkbox" id="formatted">格式化JSON<br><br>
<button type="button" onclick="create()" class="button">创建</button>
<button type="button" onclick="info()" class="button" style="display: none" id="check_button">查看信息</button>
<button type="button" onclick="save()" class="button" style="display: none" id="save_button">保存JSON文件</button>
</form>
<hr>
<noscript>
<p><strong style="color: red">此浏览器不支持JavaScript,该脚本无法运行。</strong></p>
</noscript>
<p id="result">
结果:<br>
<b style="color: red">你好</b><b style="color: orange">,我</b><b style="color: yellow">是彩</b><b style="color: lime">虹颜</b><b style="color: cyan">色的</b><b style="color: violet">结果</b><b style="color: magenta">!:D</b>
</p>
<p>
<span id="code_result"></span><br>
<span id="code1_result"></span><br>
<span id="tiles_info"></span><br>
<span id="speed_info"></span><br>
<span id="delay_result"></span><br>
<span id="code2_result"></span><br>
</p>
<script src="./scripts/script.js"></script>
<script src="./scripts/info.js"></script>
<script src="./scripts/lodash.min.js"></script>
<script src="./scripts/first_path.js"></script>
<script src="./scripts/FileSaver.js"></script>
<script>
function check() {
if (document.getElementById('bpm_to_tps').checked) {
document.getElementById('bpm_text').innerHTML = 'TPS: ';
} else {
document.getElementById('bpm_text').innerHTML = 'BPM: ';
}
}
function save() {
saveAs(
new Blob([document.getElementById('output').value], {
type: 'text/plain;charset=utf-8',
}),
`${Date.now()}.json`
);
}
</script>
</body>
</html>