]> source.dussan.org Git - jquery-ui.git/commitdiff
Tooltip: Update demos to use AMD
authorAlexander Schmitz <arschmitz@gmail.com>
Wed, 1 Jul 2015 03:46:05 +0000 (23:46 -0400)
committerAlexander Schmitz <arschmitz@gmail.com>
Tue, 21 Jul 2015 15:00:42 +0000 (11:00 -0400)
Ref #10119

demos/tooltip/custom-animation.html
demos/tooltip/custom-content.html
demos/tooltip/custom-style.html
demos/tooltip/default.html
demos/tooltip/forms.html
demos/tooltip/tracking.html
demos/tooltip/video-player.html

index 892462a891d001452d3d51feedac60f8c1390b1c..9f09c135319d2782c075c42c9e219bbbb96d1fc4 100644 (file)
@@ -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>
index 530b33525fe93288d50024ad97bc343f6c06a93c..66e7e0c01a0f2ebb951140b12d759045e04fd902 100644 (file)
@@ -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>
index c926776c5e7742b66fa1a54df1f46508d4b06d71..8e0574f8ee810daea4790918145339307726b081 100644 (file)
@@ -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 {
index e70f92320d97bff5e44acf485a829dbb4345f2dd..c467b1c1aa346ac0d97b7e5b3cc48e2d7e57259d 100644 (file)
@@ -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 {
index 4a593ef512a3260b463fcab9d3a5da528f3e370f..37c849a21c849c9faa4790baf851b6b10f657578 100644 (file)
@@ -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>
index 856f55564b24863e32a55a36927e9cf2b0f6e862..3cca5ec42b106b55af68ee60b48ec65fd817236e 100644 (file)
@@ -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 {
                width: 5em;
        }
        </style>
-       <script>
-       $(function() {
+       <script src="../../external/requirejs/require.js"></script>
+       <script src="../bootstrap.js">
                $( document ).tooltip({
                        track: true
                });
-       });
        </script>
 </head>
 <body>
index 3d4e467be00b38e25b726d2ffee2e9c89c5c1753..cd667e3dbc4f189713494d33179fb84e188cc085 100644 (file)
@@ -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>" )
                                effect: "hide"
                        }
                });
-       });
        </script>
 </head>
 <body>