forked from hummypkg/webif
5fb2b59a3a
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif@167 2a923420-c742-0410-a762-8d5b09965624
32 lines
516 B
Plaintext
32 lines
516 B
Plaintext
|
|
class spinner {
|
|
name "spinner"
|
|
text "Loading..."
|
|
img "/img/loading.gif"
|
|
size "1.1em"
|
|
style ""
|
|
speed "slow"
|
|
}
|
|
|
|
spinner method start {} {
|
|
puts "<div style=\"
|
|
align: center;
|
|
font-size: [$self get size];
|
|
[$self get style]
|
|
\"
|
|
id=\"[$self get name]\">
|
|
<img src=\"[$self get img]\">
|
|
[$self get text]
|
|
</div>
|
|
";
|
|
puts "
|
|
<script type=text/javascript>
|
|
\$(document).ready(function () {
|
|
\$('#[$self get name]').hide('[$self get speed]');
|
|
});
|
|
</script>
|
|
"
|
|
flush stdout
|
|
}
|
|
|