diff --git a/dabo/functions/webpage.sh b/dabo/functions/webpage.sh index 6c4d4b6..192d513 100644 --- a/dabo/functions/webpage.sh +++ b/dabo/functions/webpage.sh @@ -8,7 +8,7 @@ function genchart { local divideby=$(echo "$highest+$lowest" | bc -l) local color="green" tail -n1 "${file}" | grep -q "^-" && color="red" - + echo "
" 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 '
$file