2008-06-09 06:20:15 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
var model = {
|
2008-11-18 02:55:25 +00:00
|
|
|
|
2008-06-09 06:20:15 +00:00
|
|
|
renderAt: '#containerDemo',
|
|
|
|
|
|
|
|
title: 'Slider Demos',
|
2008-11-18 02:55:25 +00:00
|
|
|
|
2008-06-09 06:20:15 +00:00
|
|
|
demos: [
|
|
|
|
|
|
|
|
{
|
|
|
|
title: 'Simple slider',
|
|
|
|
desc: 'With few lines of code you could build a slider. You can try more options on the fly!',
|
|
|
|
html: '<div id="slider3"><div class="ui-slider-handle"></div></div>',
|
|
|
|
destroy: '$("#slider3").sortable("destroy");',
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
desc: 'Make a simple slider',
|
|
|
|
source: '$("#slider3").slider();'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2008-11-18 02:55:25 +00:00
|
|
|
|
2008-06-09 06:20:15 +00:00
|
|
|
{
|
|
|
|
title: 'Multiple slides',
|
|
|
|
desc: 'You can also have multiples slides.',
|
|
|
|
html: '<div id="slider1" class="ui-slider-2"><div class="ui-slider-handle"></div><div class="ui-slider-handle" style="left:100px"></div></div>',
|
|
|
|
destroy: '$("#slider1").slider("destroy");',
|
|
|
|
options: [
|
|
|
|
{ desc: 'Multiple slides', source: '$("#slider1").slider();' }
|
|
|
|
//, { desc: 'Multiple slides with range', source: '$("#slider1").slider({ range: true });' }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
$(function(){
|
|
|
|
|
|
|
|
uiRenderDemo(model);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|