Reaperxxxx commited on
Commit
dd29746
·
verified ·
1 Parent(s): 0536a25

Create strikes.html

Browse files
Files changed (1) hide show
  1. strikes.html +85 -0
strikes.html ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Strike Leaderboard</title>
6
+ <style>
7
+ body {
8
+ font-family: Arial, sans-serif;
9
+ background: #f4f4f4;
10
+ padding: 20px;
11
+ color: #333;
12
+ }
13
+ h1, h2 {
14
+ text-align: center;
15
+ }
16
+ table {
17
+ width: 100%;
18
+ max-width: 600px;
19
+ margin: 20px auto;
20
+ border-collapse: collapse;
21
+ background: #fff;
22
+ box-shadow: 0 2px 6px rgba(0,0,0,0.1);
23
+ }
24
+ th, td {
25
+ padding: 12px;
26
+ border: 1px solid #ddd;
27
+ text-align: center;
28
+ }
29
+ th {
30
+ background-color: #4CAF50;
31
+ color: white;
32
+ }
33
+ tr:nth-child(even) {
34
+ background-color: #f9f9f9;
35
+ }
36
+ </style>
37
+ </head>
38
+ <body>
39
+
40
+ <h1>🚨 Strike Leaderboard</h1>
41
+ <h2 id="group-info">Loading...</h2>
42
+
43
+ <table>
44
+ <thead>
45
+ <tr>
46
+ <th>#</th>
47
+ <th>User ID</th>
48
+ <th>Username</th>
49
+ <th>Strikes</th>
50
+ </tr>
51
+ </thead>
52
+ <tbody id="user-table">
53
+ <!-- User rows will go here -->
54
+ </tbody>
55
+ </table>
56
+
57
+ <script>
58
+ const params = new URLSearchParams(window.location.search);
59
+ const group = params.get("group") || "Unknown Group";
60
+ const chatId = params.get("chat_id") || "N/A";
61
+ document.getElementById("group-info").textContent = `${group} (Chat ID: ${chatId})`;
62
+
63
+ const usersRaw = window.location.href.split("users=")[1];
64
+ if (usersRaw) {
65
+ const users = decodeURIComponent(usersRaw).split("&");
66
+
67
+ const tbody = document.getElementById("user-table");
68
+ users.forEach((entry, index) => {
69
+ const [id, username, strikes] = entry.split("?");
70
+ const row = document.createElement("tr");
71
+
72
+ row.innerHTML = `
73
+ <td>${index + 1}</td>
74
+ <td>${id}</td>
75
+ <td>${username}</td>
76
+ <td>${strikes}</td>
77
+ `;
78
+
79
+ tbody.appendChild(row);
80
+ });
81
+ }
82
+ </script>
83
+
84
+ </body>
85
+ </html>