mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
51 lines
2.0 KiB
HTML
51 lines
2.0 KiB
HTML
<!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>
|