X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=widgets.sh;h=835e6463113dae536546a0124d96855f56763e75;hb=2785c687f62b164d5c08a20481270c66653a6bff;hp=3eb4850b274d764b28078f1e5eb0d7148bdf2ebe;hpb=1b9f025da80bb30db913635a60e799a3e523f2e1;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