diff --git a/index.php b/index.php
index 57b9c16..c459e27 100644
--- a/index.php
+++ b/index.php
@@ -13,13 +13,17 @@
$activeUsers = json_decode(file_get_contents('online-users.json'), true);
if (!empty($activeUsers)) {
- $userList = "";
+ echo "
";
foreach ($activeUsers as $user) {
$username = htmlspecialchars($user);
- $userList .= "- $username
";
+ echo "- $username
";
}
- // Print the list with data-content for seamless scrolling
- echo "";
+ // Repeat the list for seamless scrolling
+ foreach ($activeUsers as $user) {
+ $username = htmlspecialchars($user);
+ echo "- $username
";
+ }
+ echo "
";
} else {
echo "No active users at the moment.";
}