mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Added simple slider test
This commit is contained in:
parent
2439b4feb8
commit
4a0df13665
@ -6,7 +6,7 @@ ul.plugins li { margin: 0 12px 12px 0;
|
|||||||
color: white; border: 1px solid gray; text-align: center; font-weight: bold; }
|
color: white; border: 1px solid gray; text-align: center; font-weight: bold; }
|
||||||
|
|
||||||
#accordion, #draggable, #droppable,
|
#accordion, #draggable, #droppable,
|
||||||
#resizable, #selectable, #slider, #sortable, #tabs {
|
#resizable, #selectable, #sortable, #tabs {
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
width: 190px; height: 180px;
|
width: 190px; height: 180px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@ -71,3 +71,6 @@ ul.plugins li { margin: 0 12px 12px 0;
|
|||||||
.ui-dialog .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: 0px; bottom: 0px; background: gray !important; border: none !important; }
|
.ui-dialog .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: 0px; bottom: 0px; background: gray !important; border: none !important; }
|
||||||
.ui-dialog .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 29px; left: 0px; top: 0px; background: gray !important; border: none !important; }
|
.ui-dialog .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 29px; left: 0px; top: 0px; background: gray !important; border: none !important; }
|
||||||
.ui-dialog .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 29px; right: 0px; top: 0px; background: gray !important; border: none !important; }
|
.ui-dialog .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 29px; right: 0px; top: 0px; background: gray !important; border: none !important; }
|
||||||
|
|
||||||
|
.ui-slider { margin: 10px; background: #FF9C08; height: 15px; }
|
||||||
|
.ui-slider-handle { width: 10px; height: 15px; background: white; }
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
$("#draggable").draggable();
|
$("#draggable").draggable();
|
||||||
$("#resizable").resizable();
|
$("#resizable").resizable();
|
||||||
$("#selectable").selectable();
|
$("#selectable").selectable();
|
||||||
|
$("#slider").slider();
|
||||||
$("#sortable").sortable();
|
$("#sortable").sortable();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@ -64,6 +65,10 @@
|
|||||||
<div>9</div>
|
<div>9</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
Slider
|
||||||
|
<div id="slider"></div>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Sortable
|
Sortable
|
||||||
<div id="sortable">
|
<div id="sortable">
|
||||||
|
26
tests/visual/slider.html
Normal file
26
tests/visual/slider.html
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<title>Simple Slider</title>
|
||||||
|
<link rel="stylesheet" href="all.css" type="text/css" media="screen">
|
||||||
|
<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();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<ul class="plugins">
|
||||||
|
<li>
|
||||||
|
Slider
|
||||||
|
<div id="slider"></div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user