X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/e76c47e177b4e8e47b871f321490505195ebf78a..630261974fd350964443aed92704938d4a8bd858:/index.php diff --git a/index.php b/index.php index 741f54f..219c143 100644 --- a/index.php +++ b/index.php @@ -1,13 +1,23 @@ stats()->get(); ?> - -

Network Overview

- +
+

Network Overview

+⚪LIVE
+
-
+
@@ -127,7 +137,7 @@ $num_of_panel_admins = count($userlist);
-
+
@@ -261,9 +271,29 @@ $num_of_panel_admins = count($userlist); initStats(); //setInterval(updateStats, 1000); // Update stats every second // ^ commented out but may want to restart initStats() when connection is lost. + + + window.addEventListener('resize', function() { + var containers = document.querySelectorAll('.card-container'); + var width = window.innerWidth; + if (width < 768) + { + containers.forEach((container) => { + container.removeAttribute('style'); + + }); + } else + { + containers.forEach((container) => { + container.style.marginLeft = "40px"; + container.style.marginTop = "30px"; + + }); + } + }); -
+
@@ -294,4 +324,4 @@ $num_of_panel_admins = count($userlist); Hook::run(HOOKTYPE_OVERVIEW_CARD, $stats); -require_once "footer.php"; +require_once "inc/footer.php";