svn path=/trunk/; revision=142
progress(){
cr="$(printf \\r)"
- tail --pid=$$ -c0 -f "$statusfile" \
+ tail --pid=$$ -c100 -f "$statusfile" \
| while read -d "$cr" line; do
[ $line = "BREAK" ] && exit 0
printf '%s\n' "$line"
border-top: 1px solid white;
padding: 0;
height: 1em;
+ overflow: hidden;
}
-span.progress > * {
+span.progress > span {
display: block;
+ position: absolute;
text-align: center;
background-color: #333;
+ min-width: 2em;
}
<div class="panel footer" id="foot">
<a class="panel toggle" href="#tagger">Edit Tags</a>
</div>
+<span class="progress">
EOF
cnt=0
progress \
| while read p t; do
- printf '<span class="progress"><span style="width: %d%%;">%d:%02d</span></span>\n' "${p}" "$(($t / 60))" "$(($t % 60))"
+ printf '<span style="width: %d%%;">%d:%02d</span>\n' "${p}" "$(($t / 60))" "$(($t % 60))"
done
+printf '</span>'
+
# vi:set filetype=html: