ce2dfa8338
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@657 2a923420-c742-0410-a762-8d5b09965624
11 lines
250 B
Plaintext
11 lines
250 B
Plaintext
|
|
if {![exists -proc progressbar]} {
|
|
proc progressbar {percent} {
|
|
set pos [expr 118 - $percent / 100.0 * 118]
|
|
return "<img src=/img/percentimage.png
|
|
alt=\"$percent%\" class=progress
|
|
style=\"background-position: -${pos}px 0;\">"
|
|
}
|
|
}
|
|
|