Idjenieyo72828 commited on
Commit
d2179f2
·
verified ·
1 Parent(s): 9408730

Upload xtkXOrv77j.html with huggingface_hub

Browse files
Files changed (1) hide show
  1. xtkXOrv77j.html +203 -0
xtkXOrv77j.html ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="vi">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>KODER HEADSHOT</title>
7
+ <style>
8
+ body {
9
+ display: flex;
10
+ flex-direction: column;
11
+ align-items: center;
12
+ justify-content: center;
13
+ height: 100vh;
14
+ background-color: #f0f0f0;
15
+ position: relative;
16
+ }
17
+ h1 {
18
+ margin-bottom: 15px;
19
+ font-size: 36px;
20
+ color: #333;
21
+ animation: colorChange 2s infinite;
22
+ position: absolute;
23
+ top: 15px;
24
+ z-index: 3; /* Đặt tiêu đề trên tất cả các phần tử khác */
25
+ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Hiệu ứng đổ bóng */
26
+ font-family: 'Arial', sans-serif; /* Kiểu chữ */
27
+ text-align: center; /* Căn giữa tiêu đề */
28
+ }
29
+ @keyframes colorChange {
30
+ 0% { color: #ff0000; }
31
+ 25% { color: #00ff00; }
32
+ 50% { color: #0000ff; }
33
+ 75% { color: #ff00ff; }
34
+ 100% { color: #ff0000; }
35
+ }
36
+ .npc {
37
+ width: 100px;
38
+ height: 300px;
39
+ position: relative;
40
+ margin-bottom: 20px;
41
+ z-index: 2; /* Đặt NPC trên hình ảnh */
42
+ top: 15px; /* Lùi NPC xuống 5px */
43
+ }
44
+ .head, .body, .arm, .leg {
45
+ position: absolute;
46
+ border-radius: 10px;
47
+ border: 2px solid black; /* Viền cho tất cả bộ phận */
48
+ }
49
+ .head {
50
+ width: 50px;
51
+ height: 50px;
52
+ background-color: #ffcc00;
53
+ top: 0;
54
+ left: 25px;
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: center;
58
+ }
59
+ .body {
60
+ width: 70px;
61
+ height: 100px;
62
+ background-color: #00ccff;
63
+ top: 50px;
64
+ left: 15px;
65
+ }
66
+ .arm {
67
+ width: 22px; /* Tăng chiều rộng tay lên 2px */
68
+ height: 100px; /* Chiều dài tay */
69
+ background-color: #33cc33; /* Màu giống chân */
70
+ top: 50px;
71
+ }
72
+ .arm.left {
73
+ left: -6px; /* Kéo tay trái ra ngoài 6px */
74
+ }
75
+ .arm.right {
76
+ right: -8px; /* Kéo tay phải ra ngoài 8px (6px + 2px) */
77
+ }
78
+ .leg {
79
+ width: 30px;
80
+ height: 100px;
81
+ background-color: #33cc33; /* Màu chân */
82
+ top: 150px; /* Xích lên trên */
83
+ }
84
+ .leg.left {
85
+ left: 10px;
86
+ }
87
+ .leg.right {
88
+ right: 10px;
89
+ }
90
+ .hidden {
91
+ display: none; /* Lớp để ẩn hình ảnh */
92
+ }
93
+ #npcImage {
94
+ position: absolute; /* Đặt hình ảnh ở vị trí tuyệt đối */
95
+ top: 0; /* Đặt hình ảnh ở trên cùng */
96
+ left: 50%; /* Căn giữa hình ảnh */
97
+ transform: translateX(-50%); /* Căn giữa hình ảnh */
98
+ width: 300px; /* Kích thước hình ảnh lớn hơn */
99
+ z-index: 1; /* Đặt hình ảnh dưới NPC */
100
+ }
101
+ .icon {
102
+ font-size: 30px; /* Kích thước biểu tượng */
103
+ position: absolute;
104
+ top: 10px; /* Điều chỉnh vị trí biểu tượng trên đầu */
105
+ left: 50%; /* Căn giữa biểu tượng */
106
+ transform: translateX(-50%); /* Căn giữa biểu tượng */
107
+ }
108
+ .button-container {
109
+ display: flex;
110
+ flex-wrap: wrap; /* Để các nút có thể xuống hàng */
111
+ justify-content: center; /* Căn giữa các nút */
112
+ margin-top: 0px; /* Khoảng cách trên các nút */
113
+ }
114
+ button {
115
+ margin: 10px;
116
+ padding: 15px 30px; /* Tăng kích thước nút */
117
+ font-size: 16px; /* Kích thước chữ */
118
+ cursor: pointer; /* Con trỏ khi hover */
119
+ background-color: transparent; /* Màu nền ban đầu */
120
+ border: 2px solid #000; /* Viền cho nút */
121
+ transition: background-color 0.3s; /* Hiệu ứng chuyển màu */
122
+ }
123
+ button.active {
124
+ background-color: #4caf50; /* Màu xanh khi nút được chọn */
125
+ color: white; /* Màu chữ khi chọn */
126
+ }
127
+ .credit {
128
+ margin-top: 20px; /* Khoảng cách trên dòng credit */
129
+ font-size: 20px; /* Kích thước chữ cho dòng credit */
130
+ color: #777; /* Màu chữ cho dòng credit */
131
+ text-align: center; /* Căn giữa dòng credit */
132
+ }
133
+ </style>
134
+ </head>
135
+ <body>
136
+
137
+ <h1>KODER HEADSHOT</h1> <!-- Tiêu đề menu -->
138
+
139
+ <img id="npcImage" src="https://img.upanh.tv/2025/01/20/4774CA97-678E-429D-8F46-8DF853ABD1FC.png" alt="Hình ảnh NPC" class="hidden">
140
+
141
+ <div class="npc">
142
+ <div class="head">
143
+ <span class="icon">☠️</span> <!-- Thêm biểu tượng ở đây -->
144
+ </div>
145
+ <div class="body"></div>
146
+ <div class="arm left"></div>
147
+ <div class="arm right"></div>
148
+ <div class="leg left"></div>
149
+ <div class="leg right"></div>
150
+ </div>
151
+
152
+ <div class="button-container">
153
+ <button onclick="toggleHead(this)">HeadShot</button>
154
+ <button onclick="toggleBody(this)">Body</button>
155
+ <button onclick="window.location.href='https://zalo.me/0868124375'">🩴 Admin</button>
156
+ <button onclick="activateButton(this)">Aimlock</button> <!-- Nút Aimlock -->
157
+ </div>
158
+
159
+ <div class="credit">Phạm Đồng An</div> <!-- Dòng credit -->
160
+
161
+ <script>
162
+ let headShotActive = false;
163
+ let bodyActive = false;
164
+
165
+ function toggleHead(button) {
166
+ const head = document.querySelector('.head');
167
+ const npcImage = document.getElementById('npcImage');
168
+ headShotActive = !headShotActive;
169
+
170
+ head.style.backgroundColor = headShotActive ? 'red' : '#ffcc00'; // Đổi màu đầu
171
+
172
+ // Hiện hoặc ẩn hình ảnh
173
+ npcImage.classList.toggle('hidden', !headShotActive);
174
+
175
+ // Đổi màu nút
176
+ activateButton(button);
177
+ }
178
+
179
+ function toggleBody(button) {
180
+ const body = document.querySelector('.body');
181
+ bodyActive = !bodyActive;
182
+ body.style.backgroundColor = bodyActive ? 'red' : '#00ccff'; // Đổi màu thân
183
+
184
+ // Đổi màu nút
185
+ activateButton(button);
186
+ }
187
+
188
+ function activateButton(button) {
189
+ // Bỏ lớp active từ tất cả nút (trừ nút Admin)
190
+ const buttons = document.querySelectorAll('.button-container button');
191
+ buttons.forEach(btn => {
192
+ if (btn !== document.querySelector('button:nth-child(3)')) {
193
+ btn.classList.remove('active');
194
+ }
195
+ });
196
+
197
+ // Thêm lớp active cho nút được nhấn
198
+ button.classList.add('active');
199
+ }
200
+ </script>
201
+
202
+ </body>
203
+ </html>