]> git.plutz.net Git - webpoll/blobdiff - widgets.sh
reset table padding from updated cgilite style
[webpoll] / widgets.sh
index ab88b3ec699319238b3db7452839d15fc8b2139b..8410a0cb92eaa61ab3a469fe6fd3859adc8f1d6f 100755 (executable)
@@ -1,5 +1,23 @@
 #!/bin/sh
 
+[ -n "$include_widgets" ] && return 0
+include_widgets="$0"
+
+export MD_HTML="false"
+if [ "$(which awk)" ]; then
+  markdown() { awk -f "$_EXEC/cgilite/markdown.awk"; }
+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