X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=widgets.sh;h=835e6463113dae536546a0124d96855f56763e75;hb=805e220f4308309007a450148a95b3517f287d7b;hp=3eb4850b274d764b28078f1e5eb0d7148bdf2ebe;hpb=982dbbfd100e35f266b577c248d2046e63a7e270;p=webpoll diff --git a/widgets.sh b/widgets.sh index 3eb4850..835e646 100755 --- a/widgets.sh +++ b/widgets.sh @@ -7,6 +7,14 @@ else markdown() { busybox awk -f "$_EXEC/cgilite/markdown.awk"; } fi +dec(){ + local n + for n in "$@"; do + while [ "${n}" != "${n#0}" ]; do n="${n#0}"; done + printf %i\\n "$n" + done +} + checked(){ local check="$1"; shift 1; for comp in "$@"; do