aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-06-30 23:46:05 -0400
committerAlexander Schmitz <arschmitz@gmail.com>2015-07-21 11:00:42 -0400
commitb60694ee309a72c44db5e46576f6019ae8c0638f (patch)
tree06249845f9e3e5c54030a81a5ff62d16ce5d8dfc /demos
parentd1c0e381857c05d51e6495947aead908df45c634 (diff)
downloadjquery-ui-b60694ee309a72c44db5e46576f6019ae8c0638f.tar.gz
jquery-ui-b60694ee309a72c44db5e46576f6019ae8c0638f.zip
Tooltip: Update demos to use AMD
Ref #10119
Diffstat (limited to 'demos')
-rw-r--r--demos/tooltip/custom-animation.html12
-rw-r--r--demos/tooltip/custom-content.html10
-rw-r--r--demos/tooltip/custom-style.html10
-rw-r--r--demos/tooltip/default.html10
-rw-r--r--demos/tooltip/forms.html11
-rw-r--r--demos/tooltip/tracking.html10
-rw-r--r--demos/tooltip/video-player.html14
7 files changed, 14 insertions, 63 deletions
diff --git a/demos/tooltip/custom-animation.html b/demos/tooltip/custom-animation.html
index 892462a89..9f09c1353 100644
--- a/demos/tooltip/custom-animation.html
+++ b/demos/tooltip/custom-animation.html
@@ -4,16 +4,9 @@
<meta charset="utf-8">
<title>jQuery UI Tooltip - Custom animation demo</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/position.js"></script>
- <script src="../../ui/tooltip.js"></script>
- <script src="../../ui/effect.js"></script>
- <script src="../../ui/effect-explode.js"></script>
<link rel="stylesheet" href="../demos.css">
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js" data-modules="effect effect-explode">
$( "#show-option" ).tooltip({
show: {
effect: "slideDown",
@@ -36,7 +29,6 @@
ui.tooltip.animate({ top: ui.tooltip.position().top + 10 }, "fast" );
}
});
- });
</script>
</head>
<body>
diff --git a/demos/tooltip/custom-content.html b/demos/tooltip/custom-content.html
index 530b33525..66e7e0c01 100644
--- a/demos/tooltip/custom-content.html
+++ b/demos/tooltip/custom-content.html
@@ -4,11 +4,6 @@
<meta charset="utf-8">
<title>jQuery UI Tooltip - Custom content</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/position.js"></script>
- <script src="../../ui/tooltip.js"></script>
<link rel="stylesheet" href="../demos.css">
<style>
.photo {
@@ -26,8 +21,8 @@
max-width: 350px;
}
</style>
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
$( document ).tooltip({
items: "img, [data-geo], [title]",
content: function() {
@@ -47,7 +42,6 @@
}
}
});
- });
</script>
</head>
<body>
diff --git a/demos/tooltip/custom-style.html b/demos/tooltip/custom-style.html
index c926776c5..8e0574f8e 100644
--- a/demos/tooltip/custom-style.html
+++ b/demos/tooltip/custom-style.html
@@ -4,14 +4,9 @@
<meta charset="utf-8">
<title>jQuery UI Tooltip - Custom Styling</title>
<link rel="stylesheet" href="../../themes/base/tooltip.css">
- <script src="../../external/jquery/jquery.js"></script>
- <script src="../../ui/core.js"></script>
- <script src="../../ui/widget.js"></script>
- <script src="../../ui/position.js"></script>
- <script src="../../ui/tooltip.js"></script>
<link rel="stylesheet" href="../demos.css">
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
$( document ).tooltip({
position: {
my: "center bottom-20",
@@ -26,7 +21,6 @@
}
}
});
- });
</script>
<style>
.ui-tooltip, .arrow:after {
diff --git a/demos/tooltip/default.html b/demos/tooltip/default.html
index e70f92320..c467b1c1a 100644
--- a/demos/tooltip/default.html
+++ b/demos/tooltip/default.html
@@ -4,16 +4,10 @@
<meta charset="utf-8">
<title>jQuery UI Tooltip - 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/position.js"></script>
- <script src="../../ui/tooltip.js"></script>
<link rel="stylesheet" href="../demos.css">
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
$( document ).tooltip();
- });
</script>
<style>
label {
diff --git a/demos/tooltip/forms.html b/demos/tooltip/forms.html
index 4a593ef51..37c849a21 100644
--- a/demos/tooltip/forms.html
+++ b/demos/tooltip/forms.html
@@ -4,12 +4,6 @@
<meta charset="utf-8">
<title>jQuery UI Tooltip - Forms</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/position.js"></script>
- <script src="../../ui/tooltip.js"></script>
- <script src="../../ui/button.js"></script>
<link rel="stylesheet" href="../demos.css">
<style>
label {
@@ -25,8 +19,8 @@
width: 210px;
}
</style>
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js" data-modules="button">
var tooltips = $( "[title]" ).tooltip({
position: {
my: "left top",
@@ -40,7 +34,6 @@
tooltips.tooltip( "open" );
})
.insertAfter( "form" );
- });
</script>
</head>
<body>
diff --git a/demos/tooltip/tracking.html b/demos/tooltip/tracking.html
index 856f55564..3cca5ec42 100644
--- a/demos/tooltip/tracking.html
+++ b/demos/tooltip/tracking.html
@@ -4,11 +4,6 @@
<meta charset="utf-8">
<title>jQuery UI Tooltip - Track the mouse</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/position.js"></script>
- <script src="../../ui/tooltip.js"></script>
<link rel="stylesheet" href="../demos.css">
<style>
label {
@@ -16,12 +11,11 @@
width: 5em;
}
</style>
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
$( document ).tooltip({
track: true
});
- });
</script>
</head>
<body>
diff --git a/demos/tooltip/video-player.html b/demos/tooltip/video-player.html
index 3d4e467be..cd667e3db 100644
--- a/demos/tooltip/video-player.html
+++ b/demos/tooltip/video-player.html
@@ -4,15 +4,6 @@
<meta charset="utf-8">
<title>jQuery UI Tooltip - Video Player demo</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/position.js"></script>
- <script src="../../ui/tooltip.js"></script>
- <script src="../../ui/button.js"></script>
- <script src="../../ui/menu.js"></script>
- <script src="../../ui/effect.js"></script>
- <script src="../../ui/effect-blind.js"></script>
<link rel="stylesheet" href="../demos.css">
<style>
.player {
@@ -42,8 +33,8 @@
box-shadow: 2px 2px 5px -2px rgba(0,0,0,0.5);
}
</style>
- <script>
- $(function() {
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js" data-modules="button menu effect effect-blind">
function notify( input ) {
var msg = "Selected " + $.trim( input.data( "tooltip-title" ) || input.text() );
$( "<div>" )
@@ -115,7 +106,6 @@
effect: "hide"
}
});
- });
</script>
</head>
<body>