aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/progressbar.html
blob: eba1f71dc0a5a6d93f81ef6003507d12da9ed96c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="Content-Language" content="en" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery UI Progressbar Visual Tests</title>
<script type="text/javascript" src="../../jquery-1.2.6.js"></script>
<script type="text/javascript" src="../../ui/ui.core.js"></script>
<script type="text/javascript" src="../../ui/ui.progressbar.js"></script>

<style type="text/css">
     .ui-progressbar { position: relative; height: 22px; border: 1px solid black; }
     .ui-progressbar-labelalign-left { text-align: left; }
     .ui-progressbar-labelalign-center { text-align: center; }
     .ui-progressbar-labelalign-right { text-align: right; }
     .ui-progressbar-label { color: black; }
     .ui-progressbar-labelalign-left .ui-progressbar-label div { padding-left: 0.5em; }
     .ui-progressbar-labelalign-right .ui-progressbar-label div { padding-right: 0.5em; }
     .ui-progressbar-value { position: absolute; top: 0; background: gray; overflow: hidden; height: 100%; white-space: nowrap; }
     .ui-progressbar-value .ui-progressbar-label { color: white; }
</style>

<script type="text/javascript">
	$(function() {
		$("#progressbar1").progressbar({ value: 6 });
		$("#progressbar2").progressbar({ labelAlign: 'center', label: 'center' }).progressbar("option", "value", 50);
		$("#progressbar3").progressbar().progressbar("option", "labelAlign", "right").progressbar("value", 90.73).data("label.progressbar", "right").progressbar("option", "label", true);
		$("#progressbar4").progressbar().progressbar("destroy");
		$("#progressbar5").progressbar({ value: -10 });
		$("#progressbar6").progressbar().progressbar("value", 200);
	});
	</script>
</head>
<body>

<h1>jQuery UI Progressbar Visual Tests</h1>
	<div id="progressbar1"></div>
	<br>
	<div id="progressbar2"></div>
	<br>
	<div id="progressbar3"></div>
	<br>
	<div id="progressbar4"></div>
	<br>
	<div id="progressbar5"></div>
	<br>
	<div id="progressbar6"></div>

</body>
</html>