From ed3de852ced74a060713b3635f1157ed94416c27 Mon Sep 17 00:00:00 2001 From: adrien Date: Fri, 26 May 2023 10:20:57 +0200 Subject: [PATCH] little changes --- index.php | 2 +- style.css | 4 ++-- vlans.php | 13 ++++--------- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/index.php b/index.php index 06e907d..6e359d9 100644 --- a/index.php +++ b/index.php @@ -27,7 +27,7 @@ $cfgPaths = glob($fullpath . '/*.cfg'); if (count($cfgPaths)) { $str .= "\n"; diff --git a/style.css b/style.css index 049b10d..382db0a 100644 --- a/style.css +++ b/style.css @@ -29,7 +29,7 @@ main > table { } .access, .pvid { - background-color: hsl(var(--pvid) 100% 60%); + background-color: hsl(calc(67*var(--pvid)) 100% 60%); } .trunk { position: relative; @@ -41,7 +41,7 @@ main > table { } .hybrid { - background-image: linear-gradient(135deg, hsl(var(--tagged) 100% 60%) 50%, hsl(var(--untagged) 100% 60%) 50%); + background-image: linear-gradient(135deg, hsl(calc(67*var(--tagged)) 100% 60%) 50%, hsl(calc(67*var(--untagged)) 100% 60%) 50%); } .shutdown { background-color: lightgray; diff --git a/vlans.php b/vlans.php index ab68510..6d8f2a1 100644 --- a/vlans.php +++ b/vlans.php @@ -19,16 +19,11 @@ foreach ($interfaces as $interface) { } $stack[$interface["member"]][$interface["port"]] = $interface; } - -echo "\n"; ?> -Tableau des VLANs - <?=$sysname[1] ?? "Switch sans nom"?> +<?=$sysname[1] ?? "Switch sans nom"?> - Tableau des VLANs @@ -77,9 +72,9 @@ foreach ($vlans as $vlan) { } } ?> -TTrunk -HHybride (tagged/untagged) -SInterface désactivée +Trunk +Hybride (tagged/untagged) +Interface désactivée