This repository has been archived by the owner on May 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
132 lines (120 loc) · 3.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>祝你圣诞快乐</title>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, minimal-ui">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
position: relative;
}
h2,
.star {
visibility: hidden;
}
.mask {
z-index: 3;
display: flex;
width: 100vw;
height: 100vh;
position: absolute;
align-items: center;
justify-content: center;
background: #e65f5f;
}
button {
color: white;
font-size: 14px;
padding: 10px 20px;
border: 1px solid white;
background: transparent;
border-radius: 3px;
}
.hide {
display: none;
}
.preview {
height: 100vh;
}
.code-wrapper {
height: 100%;
overflow: hidden;
position: absolute;
top: 0;
padding: 10px;
opacity: 0.7;
}
@keyframes blink {
from {
opacity: 1.0;
}
to {
opacity: 0.0;
}
}
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.23.0/themes/prism-coy.min.css">
<style id="styleTag"></style>
</head>
<body>
<div class="mask"><button>请开始你的表演</button></div>
<div class="preview">
<h2 style="padding-top: 50px;">祝你圣诞快乐</h2>
<div class="santa">
<div class="hat">
<div class="hat-top">
<div class="ball"></div>
</div>
<div class="hat-side"></div>
</div>
<div class="head">
<div class="face">
<div class="eyes">
<div class="eye"></div>
<div class="eye"></div>
</div>
</div>
<div class="left-ear ear"></div>
<div class="right-ear ear"></div>
<div class="beard">
<div class="mouseAndNose">
<div class="nose"></div>
<div class="mouse">
<div class="mouseLeft"></div>
<div class="mouseRight"></div>
</div>
</div>
<div class="beard1"></div>
<div class="beard2"></div>
<div class="beard3"></div>
<div class="beard4"></div>
</div>
</div>
<div class="clothe">
<div class="left-hand"></div>
<div class="right-hand"></div>
<div class="line1 line"></div>
<div class="line2 line"></div>
</div>
</div>
<span class="star star1">✨</span>
<span class="star star2">✨</span>
<span class="star star3">✨</span>
<span class="star star4">✨</span>
<span class="star star5">✨</span>
<span class="star star6">✨</span>
</div>
<div class="code-wrapper">
<pre id="code"></pre>
</div>
<audio preload loop="loop" id="player" src="./merry-hristmas.mp3"></audio>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.23.0/prism.min.js"></script>
<script src="./index.js"></script>
</body>
</html>