Translsis commited on
Commit
e4ab536
·
verified ·
1 Parent(s): 9ca53a0

Delete index.html

Browse files
Files changed (1) hide show
  1. index.html +0 -249
index.html DELETED
@@ -1,249 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
6
- <title>XQ Thối</title>
7
- <style>
8
- html, body {
9
- margin: 0;
10
- padding: 0;
11
- overflow: hidden;
12
- height: 100vh;
13
- width: 100vw;
14
- font-family: 'Arial Rounded MT Bold', sans-serif;
15
- background: linear-gradient(to bottom right, #ffffff, #f7e9d2);
16
- }
17
-
18
- /* Khung chữ */
19
- .container {
20
- position: absolute;
21
- top: 50%;
22
- left: 50%;
23
- transform: translate(-50%, -50%);
24
- border: 5px solid #8B4513; /* Khung bao quanh chữ */
25
- padding: 40px;
26
- border-radius: 20px;
27
- background-color: rgba(255, 255, 255, 0.3); /* Màu nền trong suốt hơn để thấy video */
28
- box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); /* Hiệu ứng bóng đổ cho khung */
29
- overflow: hidden;
30
- }
31
-
32
- /* Video nền cho container */
33
- .video-background {
34
- position: absolute;
35
- top: 0;
36
- left: 0;
37
- width: 100%;
38
- height: 100%;
39
- object-fit: cover;
40
- z-index: -1;
41
- border-radius: 15px;
42
- }
43
-
44
- h1 {
45
- font-size: 6rem;
46
- color: #8B4513;
47
- text-shadow: 0 0 25px #d2b48c, 0 0 40px #8B4513;
48
- display: flex;
49
- flex-direction: column;
50
- align-items: center;
51
- gap: 20px;
52
- margin: 0;
53
- position: relative;
54
- z-index: 1;
55
- }
56
-
57
- .letter {
58
- display: inline-block;
59
- animation: floaty 3s ease-in-out infinite;
60
- }
61
-
62
- @keyframes floaty {
63
- 0% { transform: translateY(0) rotate(0deg); }
64
- 25% { transform: translateY(-8px) rotate(1deg); }
65
- 50% { transform: translateY(0) rotate(0deg); }
66
- 75% { transform: translateY(8px) rotate(-1deg); }
67
- 100% { transform: translateY(0) rotate(0deg); }
68
- }
69
-
70
- .emoji {
71
- position: absolute;
72
- font-size: 26px;
73
- animation: pop 1s ease-out forwards;
74
- color: #8B4513;
75
- pointer-events: none;
76
- }
77
-
78
- @keyframes pop {
79
- 0% { transform: scale(1); opacity: 1; }
80
- 100% { transform: scale(2); opacity: 0; top: -40px; }
81
- }
82
-
83
- .spider {
84
- position: absolute;
85
- font-size: 40px;
86
- pointer-events: none;
87
- transition: transform 0.1s linear;
88
- }
89
-
90
- .baby-spider {
91
- position: absolute;
92
- font-size: 20px;
93
- pointer-events: none;
94
- transition: transform 0.1s linear;
95
- }
96
-
97
- /* Video nền ngoài */
98
- .border-frame {
99
- position: absolute;
100
- top: 0;
101
- left: 0;
102
- width: 100vw;
103
- height: 100vh;
104
- z-index: -1;
105
- overflow: hidden;
106
- }
107
-
108
- .background-video {
109
- position: absolute;
110
- top: 0;
111
- left: 0;
112
- width: 100%;
113
- height: 100%;
114
- object-fit: cover;
115
- }
116
- </style>
117
- </head>
118
- <body>
119
-
120
- <!-- Video nền ngoài -->
121
- <div class="border-frame">
122
- <video class="background-video" autoplay loop muted playsinline>
123
- <source src="background.mp4" type="video/mp4">
124
- </video>
125
- </div>
126
-
127
- <!-- Khung chữ với nội dung -->
128
- <div class="container">
129
- <video class="video-background" autoplay loop muted playsinline>
130
- <source src="video.mp4" type="video/mp4">
131
- </video>
132
- <h1>
133
- <span class="letter">XQ</span>
134
- <span class="letter">Thối</span>
135
- <span class="letter">💗</span>
136
- </h1>
137
- </div>
138
-
139
- <div id="spider" class="spider">💗</div>
140
- <audio id="bg-music" src="music.mp3" autoplay loop hidden></audio>
141
-
142
- <script>
143
- const spider = document.getElementById('spider');
144
- const music = document.getElementById('bg-music');
145
- let mouseX = window.innerWidth / 2;
146
- let mouseY = window.innerHeight / 2;
147
- let spiderX = mouseX, spiderY = mouseY;
148
-
149
- // Nhện con (ở các góc màn hình)
150
- const babySpiders = [
151
- { x: 0, y: 0, speed: 0.02 },
152
- { x: window.innerWidth, y: 0, speed: 0.03 },
153
- { x: 0, y: window.innerHeight, speed: 0.04 },
154
- { x: window.innerWidth, y: window.innerHeight, speed: 0.05 }
155
- ];
156
-
157
- // Tạo nhện con ở các góc
158
- babySpiders.forEach(spiderData => {
159
- const babySpider = document.createElement('div');
160
- babySpider.className = 'baby-spider';
161
- babySpider.innerText = '💗';
162
- document.body.appendChild(babySpider);
163
- moveSpiderToCursor(babySpider, spiderData.x, spiderData.y, spiderData.speed);
164
- });
165
-
166
- // Di chuyển nhện con về vị trí của chuột
167
- function moveSpiderToCursor(spiderElement, x, y, speed) {
168
- let targetX = x;
169
- let targetY = y;
170
- function move() {
171
- const dx = mouseX - targetX;
172
- const dy = mouseY - targetY;
173
- targetX += dx * speed;
174
- targetY += dy * speed;
175
- spiderElement.style.transform = `translate(${targetX}px, ${targetY}px)`;
176
- requestAnimationFrame(move);
177
- }
178
- move();
179
- }
180
-
181
- // Hàm random chọn emoji
182
- function getRandomEmoji() {
183
- const emojis = ['💗', '💗', '❣'];
184
- return emojis[Math.floor(Math.random() * emojis.length)];
185
- }
186
-
187
- // Hàm tạo emoji ngẫu nhiên
188
- function createEmoji(x, y) {
189
- const emoji = document.createElement('div');
190
- emoji.className = 'emoji';
191
- emoji.innerText = getRandomEmoji(); // Chọn ngẫu nhiên emoji
192
- emoji.style.left = `${x}px`;
193
- emoji.style.top = `${y}px`;
194
- document.body.appendChild(emoji);
195
- setTimeout(() => emoji.remove(), 1000); // Xóa emoji sau 1 giây
196
- }
197
-
198
- document.addEventListener('mousemove', (e) => {
199
- mouseX = e.clientX;
200
- mouseY = e.clientY;
201
- createEmoji(e.clientX, e.clientY); // Tạo emoji khi di chuyển chuột
202
- });
203
-
204
- document.addEventListener('click', (e) => {
205
- createEmoji(e.clientX, e.clientY); // Tạo emoji khi click chuột
206
- spiderX = e.clientX;
207
- spiderY = e.clientY;
208
- });
209
-
210
- document.addEventListener('touchmove', (e) => {
211
- const touch = e.touches[0];
212
- mouseX = touch.clientX;
213
- mouseY = touch.clientY;
214
- createEmoji(mouseX, mouseY); // Tạo emoji khi vuốt trên màn hình
215
- });
216
-
217
- document.addEventListener('touchstart', (e) => {
218
- const touch = e.touches[0];
219
- createEmoji(touch.clientX, touch.clientY); // Tạo emoji khi chạm vào màn hình
220
- spiderX = touch.clientX;
221
- spiderY = touch.clientY;
222
- });
223
-
224
- // Bỏ qua block autoplay của trình duyệt
225
- document.addEventListener('click', () => {
226
- music.play();
227
- }, { once: true });
228
-
229
- // Di chuyển nhện lớn (về vị trí cũ nếu không tương tác)
230
- function moveSpider() {
231
- const dx = mouseX - spiderX;
232
- const dy = mouseY - spiderY;
233
- spiderX += dx * 0.2; // Tăng tốc độ di chuyển của nhện
234
- spiderY += dy * 0.2;
235
- spider.style.transform = `translate(${spiderX}px, ${spiderY}px)`;
236
-
237
- // Nếu không có sự thay đổi lớn trong khoảng thời gian nhất định, nhện sẽ trở về vị trí ban đầu
238
- if (Math.abs(dx) < 1 && Math.abs(dy) < 1) {
239
- spiderX = window.innerWidth / 2;
240
- spiderY = window.innerHeight / 2;
241
- }
242
-
243
- requestAnimationFrame(moveSpider);
244
- }
245
-
246
- moveSpider();
247
- </script>
248
- </body>
249
- </html>