webif/var/mongoose/lib/spinner.class
hummypkg 5fb2b59a3a added in popup programming info box
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif@167 2a923420-c742-0410-a762-8d5b09965624
2011-06-08 23:33:35 +00:00

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
}