forked from NewNewKing/SmallRomance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (78 loc) · 1.47 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1.0, user-scalable=no"
/>
<title>鄢先生&皮小姐</title>
<style>
* {
margin: 0;
padding: 0;
}
html,
body {
width: 100%;
height: 100%;
}
body {
position: relative;
margin: 0 auto;
}
canvas {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
}
#bg {
z-index: 5;
}
#firework {
z-index: 8;
}
#title {
z-index: 9;
}
#fall {
z-index: 10;
}
#dialogue {
z-index: 11;
}
#loading {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
z-index: 999;
}
.title {
z-index: 9;
}
#music {
width: 36px;
height: 36px;
background-repeat: no-repeat;
background-size: 100%;
position: absolute;
z-index: 999;
right: 10px;
top: 14px;
}
.off {
background-image: url('./img/musicoff.png');
}
</style>
</head>
<body>
<span class='on' id='music'></span>
<canvas id='bg'>您的浏览器不支持Canvas元素</canvas>
<canvas id='firework'>您的浏览器不支持Canvas元素</canvas>
<canvas id='fall'>您的浏览器不支持Canvas元素</canvas>
<canvas id='dialogue'>您的浏览器不支持Canvas元素</canvas>
<div id='loading'>loading ...</div>
</body>
</html>