diff --git a/css/tooltip.css b/css/tooltip.css
new file mode 100644
index 0000000..dd3c524
--- /dev/null
+++ b/css/tooltip.css
@@ -0,0 +1,46 @@
+/* Tooltip container */
+.tooltip2 {
+ position: relative;
+ display: inline-block;
+ border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
+}
+
+/* Tooltip text */
+.tooltip2 .tooltip2text {
+ visibility: hidden;
+ width: 120px;
+ background-color: #555;
+ color: #fff;
+ text-align: center;
+ padding: 5px 0;
+ border-radius: 6px;
+
+ /* Position the tooltip text */
+ position: absolute;
+ z-index: 1;
+ bottom: 125%;
+ left: 50%;
+ margin-left: -60px;
+
+ /* Fade in tooltip */
+ opacity: 0;
+ transition: opacity 1s;
+}
+
+/* Tooltip arrow */
+.tooltip2 .tooltip2text::after {
+ content: "";
+ position: absolute;
+ top: 100%;
+ left: 50%;
+ margin-left: -5px;
+ border-width: 5px;
+ border-style: solid;
+ border-color: #555 transparent transparent transparent;
+}
+
+/* Show the tooltip text when you mouse over the tooltip container */
+.tooltip2:hover .tooltip2text {
+ visibility: visible;
+ opacity: 1;
+}
diff --git a/include/functions.php b/include/functions.php
index a42d8e4..85f8f54 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -258,20 +258,20 @@ function getHeardList($logLines, $onlyLast) {
if (substr($ber, 6) != "-0/-0/-0 dBm") {
$rssiString = substr($ber, 6);
$rssiAvg = preg_replace('/-\d+\/-\d+\/(-\d+) dBm/', "\\1", $rssiString);
- if ($rssiAvg > "-53") $rssi = " S9+40dB ($rssiAvg dBm)";
- else if ($rssiAvg > "-63") $rssi = " S9+30dB ($rssiAvg dBm)";
- else if ($rssiAvg > "-73") $rssi = " S9+20dB ($rssiAvg dBm)";
- else if ($rssiAvg > "-83") $rssi = " S9+10dB ($rssiAvg dBm)";
- else if ($rssiAvg > "-93") $rssi = " S9 ($rssiAvg dBm)";
- else if ($rssiAvg > "-99") $rssi = " S8 ($rssiAvg dBm)";
- else if ($rssiAvg > "-105") $rssi = " S7 ($rssiAvg dBm)";
- else if ($rssiAvg > "-111") $rssi = " S6 ($rssiAvg dBm)";
- else if ($rssiAvg > "-117") $rssi = " S5 ($rssiAvg dBm)";
- else if ($rssiAvg > "-123") $rssi = " S4 ($rssiAvg dBm)";
- else if ($rssiAvg > "-129") $rssi = " S3 ($rssiAvg dBm)";
- else if ($rssiAvg > "-135") $rssi = " S2 ($rssiAvg dBm)";
- else if ($rssiAvg > "-141") $rssi = " S1 ($rssiAvg dBm)";
- else $rssi = " S0 ($rssiAvg dBm)";
+ if ($rssiAvg > "-53") $rssi = "
S9+40dB ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-63") $rssi = " S9+30dB ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-73") $rssi = " S9+20dB ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-83") $rssi = " S9+10dB ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-93") $rssi = " S9 ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-99") $rssi = " S8 ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-105") $rssi = " S7 ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-111") $rssi = " S6 ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-117") $rssi = " S5 ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-123") $rssi = " S4 ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-129") $rssi = " S3 ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-135") $rssi = " S2 ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-141") $rssi = " S1 ($rssiAvg dBm)$rssiString
";
+ else $rssi = " S0 ($rssiAvg dBm)$rssiString
";
}
$ber = substr($loss, 5);
$loss = "";
@@ -283,20 +283,20 @@ function getHeardList($logLines, $onlyLast) {
if (array_key_exists(5,$lineTokens) && substr($lineTokens[5], 6) != "-0/-0/-0 dBm") {
$rssiString = substr($lineTokens[5], 6);
$rssiAvg = preg_replace('/-\d+\/-\d+\/(-\d+) dBm/', "\\1", $rssiString);
- if ($rssiAvg > "-53") $rssi = " S9+40dB ($rssiAvg dBm)";
- else if ($rssiAvg > "-63") $rssi = " S9+30dB ($rssiAvg dBm)";
- else if ($rssiAvg > "-73") $rssi = " S9+20dB ($rssiAvg dBm)";
- else if ($rssiAvg > "-83") $rssi = " S9+10dB ($rssiAvg dBm)";
- else if ($rssiAvg > "-93") $rssi = " S9 ($rssiAvg dBm)";
- else if ($rssiAvg > "-99") $rssi = " S8 ($rssiAvg dBm)";
- else if ($rssiAvg > "-105") $rssi = " S7 ($rssiAvg dBm)";
- else if ($rssiAvg > "-111") $rssi = " S6 ($rssiAvg dBm)";
- else if ($rssiAvg > "-117") $rssi = " S5 ($rssiAvg dBm)";
- else if ($rssiAvg > "-123") $rssi = " S4 ($rssiAvg dBm)";
- else if ($rssiAvg > "-129") $rssi = " S3 ($rssiAvg dBm)";
- else if ($rssiAvg > "-135") $rssi = " S2 ($rssiAvg dBm)";
- else if ($rssiAvg > "-141") $rssi = " S1 ($rssiAvg dBm)";
- else $rssi = " S0 ($rssiAvg dBm)";
+ if ($rssiAvg > "-53") $rssi = " S9+40dB ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-63") $rssi = " S9+30dB ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-73") $rssi = " S9+20dB ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-83") $rssi = " S9+10dB ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-93") $rssi = " S9 ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-99") $rssi = " S8 ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-105") $rssi = " S7 ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-111") $rssi = " S6 ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-117") $rssi = " S5 ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-123") $rssi = " S4 ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-129") $rssi = " S3 ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-135") $rssi = " S2 ($rssiAvg dBm)$rssiString
";
+ else if ($rssiAvg > "-141") $rssi = " S1 ($rssiAvg dBm)$rssiString
";
+ else $rssi = " S0 ($rssiAvg dBm)$rssiString
";
}
}
diff --git a/index.php b/index.php
index 676095c..ee11922 100644
--- a/index.php
+++ b/index.php
@@ -21,6 +21,8 @@ include "version.php";
+
+