-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
454 lines (418 loc) · 18.2 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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=yes">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<style>
#dimScreen {
position: fixed;
padding: 0;
margin: 0;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
z-index: 999999;
display: flex;
}
.table-rounded thead th {
border: 0px;
}
.table-rounded thead th:first-child {
border-radius: 5px 0 0 0;
}
.table-rounded thead th:last-child {
border-radius: 0 5px 0 0;
}
#SongTable.table-rounded tbody td {
background-color: rgb(255, 255, 255);
}
.table-rounded tbody tr:last-child td:first-child {
border-radius: 0 0 0 5px;
}
.table-rounded tbody tr:last-child td:last-child {
border-radius: 0 0 5px 0;
}
#SongTable.table td+td {
border-left: 2px solid #343a40;
}
#SongTable.table tr+tr {
border-top: 2px solid #343a40;
}
table td,
th {
text-align: center;
width: 45px
}
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
border-radius: 10px;
background-color: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}
@media (max-height: 720px) {
#Notediv {
height: 150px
}
}
@media (min-height: 720px) {
#Notediv {
height: 350px
}
}
</style>
<title>WF Shawzin Music Maker</title>
</head>
<body style="font-family:Microsoft JhengHei;background-color:#bdbdbd;height:100%">
<div class="col-11 mx-auto">
<br>
<h1><b>WF三線琴編曲小幫手</b></h1><br>
<div id="dimScreen" style="display: none">
<div class="alert alert-danger col-3 mx-auto fade show"
style="margin: auto; align-items:center;justify-content:center;text-align: center">
<strong>注意:匯入歌曲會使目前的編曲消失</strong>
<textarea class="form-control mx-auto" style="resize:none" rows="5" id="comment"
placeholder="輸入樂曲字串"></textarea><br>
確定要匯入嗎?<br>
<button class="btn btn-danger" onclick="importOK()">確定</button><button class="btn btn-primary"
onclick="importC()">取消</button>
</div>
</div>
<nav class="navbar navbar-expand-lg navbar-light bg-secondary rounded">
<a class="navbar-brand disabled" style="font-size:25px"><b>MENU</b></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item ">
<a class="nav-link youtube" href="https://www.youtube.com/c/Rainmeo" target="_blank" data-toggle="tooltip"
data-html="true" title="雨喵的Youtube頻道"><b>Youtube</b> </a>
</li>
<li class="nav-item">
<a class="nav-link bilibili" href="https://space.bilibili.com/281342574" target="_blank"
data-toggle="tooltip" data-html="true" title="雨喵的Bilibili頻道"><b>Bilibili</b></a>
</li>
<li class="nav-item">
<a class="nav-link github" href="https://github.com/RainMeoCat/WF-Shawzin-music-maker" target="_blank"
data-toggle="tooltip" data-html="true" title="Github原始碼參觀"><b>Github</b></a>
</li>
</ul>
</div>
</nav>
<br>
<button class="btn btn-dark" onclick="NewSongQuery()"><i class="fas fa-music fa-lg"></i> 增加表格</button>
<div class="btn-group">
<button type="button" class="btn btn-info dropdown-toggle" id="ScaleMenu" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
五聲小調
</button>
<div class="dropdown-menu">
<a class="dropdown-item active" id="SC1" Onclick="ScaleChange('1')">五聲小調</a>
<a class="dropdown-item" id="SC2" Onclick="ScaleChange(2)">五聲大調</a>
<a class="dropdown-item" id="SC3" Onclick="ScaleChange(3)">半音</a>
<a class="dropdown-item" id="SC4" Onclick="ScaleChange(4)">六聲音階</a>
<a class="dropdown-item" id="SC5" Onclick="ScaleChange(5)">大調</a>
<a class="dropdown-item" id="SC6" Onclick="ScaleChange(6)">小調</a>
<a class="dropdown-item" id="SC7" Onclick="ScaleChange(7)">平調子</a>
<a class="dropdown-item" id="SC8" Onclick="ScaleChange(8)">弗里吉安調式</a>
</div>
</div> <b>16格為一秒 <font color="red">★本網頁不會儲存你的編曲,請養成隨時存檔的好習慣</font></b><br><br>
<div class="table-responsive col-12">
<table class="table table-sm table-rounded" id="SongTable" style="table-layout:fixed;margin:0px">
<thead class="thead-dark">
<tr>
<th onclick="CallJump(this.innerHTML)">1</th>
<th onclick="CallJump(this.innerHTML)">2</th>
<th onclick="CallJump(this.innerHTML)">3</th>
<th onclick="CallJump(this.innerHTML)">4</th>
<th onclick="CallJump(this.innerHTML)">5</th>
<th onclick="CallJump(this.innerHTML)">6</th>
<th onclick="CallJump(this.innerHTML)">7</th>
<th onclick="CallJump(this.innerHTML)">8</th>
<th onclick="CallJump(this.innerHTML)">9</th>
<th onclick="CallJump(this.innerHTML)">10</th>
<th onclick="CallJump(this.innerHTML)">11</th>
<th onclick="CallJump(this.innerHTML)">12</th>
<th onclick="CallJump(this.innerHTML)">13</th>
<th onclick="CallJump(this.innerHTML)">14</th>
<th onclick="CallJump(this.innerHTML)">15</th>
<th onclick="CallJump(this.innerHTML)">16</th>
</tr>
</thead>
<tbody id="tbm">
<tr style="height:35px;">
<td class="editMe"></td>
<td class="editMe"></td>
<td class="editMe"></td>
<td class="editMe"></td>
<td class="editMe"></td>
<td class="editMe"></td>
<td class="editMe"></td>
<td class="editMe"></td>
<td class="editMe"></td>
<td class="editMe"></td>
<td class="editMe"></td>
<td class="editMe"></td>
<td class="editMe"></td>
<td class="editMe"></td>
<td class="editMe"></td>
<td class="editMe"></td>
</tr>
</tbody>
</table>
</div>
<div class=" col-md-6 col-lg-3 col-xs-12 mx-auto form-inline justify-content-center">
<button class="btn btn-dark " onclick="FlagMove('-','1')" id="Lbtn"><i class="fas fa-caret-left fa-2x"></i>
</button>
<input class="form-control col-2" id="FlagJump" onchange="FJump(this.id)" value="1"
onkeyup="value = this.value.replace(/[^0-9]/g, '')" style="margin:5px;text-align:center;">
<button class="btn btn-dark" onclick="FlagMove('+','1')" id="Rbtn"><i class="fas fa-caret-right fa-2x"></i>
</button>
</div><br>
<input class="form-control" id="SongString">
<input class="form-control" id="HellSongString" style="position: absolute;left: -99999px;"><br>
<button class="btn btn-dark" onclick="importSong()"><i class="fas fa-file-import fa-lg"></i> 匯入樂曲</button>
<button class="btn btn-dark" onclick="copySong()" data-toggle="SSpopover" data-placement="bottom" data-html="true"
title="複製成功!" data-content="拿去遊戲裡貼上測試!"><i class="far fa-clipboard fa-lg"></i> 複製到剪貼簿</button>
<button class="btn btn-secondary" onclick="create_hell_song()" data-toggle="HSSpopover" data-placement="bottom"
data-html="true" title="複製成功!" data-content="拿去遊戲裡貼上測試!"><i class="fas fa-skull-crossbones fa-lg"
style="color: #a80000"></i>
<font color="a80000"><b>來一首"地獄之曲"</b></font>
</button>
<button class="btn btn-info" type="button" data-toggle="collapse" data-target="#NoteTable" aria-expanded="false"
aria-controls="collapseExample"><i class="fas fa-wave-square fa-lg"></i>
音高字母對應表
</button>
<button class="btn btn-info" type="button" data-toggle="collapse" data-target="#NoteName" aria-expanded="false"
aria-controls="collapseExample"><i class="fas fa-wave-square fa-lg"></i>
字母音名對應表
</button>
<div class="btn-group">
<button type="button" class="btn btn-danger dropdown-toggle" id="ScaleMenu" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false"><i class="fas fa-trash-alt fa-lg"></i>
編曲淨空
</button>
<div class="dropdown-menu">
<a class="dropdown-item disabled" style="color:red;"href="#">此動作無法回復!</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item " Onclick="SongClear()">是</a>
<a class="dropdown-item" >否</a>
</div>
</div>
<br><br>
<div class="row">
<div class="col">
<div class="collapse multi-collapse" id="NoteTable">
<div class="card card-body table-responsive ">
<div class="overflow-auto" id="Notediv">
<table class="table table-sm table-rounded table-striped table-hover" style="table-layout:fixed"
id="KeyTable">
<thead class="thead-dark">
<tr>
<th></th>
<th>1</th>
<th>2</th>
<th>3</th>
<th>1+2</th>
<th>2+3</th>
<th>1+3</th>
<th>1+2+3</th>
</tr>
</thead>
<tbody>
<tr style="height:30px">
<td>無</td>
<td onclick="SongInput(this.innerHTML)">B</td>
<td onclick="SongInput(this.innerHTML)">C</td>
<td onclick="SongInput(this.innerHTML)">E</td>
<td onclick="SongInput(this.innerHTML)" style="background-color:#92ffe4">D</td>
<td onclick="SongInput(this.innerHTML)" style="background-color:#92ffe4">G</td>
<td onclick="SongInput(this.innerHTML)" style="background-color:#92ffe4">F</td>
<td onclick="SongInput(this.innerHTML)" style="background-color:#248aff">H</td>
</tr>
<tr style="height:30px">
<td>天(←)</td>
<td onclick="SongInput(this.innerHTML)">J</td>
<td onclick="SongInput(this.innerHTML)">K</td>
<td onclick="SongInput(this.innerHTML)">M</td>
<td onclick="SongInput(this.innerHTML)" style="background-color:#92ffe4">L</td>
<td onclick="SongInput(this.innerHTML)" style="background-color:#92ffe4">O</td>
<td onclick="SongInput(this.innerHTML)" style="background-color:#92ffe4">N</td>
<td onclick="SongInput(this.innerHTML)" style="background-color:#248aff">P</td>
</tr>
<tr style="height:30px">
<td>地(↓)</td>
<td onclick="SongInput(this.innerHTML)">R</td>
<td onclick="SongInput(this.innerHTML)">S</td>
<td onclick="SongInput(this.innerHTML)">U</td>
<td onclick="SongInput(this.innerHTML)" style="background-color:#92ffe4">T</td>
<td onclick="SongInput(this.innerHTML)" style="background-color:#92ffe4">W</td>
<td onclick="SongInput(this.innerHTML)" style="background-color:#92ffe4">V</td>
<td onclick="SongInput(this.innerHTML)" style="background-color:#248aff">X</td>
</tr>
<tr style="height:30px">
<td>水(→)</td>
<td onclick="SongInput(this.innerHTML)">h</td>
<td onclick="SongInput(this.innerHTML)">i</td>
<td onclick="SongInput(this.innerHTML)">k</td>
<td onclick="SongInput(this.innerHTML)" style="background-color:#92ffe4">j</td>
<td onclick="SongInput(this.innerHTML)" style="background-color:#92ffe4">m</td>
<td onclick="SongInput(this.innerHTML)" style="background-color:#92ffe4">l</td>
<td onclick="SongInput(this.innerHTML)" style="background-color:#248aff">n</td>
</tr>
<tr style="height:30px">
<td>天地(←↓)</td>
<td onclick="SongInput(this.innerHTML)">z</td>
<td onclick="SongInput(this.innerHTML)">a</td>
<td onclick="SongInput(this.innerHTML)">c</td>
<td>#</td>
<td>#</td>
<td>#</td>
<td>#</td>
</tr>
<tr style="height:30px">
<td>地水(↓→)</td>
<td onclick="SongInput(this.innerHTML)">x</td>
<td onclick="SongInput(this.innerHTML)">y</td>
<td onclick="SongInput(this.innerHTML)">0</td>
<td>#</td>
<td>#</td>
<td>#</td>
<td>#</td>
</tr>
<tr style="height:30px">
<td>天水(←→)</td>
<td onclick="SongInput(this.innerHTML)">p</td>
<td onclick="SongInput(this.innerHTML)">q</td>
<td onclick="SongInput(this.innerHTML)">s</td>
<td>#</td>
<td>#</td>
<td>#</td>
<td>#</td>
</tr>
<tr style="height:30px">
<td>天地水(←↓→)</td>
<td onclick="SongInput(this.innerHTML)">5</td>
<td onclick="SongInput(this.innerHTML)">6</td>
<td onclick="SongInput(this.innerHTML)">8</td>
<td>#</td>
<td>#</td>
<td>#</td>
<td>#</td>
</tr>
</tbody>
</table>
<b>#符號為無法彈出之音高,此表不記錄</b>
<br><b>青色:占兩個音符
<br>藍色:占三個音符</b>
</div>
</div>
</div>
</div>
<div class="col">
<div class="collapse multi-collapse" id="NoteName">
<div class="card card-body table-responsive col-lg-4 col-md-5">
<div class="overflow-auto" id="Notediv">
<table class="table table-sm table-striped table-hover" style="table-layout:fixed" id="NameTable">
<thead class="thead-dark">
<tr>
<th colspan="2">五聲小調</th>
</tr>
<tr>
<th>音高</th>
<th>音名</th>
</tr>
</thead>
<tbody id="Ntbm">
<tr>
<td>k</td>
<td>Low C</td>
</tr>
<tr>
<td>i</td>
<td>Low D#</td>
</tr>
<tr>
<td>h</td>
<td>Low F</td>
</tr>
<tr>
<td>U</td>
<td>Low G</td>
</tr>
<tr>
<td>S</td>
<td>Low A</td>
</tr>
<tr>
<td>R</td>
<td>Mid C</td>
</tr>
<tr>
<td>M</td>
<td>D#</td>
</tr>
<tr>
<td>K</td>
<td>F</td>
</tr>
<tr>
<td>J</td>
<td>G</td>
</tr>
<tr>
<td>E</td>
<td>A#</td>
</tr>
<tr>
<td>C</td>
<td>High C</td>
</tr>
<tr>
<td>B</td>
<td>High D#</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="fixed-bottom ">
<div class="col-6 mx-auto"style="text-align:center;opacity:0.5">
最適解析度:Windows縮放率 100%,1920*1080,Chrome瀏覽器
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://kit.fontawesome.com/3a392711dc.js"></script>
<script src="L2D/lib/L2Dwidget.min.js"></script>
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.4.1.min.js">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous">
</script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous">
</script>
</script>
<script src="src/main.js"></script>
<script src="src/import.js"></script>
<script src="src/song.js"></script>
<script src="src/SimpleTableCellEditor.es6.min.js"></script>
</body>
</html>