demos: Added progressbar and slider demos

This commit is contained in:
Richard Worth 2008-12-23 13:23:38 +00:00
parent 8c94a14b0f
commit 1d3e8909ac
7 changed files with 123 additions and 2 deletions

View File

@ -9,7 +9,7 @@
<script type="text/javascript" src="../../ui/ui.accordion.js"></script>
<script type="text/javascript">
$(function() {
$("#accordion").accordion({
$("#accordion-mouseover").accordion({
event: "mouseover",
header: "h3"
});
@ -18,7 +18,7 @@
</head>
<body>
<div id="accordion">
<div id="accordion-mouseover">
<div>
<h3><a href="#">Nullam blandit</a></h3>
<div>

View File

@ -0,0 +1,23 @@
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Progressbar - Default Demo</title>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
<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>
<script type="text/javascript">
$(function() {
$("#progressbar").progressbar({
value: 37
});
})
</script>
</head>
<body>
<div id="progressbar"></div>
</body>
</html>

23
demos/slider/default.html Normal file
View File

@ -0,0 +1,23 @@
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Slider - Default Demo</title>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
<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.slider.js"></script>
<script type="text/javascript">
$(function() {
$("#slider").slider({
value: 37
});
})
</script>
</head>
<body>
<div id="slider"></div>
</body>
</html>

View File

@ -15,6 +15,9 @@
<dl class="nav">
<dt>Slider</dt>
<dd><a href="default.html">Default</a></dd>
<dd><a href="range.html">Range</a></dd>
<dd><a href="rangemin.html">Range Min</a></dd>
<dd><a href="rangemax.html">Range Max</a></dd>
</dl>
</body>

24
demos/slider/range.html Normal file
View File

@ -0,0 +1,24 @@
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Slider - Range Demo</title>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
<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.slider.js"></script>
<script type="text/javascript">
$(function() {
$("#slider-range").slider({
range: true,
values: [17, 67]
});
})
</script>
</head>
<body>
<div id="slider-range"></div>
</body>
</html>

View File

@ -0,0 +1,24 @@
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Slider - Range Max Demo</title>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
<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.slider.js"></script>
<script type="text/javascript">
$(function() {
$("#slider-range-max").slider({
range: "max",
value: 63
});
})
</script>
</head>
<body>
<div id="slider-range-max"></div>
</body>
</html>

View File

@ -0,0 +1,24 @@
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Slider - Range Min Demo</title>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
<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.slider.js"></script>
<script type="text/javascript">
$(function() {
$("#slider-range-min").slider({
range: "min",
value: 37
});
})
</script>
</head>
<body>
<div id="slider-range-min"></div>
</body>
</html>