-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (46 loc) · 1.33 KB
/
index.html
File metadata and controls
52 lines (46 loc) · 1.33 KB
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
<script>
// 检测当前页面宽度,若为移动端,则转到移动端受限页面中
if (window.innerWidth < 750) {
location.href = "/minScreen.html";
}
window.onresize = function() {
console.log(window.innerWidth);
if (window.innerWidth < 750) {
location.href = "/minScreen.html";
}
}
</script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>音乐播放器</title>
<script src="./music.js"></script>
<link rel="stylesheet" href="music.css">
<link rel="shortcut icon" href="./images/头像.ico" type="image/x-icon">
<style>
body {
background-color: #fff;
}
#particles-js {
height: 100%;
width: 100%;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
</style>
</head>
<body>
<!-- 用于防止页面单调,并非插件必须 -->
<!-- particles.js container -->
<div id="particles-js"></div>
<!-- scripts -->
<script src="./background/particles.min.js"></script>
<!-- <script src="./git/particles.js/demo/js/app.js"></script> -->
<script src="./background/testapp.js"></script>
</body>
</html>