This repository has been archived by the owner on Jul 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (65 loc) · 2.33 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="shortcut icon" href="img/logo.png">
<link rel="stylesheet" href="css/style.css">
</head>
<body style="-webkit-app-region: drag">
<div id="main-bg"></div>
<div id="background"></div>
<canvas id="visual-canvas"></canvas>
<div id="threed-webgl-renderer" class="hidden"></div>
<audio id="music" class="hidden" controls></audio>
<input id="input-file" type="file" class="hidden" accept="audio" multiple>
<h1 id="title">Please drag or open your music files here</h1>
<div id="file-list-wrapper">
<div class="header">Play List</div>
<ul id="file-list"></ul>
<ul id="add-file">Add File</ul>
<ul id="close-btn" onclick="self.closeWindow()">Close APP</ul>
</div>
<div id="effect-list-wrapper">
<div class="header">Effect List</div>
<ul id="effect-list"></ul>
</div>
<div id="help" class="hidden">
<img data-src="img/help.png">
</div>
<div id="help-wrapper">
<div id="help-btn">Help</div>
</div>
<div id="buttonForWindow">
<div id="play-mode"></div>
<div id="fullscreen"></div>
</div>
<div id="song-name"></div>
<script src="lib/jquery.min.js"></script>
<script src="lib/require.min.js" data-main="js/main"></script>
<script>
document.onkeydown = function (event) {
let e = event || window.event || arguments.callee.caller.arguments[0];
if (e && e.keyCode == 112) { // 按 F1
let eventon = document.getElementById("buttonForWindow");
eventon.style.display = "none"
}
if (e && e.keyCode == 113) { // 按 F2
let eventon = document.getElementById("buttonForWindow");
eventon.style.display = "block"
}
if (e && e.keyCode == 114) { // 按F3
let eventon = document.getElementById("song-name");
eventon.style.display = "none"
}
if (e && e.keyCode == 115) { // 按F4
let eventon = document.getElementById("song-name");
eventon.style.display = "block"
}
};
function closeWindow() {
window.opener = null;
window.close();
}
</script>
</body>
</html>