charts.min.css

This commit is contained in:
olli 2023-10-06 16:51:37 +02:00
parent 4bcbf012e9
commit 92fd7c66f1

View File

@ -8,7 +8,7 @@ function genchart {
local divideby=$(echo "$highest+$lowest" | bc -l)
local color="green"
tail -n1 "${file}" | grep -q "^-" && color="red"
echo "<div id='${file}'>
<table class='charts-css line show-data-on-hover show-heading'><caption> $file </caption>"
for mark in $(cat "${file}")
@ -22,6 +22,10 @@ function genchart {
function webpage {
g_echo_note "RUNNING FUNCTION ${FUNCNAME} $@"
# Get charts.css
[ -e ../charts.min.css ] || wget -q https://raw.githubusercontent.com/ChartsCSS/charts.css/main/dist/charts.min.css -O ../charts.min.css
# create status webpage
echo '<html><head>
<meta charset="UTF-8">