aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demos/slider/colorpicker.html51
-rw-r--r--demos/slider/default.html10
-rw-r--r--demos/slider/hotelrooms.html10
-rw-r--r--demos/slider/multiple-vertical.html5
-rw-r--r--demos/slider/range-vertical.html10
-rw-r--r--demos/slider/range.html10
-rw-r--r--demos/slider/rangemax.html10
-rw-r--r--demos/slider/rangemin.html10
-rw-r--r--demos/slider/slider-vertical.html10
-rw-r--r--demos/slider/steps.html10
10 files changed, 41 insertions, 95 deletions
diff --git a/demos/slider/colorpicker.html b/demos/slider/colorpicker.html
index 6f438a2e5..32ea4f89e 100644
--- a/demos/slider/colorpicker.html
+++ b/demos/slider/colorpicker.html
@@ -4,11 +4,6 @@
<meta charset="utf-8">
<title>jQuery UI Slider - Colorpicker</title>
<link rel="stylesheet" href="../../themes/base/all.css">
- <script src="../../external/jquery/jquery.js"></script>
- <script src="../../ui/core.js"></script>
- <script src="../../ui/widget.js"></script>
- <script src="../../ui/mouse.js"></script>
- <script src="../../ui/slider.js"></script>
<link rel="stylesheet" href="../demos.css">
<style>
#red, #green, #blue {
@@ -31,28 +26,29 @@
#blue .ui-slider-range { background: #729fcf; }
#blue .ui-slider-handle { border-color: #729fcf; }
</style>
- <script>
- function hexFromRGB(r, g, b) {
- var hex = [
- r.toString( 16 ),
- g.toString( 16 ),
- b.toString( 16 )
- ];
- $.each( hex, function( nr, val ) {
- if ( val.length === 1 ) {
- hex[ nr ] = "0" + val;
- }
- });
- return hex.join( "" ).toUpperCase();
- }
- function refreshSwatch() {
- var red = $( "#red" ).slider( "value" ),
- green = $( "#green" ).slider( "value" ),
- blue = $( "#blue" ).slider( "value" ),
- hex = hexFromRGB( red, green, blue );
- $( "#swatch" ).css( "background-color", "#" + hex );
- }
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
+ function hexFromRGB(r, g, b) {
+ var hex = [
+ r.toString( 16 ),
+ g.toString( 16 ),
+ b.toString( 16 )
+ ];
+ $.each( hex, function( nr, val ) {
+ if ( val.length === 1 ) {
+ hex[ nr ] = "0" + val;
+ }
+ });
+ return hex.join( "" ).toUpperCase();
+ }
+ function refreshSwatch() {
+ var red = $( "#red" ).slider( "value" ),
+ green = $( "#green" ).slider( "value" ),
+ blue = $( "#blue" ).slider( "value" ),
+ hex = hexFromRGB( red, green, blue );
+ $( "#swatch" ).css( "background-color", "#" + hex );
+ }
+
$( "#red, #green, #blue" ).slider({
orientation: "horizontal",
range: "min",
@@ -64,7 +60,6 @@
$( "#red" ).slider( "value", 255 );
$( "#green" ).slider( "value", 140 );
$( "#blue" ).slider( "value", 60 );
- });
</script>
</head>
<body class="ui-widget-content" style="border:0;">
diff --git a/demos/slider/default.html b/demos/slider/default.html
index 141fec23d..9fcd6d07d 100644
--- a/demos/slider/default.html
+++ b/demos/slider/default.html
@@ -4,16 +4,10 @@
<meta charset="utf-8" >
<title>jQuery UI Slider - Default functionality</title>
<link rel="stylesheet" href="../../themes/base/all.css">
- <script src="../../external/jquery/jquery.js"></script>
- <script src="../../ui/core.js"></script>
- <script src="../../ui/widget.js"></script>
- <script src="../../ui/mouse.js"></script>
- <script src="../../ui/slider.js"></script>
<link rel="stylesheet" href="../demos.css">
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
$( "#slider" ).slider();
- });
</script>
</head>
<body>
diff --git a/demos/slider/hotelrooms.html b/demos/slider/hotelrooms.html
index 0268d1dc0..05d16aa52 100644
--- a/demos/slider/hotelrooms.html
+++ b/demos/slider/hotelrooms.html
@@ -4,14 +4,9 @@
<meta charset="utf-8">
<title>jQuery UI Slider - Slider bound to select</title>
<link rel="stylesheet" href="../../themes/base/all.css">
- <script src="../../external/jquery/jquery.js"></script>
- <script src="../../ui/core.js"></script>
- <script src="../../ui/widget.js"></script>
- <script src="../../ui/mouse.js"></script>
- <script src="../../ui/slider.js"></script>
<link rel="stylesheet" href="../demos.css">
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
var select = $( "#minbeds" );
var slider = $( "<div id='slider'></div>" ).insertAfter( select ).slider({
min: 1,
@@ -25,7 +20,6 @@
$( "#minbeds" ).on( "change", function() {
slider.slider( "value", this.selectedIndex + 1 );
});
- });
</script>
</head>
<body>
diff --git a/demos/slider/multiple-vertical.html b/demos/slider/multiple-vertical.html
index 5f23a2dd2..97e2349d1 100644
--- a/demos/slider/multiple-vertical.html
+++ b/demos/slider/multiple-vertical.html
@@ -15,8 +15,8 @@
height:120px; float:left; margin:15px
}
</style>
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
// setup master volume
$( "#master" ).slider({
value: 60,
@@ -35,7 +35,6 @@
orientation: "vertical"
});
});
- });
</script>
</head>
<body>
diff --git a/demos/slider/range-vertical.html b/demos/slider/range-vertical.html
index a29737b90..bed2e8cb2 100644
--- a/demos/slider/range-vertical.html
+++ b/demos/slider/range-vertical.html
@@ -4,14 +4,9 @@
<meta charset="utf-8">
<title>jQuery UI Slider - Vertical range slider</title>
<link rel="stylesheet" href="../../themes/base/all.css">
- <script src="../../external/jquery/jquery.js"></script>
- <script src="../../ui/core.js"></script>
- <script src="../../ui/widget.js"></script>
- <script src="../../ui/mouse.js"></script>
- <script src="../../ui/slider.js"></script>
<link rel="stylesheet" href="../demos.css">
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
$( "#slider-range" ).slider({
orientation: "vertical",
range: true,
@@ -22,7 +17,6 @@
});
$( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) +
" - $" + $( "#slider-range" ).slider( "values", 1 ) );
- });
</script>
</head>
<body>
diff --git a/demos/slider/range.html b/demos/slider/range.html
index a923a6d15..a660fee55 100644
--- a/demos/slider/range.html
+++ b/demos/slider/range.html
@@ -4,14 +4,9 @@
<meta charset="utf-8">
<title>jQuery UI Slider - Range slider</title>
<link rel="stylesheet" href="../../themes/base/all.css">
- <script src="../../external/jquery/jquery.js"></script>
- <script src="../../ui/core.js"></script>
- <script src="../../ui/widget.js"></script>
- <script src="../../ui/mouse.js"></script>
- <script src="../../ui/slider.js"></script>
<link rel="stylesheet" href="../demos.css">
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
$( "#slider-range" ).slider({
range: true,
min: 0,
@@ -23,7 +18,6 @@
});
$( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) +
" - $" + $( "#slider-range" ).slider( "values", 1 ) );
- });
</script>
</head>
<body>
diff --git a/demos/slider/rangemax.html b/demos/slider/rangemax.html
index b96346b6f..38bcf4016 100644
--- a/demos/slider/rangemax.html
+++ b/demos/slider/rangemax.html
@@ -4,14 +4,9 @@
<meta charset="utf-8">
<title>jQuery UI Slider - Range with fixed maximum</title>
<link rel="stylesheet" href="../../themes/base/all.css">
- <script src="../../external/jquery/jquery.js"></script>
- <script src="../../ui/core.js"></script>
- <script src="../../ui/widget.js"></script>
- <script src="../../ui/mouse.js"></script>
- <script src="../../ui/slider.js"></script>
<link rel="stylesheet" href="../demos.css">
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
$( "#slider-range-max" ).slider({
range: "max",
min: 1,
@@ -22,7 +17,6 @@
}
});
$( "#amount" ).val( $( "#slider-range-max" ).slider( "value" ) );
- });
</script>
</head>
<body>
diff --git a/demos/slider/rangemin.html b/demos/slider/rangemin.html
index a3d1b0628..1105ff71e 100644
--- a/demos/slider/rangemin.html
+++ b/demos/slider/rangemin.html
@@ -4,14 +4,9 @@
<meta charset="utf-8">
<title>jQuery UI Slider - Range with fixed minimum</title>
<link rel="stylesheet" href="../../themes/base/all.css">
- <script src="../../external/jquery/jquery.js"></script>
- <script src="../../ui/core.js"></script>
- <script src="../../ui/widget.js"></script>
- <script src="../../ui/mouse.js"></script>
- <script src="../../ui/slider.js"></script>
<link rel="stylesheet" href="../demos.css">
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
$( "#slider-range-min" ).slider({
range: "min",
value: 37,
@@ -22,7 +17,6 @@
}
});
$( "#amount" ).val( "$" + $( "#slider-range-min" ).slider( "value" ) );
- });
</script>
</head>
<body>
diff --git a/demos/slider/slider-vertical.html b/demos/slider/slider-vertical.html
index 0a5ecd97d..f59f08a30 100644
--- a/demos/slider/slider-vertical.html
+++ b/demos/slider/slider-vertical.html
@@ -4,14 +4,9 @@
<meta charset="utf-8">
<title>jQuery UI Slider - Vertical slider</title>
<link rel="stylesheet" href="../../themes/base/all.css">
- <script src="../../external/jquery/jquery.js"></script>
- <script src="../../ui/core.js"></script>
- <script src="../../ui/widget.js"></script>
- <script src="../../ui/mouse.js"></script>
- <script src="../../ui/slider.js"></script>
<link rel="stylesheet" href="../demos.css">
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
$( "#slider-vertical" ).slider({
orientation: "vertical",
range: "min",
@@ -23,7 +18,6 @@
}
});
$( "#amount" ).val( $( "#slider-vertical" ).slider( "value" ) );
- });
</script>
</head>
<body>
diff --git a/demos/slider/steps.html b/demos/slider/steps.html
index 9b8ca2add..deb05bbc0 100644
--- a/demos/slider/steps.html
+++ b/demos/slider/steps.html
@@ -4,14 +4,9 @@
<meta charset="utf-8">
<title>jQuery UI Slider - Snap to increments</title>
<link rel="stylesheet" href="../../themes/base/all.css">
- <script src="../../external/jquery/jquery.js"></script>
- <script src="../../ui/core.js"></script>
- <script src="../../ui/widget.js"></script>
- <script src="../../ui/mouse.js"></script>
- <script src="../../ui/slider.js"></script>
<link rel="stylesheet" href="../demos.css">
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
$( "#slider" ).slider({
value:100,
min: 0,
@@ -22,7 +17,6 @@
}
});
$( "#amount" ).val( "$" + $( "#slider" ).slider( "value" ) );
- });
</script>
</head>
<body>