-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
90 lines (87 loc) · 3.51 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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#canvas {
background-color: darkgray;
background-image: url();
}
@keyframes size {
0% {
transform: translate(-50%, -50%) scale(0);
opacity: 0;
}
100% {
transform: translate(-50%, -50%) scale(1);
opacity: 1;
}
}
@keyframes size0 {
0% {
transform: translate(-50%, -50%) scale(1);
opacity: 1;
}
100% {
transform: translate(-50%, -50%) scale(0);
opacity: 0;
}
}
#shadow {
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1;
display: none;
opacity: 0;
}
#readFilesPopo {
position: absolute;
text-align: center;
width: 200px;
height: 300px;
background-color: #AFE5FF;
top: 50%;
left: 50%;
z-index: 9999;
transform: translate(-50%, -50%);
opacity: 0;
display: none;
/* animation: size 0.5s cubic-bezier(0.33, 1, 0.68, 1); */
/* display: none; */
}
#body {
text-align: center;
}
</style>
</head>
<body>
<div id="body">
<button onclick="ReadFiles()">导入文件</button>
<div id="shadow" onclick="ReadFiles()"></div>
<div id="readFilesPopo">
<p>请不要导入物量超过1000的谱面,会导致event延迟</p>
导入谱面<input type="file" onchange="ChartFiles(this.files)">
导入音乐<input type="file" onchange="BgmFiles(this.files)">
导入曲绘(测试)<input type="file" onchange="BGFiles(this.files)">
</div>
<button onclick="StartPlay()">开始播放</button><br><br>
<div id="chartTime"></div>
<div id="fps"></div>
<canvas id="canvas" width="720px" height="540px"></canvas>
<img src="img/Tap.png" id="tapImg" style="display: none;">
<img src="img/Flick.png" id="flickImg" style="display: none;">
<img src="img/Drag.png" id="dragImg" style="display: none;">
<img id="BG" src="" style="display: none;">
<audio id="bgm"></audio>
<audio id="tapA" src="audio/tap.mp3"></audio>
</div>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.2.3/howler.min.js"></script>
<script src="js/main.js"></script>
</html>