Removed files from promoting 8d824a9
Browse filesRemoved files that don't exist in commit 8d824a9d19a6bf3b6a8d227db9c512d3e57d0044:
- junior-a-girls.html
- junior-a-girls.html +0 -494
junior-a-girls.html
DELETED
|
@@ -1,494 +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>Junior A Girls – Volleyball</title>
|
| 7 |
-
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap" rel="stylesheet">
|
| 8 |
-
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
-
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
-
<script>
|
| 11 |
-
tailwind.config = {
|
| 12 |
-
theme: {
|
| 13 |
-
extend: {
|
| 14 |
-
colors: {
|
| 15 |
-
primary: '#008080',
|
| 16 |
-
dark: '#121212',
|
| 17 |
-
darker: '#0a0a0a',
|
| 18 |
-
lightGrey: '#CCCCCC'
|
| 19 |
-
}
|
| 20 |
-
}
|
| 21 |
-
}
|
| 22 |
-
}
|
| 23 |
-
</script>
|
| 24 |
-
<style>
|
| 25 |
-
body {
|
| 26 |
-
font-family: 'Montserrat', sans-serif;
|
| 27 |
-
background-color: #121212;
|
| 28 |
-
color: #ffffff;
|
| 29 |
-
}
|
| 30 |
-
h1, h2, h3, h4, h5, h6 {
|
| 31 |
-
font-weight: 700;
|
| 32 |
-
}
|
| 33 |
-
|
| 34 |
-
/* Container to prevent overflow */
|
| 35 |
-
.team-container {
|
| 36 |
-
max-width: 1200px;
|
| 37 |
-
margin: 0 auto;
|
| 38 |
-
padding: 20px;
|
| 39 |
-
}
|
| 40 |
-
|
| 41 |
-
/* Search Bar */
|
| 42 |
-
.search-bar {
|
| 43 |
-
width: 100%;
|
| 44 |
-
max-width: 400px;
|
| 45 |
-
padding: 10px 15px;
|
| 46 |
-
background: #1E1E1E;
|
| 47 |
-
border: 1px solid #008080;
|
| 48 |
-
border-radius: 20px;
|
| 49 |
-
color: white;
|
| 50 |
-
margin: 20px auto;
|
| 51 |
-
display: block;
|
| 52 |
-
}
|
| 53 |
-
.search-bar::placeholder {
|
| 54 |
-
color: #666;
|
| 55 |
-
}
|
| 56 |
-
|
| 57 |
-
/* Player Grid - 3 columns */
|
| 58 |
-
.player-grid {
|
| 59 |
-
display: grid;
|
| 60 |
-
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
| 61 |
-
gap: 20px;
|
| 62 |
-
margin: 20px 0;
|
| 63 |
-
}
|
| 64 |
-
|
| 65 |
-
/* Player Cards */
|
| 66 |
-
.player-card {
|
| 67 |
-
transition: all 0.3s ease;
|
| 68 |
-
cursor: pointer;
|
| 69 |
-
position: relative;
|
| 70 |
-
opacity: 0;
|
| 71 |
-
animation: fadeIn 0.5s forwards;
|
| 72 |
-
}
|
| 73 |
-
@keyframes fadeIn {
|
| 74 |
-
to { opacity: 1; }
|
| 75 |
-
}
|
| 76 |
-
.player-card:nth-child(1) { animation-delay: 0.1s; }
|
| 77 |
-
.player-card:nth-child(2) { animation-delay: 0.2s; }
|
| 78 |
-
.player-card:nth-child(3) { animation-delay: 0.3s; }
|
| 79 |
-
.player-card:nth-child(4) { animation-delay: 0.4s; }
|
| 80 |
-
/* Add more delays as needed */
|
| 81 |
-
|
| 82 |
-
.player-card:hover {
|
| 83 |
-
transform: scale(1.03);
|
| 84 |
-
box-shadow: 0 0 15px rgba(0, 128, 128, 0.3);
|
| 85 |
-
}
|
| 86 |
-
|
| 87 |
-
.starter { border: 3px solid #008080; }
|
| 88 |
-
.substitute { border: 3px solid #444444; }
|
| 89 |
-
|
| 90 |
-
/* Modal */
|
| 91 |
-
.profile-modal {
|
| 92 |
-
position: fixed;
|
| 93 |
-
top: 0;
|
| 94 |
-
left: 0;
|
| 95 |
-
width: 100%;
|
| 96 |
-
height: 100%;
|
| 97 |
-
background: rgba(0, 0, 0, 0.9);
|
| 98 |
-
display: flex;
|
| 99 |
-
justify-content: center;
|
| 100 |
-
align-items: flex-end; /* Align to bottom */
|
| 101 |
-
z-index: 1000;
|
| 102 |
-
opacity: 0;
|
| 103 |
-
pointer-events: none;
|
| 104 |
-
transition: opacity 0.3s;
|
| 105 |
-
}
|
| 106 |
-
.profile-modal.active {
|
| 107 |
-
opacity: 1;
|
| 108 |
-
pointer-events: all;
|
| 109 |
-
}
|
| 110 |
-
.profile-content {
|
| 111 |
-
background: #1E1E1E;
|
| 112 |
-
border: 1px solid #008080;
|
| 113 |
-
border-radius: 8px 8px 0 0;
|
| 114 |
-
padding: 20px;
|
| 115 |
-
max-width: 800px;
|
| 116 |
-
width: 90%;
|
| 117 |
-
max-height: 90vh;
|
| 118 |
-
overflow-y: auto;
|
| 119 |
-
position: relative;
|
| 120 |
-
animation: slideUp 0.3s;
|
| 121 |
-
}
|
| 122 |
-
@keyframes slideUp {
|
| 123 |
-
from { transform: translateY(100%); }
|
| 124 |
-
to { transform: translateY(0); }
|
| 125 |
-
}
|
| 126 |
-
.close-button {
|
| 127 |
-
position: sticky;
|
| 128 |
-
top: 10px;
|
| 129 |
-
right: 10px;
|
| 130 |
-
color: #008080;
|
| 131 |
-
font-size: 24px;
|
| 132 |
-
cursor: pointer;
|
| 133 |
-
background: none;
|
| 134 |
-
border: none;
|
| 135 |
-
}
|
| 136 |
-
|
| 137 |
-
/* Responsive Adjustments */
|
| 138 |
-
@media (max-width: 1024px) {
|
| 139 |
-
.player-grid {
|
| 140 |
-
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
| 141 |
-
}
|
| 142 |
-
}
|
| 143 |
-
@media (max-width: 768px) {
|
| 144 |
-
.player-grid {
|
| 145 |
-
grid-template-columns: 1fr;
|
| 146 |
-
}
|
| 147 |
-
.profile-content {
|
| 148 |
-
height: 90vh;
|
| 149 |
-
border-radius: 8px;
|
| 150 |
-
margin: 0 20px;
|
| 151 |
-
}
|
| 152 |
-
}
|
| 153 |
-
</style>
|
| 154 |
-
</head>
|
| 155 |
-
<body class="bg-dark text-white">
|
| 156 |
-
<!-- Navigation -->
|
| 157 |
-
<header class="fixed w-full z-50 bg-dark border-b border-primary">
|
| 158 |
-
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
|
| 159 |
-
<div class="flex items-center">
|
| 160 |
-
<div class="w-10 h-10 bg-primary rounded-full mr-3"></div>
|
| 161 |
-
<a href="index.html" class="text-xl font-extrabold"><span class="text-[#008080]">NAGAS</span><span class="text-white">ATHLETICS</span></a>
|
| 162 |
-
</div>
|
| 163 |
-
<nav class="hidden md:flex space-x-6">
|
| 164 |
-
<a href="index.html" class="hover:text-primary">Home</a>
|
| 165 |
-
<a href="about.html" class="hover:text-primary">About</a>
|
| 166 |
-
<a href="teams.html" class="hover:text-primary">Teams</a>
|
| 167 |
-
<a href="schedule.html" class="hover:text-primary">Schedule</a>
|
| 168 |
-
<a href="council.html" class="hover:text-primary">Council</a>
|
| 169 |
-
<a href="news.html" class="hover:text-primary">News</a>
|
| 170 |
-
<a href="get-involved.html" class="hover:text-primary">Get Involved</a>
|
| 171 |
-
</nav>
|
| 172 |
-
<button id="menu-toggle" class="md:hidden text-white">
|
| 173 |
-
<i data-feather="menu"></i>
|
| 174 |
-
</button>
|
| 175 |
-
</div>
|
| 176 |
-
</header>
|
| 177 |
-
|
| 178 |
-
<!-- Mobile Menu -->
|
| 179 |
-
<div id="mobile-menu" class="fixed inset-0 bg-dark z-50 hidden">
|
| 180 |
-
<div class="flex justify-between items-center p-4 border-b border-primary">
|
| 181 |
-
<div class="flex items-center">
|
| 182 |
-
<div class="w-10 h-10 bg-primary rounded-full mr-3"></div>
|
| 183 |
-
<span class="text-xl font-extrabold"><span class="text-[#008080]">NAGAS</span><span class="text-white">ATHLETICS</span></span>
|
| 184 |
-
</div>
|
| 185 |
-
<button id="menu-close" class="text-white">
|
| 186 |
-
<i data-feather="x"></i>
|
| 187 |
-
</button>
|
| 188 |
-
</div>
|
| 189 |
-
<nav class="p-4">
|
| 190 |
-
<a href="index.html" class="block py-3 hover:text-primary border-b border-[#2e2e2e]">Home</a>
|
| 191 |
-
<a href="about.html" class="block py-3 hover:text-primary border-b border-[#2e2e2e]">About</a>
|
| 192 |
-
<a href="teams.html" class="block py-3 hover:text-primary border-b border-[#2e2e2e]">Teams</a>
|
| 193 |
-
<a href="schedule.html" class="block py-3 hover:text-primary border-b border-[#2e2e2e]">Schedule</a>
|
| 194 |
-
<a href="council.html" class="block py-3 hover:text-primary border-b border-[#2e2e2e]">Council</a>
|
| 195 |
-
<a href="news.html" class="block py-3 hover:text-primary border-b border-[#2e2e2e]">News</a>
|
| 196 |
-
<a href="get-involved.html" class="block py-3 hover:text-primary border-b border-[#2e2e2e]">Get Involved</a>
|
| 197 |
-
</nav>
|
| 198 |
-
</div>
|
| 199 |
-
|
| 200 |
-
<div class="pt-20 pb-4 bg-darker border-b border-[#2e2e2e]">
|
| 201 |
-
<div class="container mx-auto px-4">
|
| 202 |
-
<nav class="text-sm">
|
| 203 |
-
<a href="index.html" class="text-primary hover:underline">Home</a> >
|
| 204 |
-
<a href="teams.html" class="text-primary hover:underline">Teams</a> >
|
| 205 |
-
<a href="volleyball.html" class="text-primary hover:underline">Volleyball</a> >
|
| 206 |
-
<span class="text-white">Junior A Girls</span>
|
| 207 |
-
</nav>
|
| 208 |
-
</div>
|
| 209 |
-
</div>
|
| 210 |
-
|
| 211 |
-
<div class="team-container pt-8">
|
| 212 |
-
<!-- Back Button -->
|
| 213 |
-
<a href="volleyball.html" class="inline-flex items-center px-4 py-2 border border-primary text-primary rounded hover:bg-primary hover:text-white transition">
|
| 214 |
-
← Back to Volleyball Teams
|
| 215 |
-
</a>
|
| 216 |
-
|
| 217 |
-
<!-- Search Bar -->
|
| 218 |
-
<input type="text" class="search-bar" placeholder="Search players by name..." id="search-input">
|
| 219 |
-
|
| 220 |
-
<!-- Player Grid Title -->
|
| 221 |
-
<h2 class="text-3xl md:text-4xl font-bold text-center my-8">Meet the Team</h2>
|
| 222 |
-
|
| 223 |
-
<!-- Player Grid -->
|
| 224 |
-
<div class="player-grid" id="player-grid">
|
| 225 |
-
<!-- Player cards will be populated by JavaScript -->
|
| 226 |
-
</div>
|
| 227 |
-
</div>
|
| 228 |
-
|
| 229 |
-
<!-- Player Profile Modal -->
|
| 230 |
-
<div class="profile-modal" id="profile-modal">
|
| 231 |
-
<div class="profile-content">
|
| 232 |
-
<button class="close-button" id="close-modal">×</button>
|
| 233 |
-
<div id="modal-content">
|
| 234 |
-
<!-- Modal content will be populated by JavaScript -->
|
| 235 |
-
</div>
|
| 236 |
-
</div>
|
| 237 |
-
</div>
|
| 238 |
-
|
| 239 |
-
<script>
|
| 240 |
-
feather.replace();
|
| 241 |
-
|
| 242 |
-
// Mobile menu toggle
|
| 243 |
-
document.getElementById('menu-toggle').addEventListener('click', function() {
|
| 244 |
-
document.getElementById('mobile-menu').classList.remove('hidden');
|
| 245 |
-
});
|
| 246 |
-
|
| 247 |
-
document.getElementById('menu-close').addEventListener('click', function() {
|
| 248 |
-
document.getElementById('mobile-menu').classList.add('hidden');
|
| 249 |
-
});
|
| 250 |
-
|
| 251 |
-
// Sample player data
|
| 252 |
-
const players = [
|
| 253 |
-
{
|
| 254 |
-
id: 1,
|
| 255 |
-
name: "Sophia Martinez",
|
| 256 |
-
position: "Setter",
|
| 257 |
-
jerseyNumber: 3,
|
| 258 |
-
status: "starter",
|
| 259 |
-
league: "PPAC8",
|
| 260 |
-
photo: "http://static.photos/people/320x320/1",
|
| 261 |
-
stats: {
|
| 262 |
-
matches: 12,
|
| 263 |
-
points: 85,
|
| 264 |
-
assists: 120
|
| 265 |
-
},
|
| 266 |
-
achievements: [
|
| 267 |
-
"MVP - Regional Tournament 2023",
|
| 268 |
-
"Best Setter - PPAC8 League"
|
| 269 |
-
],
|
| 270 |
-
gallery: [
|
| 271 |
-
"http://static.photos/sport/320x240/1",
|
| 272 |
-
"http://static.photos/sport/320x240/2",
|
| 273 |
-
"http://static.photos/sport/320x240/3"
|
| 274 |
-
]
|
| 275 |
-
},
|
| 276 |
-
{
|
| 277 |
-
id: 2,
|
| 278 |
-
name: "Emma Johnson",
|
| 279 |
-
position: "Outside Hitter",
|
| 280 |
-
jerseyNumber: 7,
|
| 281 |
-
status: "starter",
|
| 282 |
-
league: "PPAC8",
|
| 283 |
-
photo: "http://static.photos/people/320x320/2",
|
| 284 |
-
stats: {
|
| 285 |
-
matches: 12,
|
| 286 |
-
points: 142,
|
| 287 |
-
assists: 15
|
| 288 |
-
},
|
| 289 |
-
achievements: [
|
| 290 |
-
"Top Scorer - PPAC8 League 2023",
|
| 291 |
-
"All-Star Selection 2022"
|
| 292 |
-
],
|
| 293 |
-
gallery: [
|
| 294 |
-
"http://static.photos/sport/320x240/4",
|
| 295 |
-
"http://static.photos/sport/320x240/5",
|
| 296 |
-
"http://static.photos/sport/320x240/6"
|
| 297 |
-
]
|
| 298 |
-
},
|
| 299 |
-
{
|
| 300 |
-
id: 3,
|
| 301 |
-
name: "Olivia Williams",
|
| 302 |
-
position: "Middle Blocker",
|
| 303 |
-
jerseyNumber: 11,
|
| 304 |
-
status: "starter",
|
| 305 |
-
league: "PPAC8",
|
| 306 |
-
photo: "http://static.photos/people/320x320/3",
|
| 307 |
-
stats: {
|
| 308 |
-
matches: 12,
|
| 309 |
-
points: 98,
|
| 310 |
-
assists: 22
|
| 311 |
-
},
|
| 312 |
-
achievements: [
|
| 313 |
-
"Best Blocker - PPAC8 League 2023",
|
| 314 |
-
"Team Captain 2022-2023"
|
| 315 |
-
],
|
| 316 |
-
gallery: [
|
| 317 |
-
"http://static.photos/sport/320x240/7",
|
| 318 |
-
"http://static.photos/sport/320x240/8",
|
| 319 |
-
"http://static.photos/sport/320x240/9"
|
| 320 |
-
]
|
| 321 |
-
},
|
| 322 |
-
{
|
| 323 |
-
id: 4,
|
| 324 |
-
name: "Ava Brown",
|
| 325 |
-
position: "Libero",
|
| 326 |
-
jerseyNumber: 15,
|
| 327 |
-
status: "starter",
|
| 328 |
-
league: "PPAC8",
|
| 329 |
-
photo: "http://static.photos/people/320x320/4",
|
| 330 |
-
stats: {
|
| 331 |
-
matches: 12,
|
| 332 |
-
points: 25,
|
| 333 |
-
assists: 5
|
| 334 |
-
},
|
| 335 |
-
achievements: [
|
| 336 |
-
"Best Defensive Player - PPAC8 2023",
|
| 337 |
-
"Most Improved Player 2022"
|
| 338 |
-
],
|
| 339 |
-
gallery: [
|
| 340 |
-
"http://static.photos/sport/320x240/10",
|
| 341 |
-
"http://static.photos/sport/320x240/11",
|
| 342 |
-
"http://static.photos/sport/320x240/12"
|
| 343 |
-
]
|
| 344 |
-
},
|
| 345 |
-
{
|
| 346 |
-
id: 5,
|
| 347 |
-
name: "Isabella Davis",
|
| 348 |
-
position: "Opposite Hitter",
|
| 349 |
-
jerseyNumber: 19,
|
| 350 |
-
status: "substitute",
|
| 351 |
-
league: "PPAC8",
|
| 352 |
-
photo: "http://static.photos/people/320x320/5",
|
| 353 |
-
stats: {
|
| 354 |
-
matches: 8,
|
| 355 |
-
points: 65,
|
| 356 |
-
assists: 8
|
| 357 |
-
},
|
| 358 |
-
achievements: [
|
| 359 |
-
"Rookie of the Year 2022",
|
| 360 |
-
"Academic Excellence Award"
|
| 361 |
-
],
|
| 362 |
-
gallery: [
|
| 363 |
-
"http://static.photos/sport/320x240/13",
|
| 364 |
-
"http://static.photos/sport/320x240/14",
|
| 365 |
-
"http://static.photos/sport/320x240/15"
|
| 366 |
-
]
|
| 367 |
-
},
|
| 368 |
-
{
|
| 369 |
-
id: 6,
|
| 370 |
-
name: "Mia Miller",
|
| 371 |
-
position: "Setter",
|
| 372 |
-
jerseyNumber: 22,
|
| 373 |
-
status: "substitute",
|
| 374 |
-
league: "PPAC8",
|
| 375 |
-
photo: "http://static.photos/people/320x320/6",
|
| 376 |
-
stats: {
|
| 377 |
-
matches: 6,
|
| 378 |
-
points: 32,
|
| 379 |
-
assists: 45
|
| 380 |
-
},
|
| 381 |
-
achievements: [
|
| 382 |
-
"Best Team Spirit Award 2023",
|
| 383 |
-
"Leadership Workshop Participant"
|
| 384 |
-
],
|
| 385 |
-
gallery: [
|
| 386 |
-
"http://static.photos/sport/320x240/16",
|
| 387 |
-
"http://static.photos/sport/320x240/17",
|
| 388 |
-
"http://static.photos/sport/320x240/18"
|
| 389 |
-
]
|
| 390 |
-
}
|
| 391 |
-
];
|
| 392 |
-
|
| 393 |
-
// Function to render player cards
|
| 394 |
-
function renderPlayers(playersToShow) {
|
| 395 |
-
const grid = document.getElementById('player-grid');
|
| 396 |
-
grid.innerHTML = '';
|
| 397 |
-
|
| 398 |
-
playersToShow.forEach(player => {
|
| 399 |
-
const playerCard = document.createElement('div');
|
| 400 |
-
playerCard.className = `player-card ${player.status} bg-[#1E1E1E] rounded p-3 relative`;
|
| 401 |
-
playerCard.innerHTML = `
|
| 402 |
-
<div class="relative">
|
| 403 |
-
<img src="${player.photo}" alt="${player.name}" class="w-full h-48 object-cover rounded">
|
| 404 |
-
<span class="absolute top-2 right-2 bg-blue-500 text-white text-xs px-2 py-1 rounded">${player.league}</span>
|
| 405 |
-
<span class="absolute top-8 right-2 bg-${player.status === 'starter' ? 'primary' : 'gray-500'} text-white text-xs px-2 py-1 rounded capitalize">${player.status}</span>
|
| 406 |
-
</div>
|
| 407 |
-
<div class="text-center mt-3">
|
| 408 |
-
<div class="text-3xl font-bold text-primary">${player.jerseyNumber}</div>
|
| 409 |
-
<div class="text-lg font-semibold">${player.name}</div>
|
| 410 |
-
<div class="text-sm text-lightGrey">${player.position}</div>
|
| 411 |
-
</div>
|
| 412 |
-
`;
|
| 413 |
-
|
| 414 |
-
playerCard.addEventListener('click', () => openPlayerModal(player));
|
| 415 |
-
grid.appendChild(playerCard);
|
| 416 |
-
});
|
| 417 |
-
}
|
| 418 |
-
|
| 419 |
-
// Function to open player modal
|
| 420 |
-
function openPlayerModal(player) {
|
| 421 |
-
const modal = document.getElementById('profile-modal');
|
| 422 |
-
const modalContent = document.getElementById('modal-content');
|
| 423 |
-
|
| 424 |
-
modalContent.innerHTML = `
|
| 425 |
-
<div class="text-center">
|
| 426 |
-
<img src="${player.photo}" alt="${player.name}" class="w-full max-h-64 object-cover rounded mb-4">
|
| 427 |
-
<h3 class="text-2xl font-bold">${player.name}</h3>
|
| 428 |
-
<p class="text-lightGrey">${player.position} #${player.jerseyNumber}</p>
|
| 429 |
-
<span class="inline-block mt-2 px-3 py-1 bg-${player.status === 'starter' ? 'primary' : 'gray-500'} text-white text-sm rounded capitalize">${player.status}</span>
|
| 430 |
-
</div>
|
| 431 |
-
|
| 432 |
-
<div class="mt-6">
|
| 433 |
-
<h4 class="text-xl font-bold mb-3">Stats</h4>
|
| 434 |
-
<table class="w-full text-left">
|
| 435 |
-
<tr class="border-b border-[#2e2e2e]">
|
| 436 |
-
<td class="py-2">Matches Played</td>
|
| 437 |
-
<td class="py-2 text-right">${player.stats.matches}</td>
|
| 438 |
-
</tr>
|
| 439 |
-
<tr class="border-b border-[#2e2e2e]">
|
| 440 |
-
<td class="py-2">Points Scored</td>
|
| 441 |
-
<td class="py-2 text-right">${player.stats.points}</td>
|
| 442 |
-
</tr>
|
| 443 |
-
<tr class="border-b border-[#2e2e2e]">
|
| 444 |
-
<td class="py-2">Assists</td>
|
| 445 |
-
<td class="py-2 text-right">${player.stats.assists}</td>
|
| 446 |
-
</tr>
|
| 447 |
-
</table>
|
| 448 |
-
</div>
|
| 449 |
-
|
| 450 |
-
<div class="mt-6">
|
| 451 |
-
<h4 class="text-xl font-bold mb-3">Achievements</h4>
|
| 452 |
-
<ul class="list-disc pl-5">
|
| 453 |
-
${player.achievements.map(achievement => `<li class="py-1">${achievement}</li>`).join('')}
|
| 454 |
-
</ul>
|
| 455 |
-
</div>
|
| 456 |
-
|
| 457 |
-
<div class="mt-6">
|
| 458 |
-
<h4 class="text-xl font-bold mb-3">Gallery</h4>
|
| 459 |
-
<div class="flex overflow-x-auto space-x-2">
|
| 460 |
-
${player.gallery.map(img => `<img src="${img}" alt="Gallery image" class="w-24 h-24 object-cover rounded">`).join('')}
|
| 461 |
-
</div>
|
| 462 |
-
</div>
|
| 463 |
-
`;
|
| 464 |
-
|
| 465 |
-
modal.classList.add('active');
|
| 466 |
-
}
|
| 467 |
-
|
| 468 |
-
// Function to close modal
|
| 469 |
-
function closePlayerModal() {
|
| 470 |
-
document.getElementById('profile-modal').classList.remove('active');
|
| 471 |
-
}
|
| 472 |
-
|
| 473 |
-
// Event listeners for modal
|
| 474 |
-
document.getElementById('close-modal').addEventListener('click', closePlayerModal);
|
| 475 |
-
document.getElementById('profile-modal').addEventListener('click', function(e) {
|
| 476 |
-
if (e.target === this) {
|
| 477 |
-
closePlayerModal();
|
| 478 |
-
}
|
| 479 |
-
});
|
| 480 |
-
|
| 481 |
-
// Search functionality
|
| 482 |
-
document.getElementById('search-input').addEventListener('input', function(e) {
|
| 483 |
-
const searchTerm = e.target.value.toLowerCase();
|
| 484 |
-
const filteredPlayers = players.filter(player =>
|
| 485 |
-
player.name.toLowerCase().includes(searchTerm)
|
| 486 |
-
);
|
| 487 |
-
renderPlayers(filteredPlayers);
|
| 488 |
-
});
|
| 489 |
-
|
| 490 |
-
// Initial render
|
| 491 |
-
renderPlayers(players);
|
| 492 |
-
</script>
|
| 493 |
-
</body>
|
| 494 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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