X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/6210ec482efa44e152fb8bc61d4dd8f529687cb9..53c3262154b4828643ec075a42c30b6decb01377:/index.php?ds=sidebyside diff --git a/index.php b/index.php index e7b5f74..209abd0 100644 --- a/index.php +++ b/index.php @@ -1,13 +1,23 @@ stats()->get(); ?> - -

Network Overview

- +
+

Network Overview

+⚪LIVE
+
-
+ +
@@ -122,7 +137,7 @@ $num_of_panel_admins = count($userlist);
-
+
@@ -256,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"; + + }); + } + }); -
+
@@ -289,4 +324,4 @@ $num_of_panel_admins = count($userlist); Hook::run(HOOKTYPE_OVERVIEW_CARD, $stats); -require_once "footer.php"; +require_once "inc/footer.php";