]> source.dussan.org Git - jquery-ui.git/commitdiff
Tests: Use demo bootstrap for visual tests 1609/head
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 30 Sep 2015 07:49:13 +0000 (09:49 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 30 Sep 2015 15:55:20 +0000 (17:55 +0200)
Adds a data-composite option and fixes paths for effects. Otherwise
just applies the same conversion as already applied to demos, sometimes
moving a <style> element to the right place.

35 files changed:
Gruntfile.js
demos/bootstrap.js
tests/visual/accordion/icons.html
tests/visual/addClass/queue.html
tests/visual/button/button.html
tests/visual/button/performance.html
tests/visual/compound/accordion_tabs.html
tests/visual/compound/datepicker_dialog.html
tests/visual/compound/dialog_widgets.html
tests/visual/compound/draggable_accordion.html
tests/visual/compound/draggable_accordion_accordion_tabs_draggable.html
tests/visual/compound/draggable_resizable.html
tests/visual/compound/sortable_accordion_sortable_tabs.html
tests/visual/compound/tabs_selectmenu.html
tests/visual/compound/tabs_tabs.html
tests/visual/compound/tabs_tooltips.html
tests/visual/dialog/animated.html
tests/visual/dialog/complex-dialogs.html
tests/visual/dialog/form.html
tests/visual/dialog/performance.html
tests/visual/dialog/stacking.html
tests/visual/draggable/replaced.html
tests/visual/effects/all.html
tests/visual/effects/clip.html
tests/visual/effects/effects.js
tests/visual/effects/scale.html
tests/visual/effects/shake.html
tests/visual/index.html
tests/visual/menu/menu.html
tests/visual/position/position.html
tests/visual/position/position_feedback.html
tests/visual/selectmenu/selectmenu.html
tests/visual/slider/range_slider.html
tests/visual/tooltip/animations.html
tests/visual/tooltip/tooltip.html

index fe6b588b20d750e46ee7be91c669d9523679d451..0c9bf44473e7f48a53f4fb88e6425242fa6d50d4 100644 (file)
@@ -147,15 +147,12 @@ grunt.initConfig({
        },
        uglify: minify,
        htmllint: {
-               good: [ "tests/**/*.html" ].concat( htmllintBad.map( function( file ) {
-                       return "!" + file;
-               } ) ),
-               demos: {
+               good: {
                        options: {
                                ignore: [
                                /The text content of element “script” was not in the required format: Expected space, tab, newline, or slash but found “.” instead/
                        ] },
-                       src: [ "demos/**/*.html" ].concat( htmllintBad.map( function( file ) {
+                       src: [ "demos/**/*.html", "tests/**/*.html" ].concat( htmllintBad.map( function( file ) {
                                return "!" + file;
                        } ) )
                },
index b96620d6a777172ebfab8ccf37d3a8777610f908..7a942374d24c201aa712459612540bca6bb0fa01 100644 (file)
@@ -7,6 +7,7 @@ var script = scripts[ scripts.length - 1 ];
 
 // Read the modules
 var modules = script.getAttribute( "data-modules" );
+var composite = script.getAttribute( "data-composite" ) || false;
 var pathParts = window.location.pathname.split( "/" );
 var effectsAll = [
        "effects/effect-blind",
@@ -22,7 +23,8 @@ var effectsAll = [
        "effects/effect-scale",
        "effects/effect-shake",
        "effects/effect-size",
-       "effects/effect-slide"
+       "effects/effect-slide",
+       "effects/effect-transfer"
 ];
 var widgets = [
        "accordion",
@@ -52,8 +54,13 @@ function getPath( module ) {
                }
        }
        for ( var j = 0; j < effectsAll.length; j++ ) {
-               if ( module !== "effect" && effectsAll[ j ].indexOf( module ) !== -1 ) {
-                       return "effects/" + module;
+               if ( module !== "effect" ) {
+                       if ( effectsAll[ j ] === module ) {
+                               return module;
+                       }
+                       if ( effectsAll[ j ].indexOf( module ) !== -1 ) {
+                               return "effects/" + module;
+                       }
                }
        }
        return module;
@@ -69,7 +76,7 @@ function fixPaths( modules ) {
 document.documentElement.className = "demo-loading";
 
 require.config( {
-       baseUrl: "../../ui",
+       baseUrl: window.location.pathname.indexOf( "demos/" ) !== -1 ? "../../ui" : "../../../ui",
        paths: {
                jquery: "../external/jquery/jquery",
                external: "../external/"
@@ -86,7 +93,9 @@ if ( modules && modules.indexOf( "effects-all" ) !== -1 ) {
 }
 
 modules = modules ? modules.replace( /^\s+|\s+$/g, "" ).split( /\s+/ ) : [];
-modules.push( pathParts[ pathParts.length - 2 ] );
+if ( !composite ) {
+       modules.push( pathParts[ pathParts.length - 2 ] );
+}
 modules = fixPaths( modules );
 
 require( modules, function() {
index a8723a8593dc147af5e33a5ce8960bbc5e326fb0..b0ae18c65b2eea3dbeb953f23235170fde8b6f6f 100644 (file)
@@ -4,12 +4,8 @@
        <meta charset="utf-8">
        <title>Accordion Visual Test</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/accordion.js"></script>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js">
                $( "#accordion-ynynyn" ).accordion({ icons: null });
                $( "#accordion-ynyny" ).accordion();
                $( "#accordion-ynyn" ).accordion({ icons: null });
@@ -23,7 +19,6 @@
                $( "#accordion-nyn" ).accordion({ icons: null });
                $( "#accordion-ny" ).accordion();
                $( "#accordion-n" ).accordion({ icons: null });
-       });
        </script>
 </head>
 <body>
index 88611ddc4005cdaa8a8315be3256381e0620b890..c939dce919df21bda69873027bafbc717ef17da3 100644 (file)
@@ -4,8 +4,6 @@
        <meta charset="utf-8">
        <title>addClass Visual Test : Queue</title>
        <link rel="stylesheet" href="../../../themes/base/all.css">
-       <script src="../../../external/jquery/jquery.js"></script>
-       <script src="../../../ui/effect.js"></script>
        <style>
        .box {
                width: 100px;
@@ -22,8 +20,8 @@
                background-color: #00f;
        }
        </style>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js" data-modules="effect" data-composite="true">
                $( "#box1" )
                        .delay( 500 )
                        .addClass( "red", 2000 )
@@ -37,7 +35,6 @@
                        .addClass( "green", 2000 )
                        .delay( 500 )
                        .addClass( "blue", 2000 );
-       });
        </script>
 </head>
 <body>
index 3ac055b91b0054281a5f7397abba6a04088f348b..1d82cf665dceb7ebacf8cfd8f68626070c8e67e0 100644 (file)
@@ -4,12 +4,8 @@
        <meta charset="utf-8">
        <title>Button Visual Test</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/button.js"></script>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js">
                $( ".buttons" ).each(function() {
                        $( this ).children()
                                .eq( 0 )
@@ -31,7 +27,6 @@
                                .eq( 2 )
                                        .button();
                });
-       });
        </script>
 </head>
 <body>
index ba90965a95ef608c789f771b8cf2bbb3315ea445..0d807d16780d453fec19b8f22ba221ee1ffa9fd0 100644 (file)
@@ -4,12 +4,8 @@
        <meta charset="utf-8">
        <title>Button Visual Test: Initialization Performance</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/button.js"></script>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js">
                var start,
                        html = new Array( 500 ).join( "<button>button</button>" );
                $( html ).appendTo( "body" );
@@ -17,7 +13,6 @@
                start = $.now();
                $( "button" ).button();
                $( "<p>" ).text( "Time to initialize: " + ($.now() - start)  + "ms" ).prependTo( "body" );
-       });
        </script>
 </head>
 <body>
index 68207d1511c34417816fb792a4de3e5cb2cbd019..3f2f93712ab7e33c27bddcd3433424dec69f77b9 100644 (file)
@@ -5,16 +5,10 @@
        <title>Compound Visual Test : Accordion in Tabs</title>
        <link rel="stylesheet" href="../visual.css">
        <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/accordion.js"></script>
-       <script src="../../../ui/tabs.js"></script>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js" data-modules="tabs accordion" data-composite="true">
                $( "#accordion-1, #accordion-2" ).accordion();
                $( "#tabs" ).tabs();
-       });
        </script>
 </head>
 <body>
index 52c91a0835b5c56b6dcf732c92523b3c3dd081a9..ba1a1de7e0bcda362e9fd5e68390c269d2cb2a4c 100644 (file)
@@ -5,21 +5,10 @@
        <title>Compound Visual Test : Datepicker in Dialog</title>
        <link rel="stylesheet" href="../visual.css">
        <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/position.js"></script>
-       <script src="../../../ui/resizable.js"></script>
-       <script src="../../../ui/draggable.js"></script>
-       <script src="../../../ui/button.js"></script>
-       <script src="../../../ui/datepicker.js"></script>
-       <script src="../../../ui/dialog.js"></script>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js" data-modules="datepicker dialog" data-composite="true">
                $( "#datepicker" ).datepicker();
                $( "#dialog" ).dialog();
-       });
        </script>
 </head>
 <body>
index 2258231e91fe71e61ac517e31a8ba7cf40e7b3da..f84ef01234a84bbda6a738f515283546db1e0286 100644 (file)
@@ -5,26 +5,10 @@
        <title>Compound Visual Test : All Widgets in Dialog</title>
        <link rel="stylesheet" href="../visual.css">
        <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/position.js"></script>
-       <script src="../../../ui/menu.js"></script>
-       <script src="../../../ui/resizable.js"></script>
-       <script src="../../../ui/draggable.js"></script>
-       <script src="../../../ui/accordion.js"></script>
-       <script src="../../../ui/autocomplete.js"></script>
-       <script src="../../../ui/button.js"></script>
-       <script src="../../../ui/datepicker.js"></script>
-       <script src="../../../ui/dialog.js"></script>
-       <script src="../../../ui/progressbar.js"></script>
-       <script src="../../../ui/slider.js"></script>
-       <script src="../../../ui/tabs.js"></script>
-       <script src="../../../ui/tooltip.js"></script>
-       <script src="../../../ui/selectmenu.js"></script>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js"
+               data-modules="accordion autocomplete button datepicker dialog progressbar slider tabs tooltip selectmenu"
+               data-composite="true">
                $( "#dialog" ).dialog();
                $( "[title]" ).tooltip();
                $( "#accordion" ).accordion();
@@ -54,7 +38,6 @@
                        height: 75,
                        modal: true
                });
-       });
        </script>
 </head>
 <body>
index 528cdc3215c3fe95a50e7e8b9ae3dac3edc32932..345c0b038db17820573bb40abf611d0d866d6541 100644 (file)
@@ -5,20 +5,15 @@
        <title>Compound Visual Test : Draggable in Accordion</title>
        <link rel="stylesheet" href="../visual.css">
        <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/accordion.js"></script>
-       <script src="../../../ui/draggable.js"></script>
        <style>
        .draggable {
                width: 10em;
                margin: 0.5em;
        }
        </style>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js" data-modules="accordion draggable"
+               data-composite="true">
                $( ".draggable" ).addClass( "ui-widget ui-widget-content ui-corner-all" )
                $( "#first .draggable" ).draggable();
                $( "#second .draggable" ).draggable({
@@ -29,7 +24,6 @@
                        appendTo: "body"
                });
                $( "#accordion" ).accordion();
-       });
        </script>
 </head>
 <body>
index 302a2e9101d55755a88da17add2e0f5ffd8d9a9e..bfc5f81e66f3f3fa02c66840f79cf9699d096497 100644 (file)
@@ -5,13 +5,6 @@
        <title>Compound Visual Test : Draggable in Accordion</title>
        <link rel="stylesheet" href="../visual.css">
        <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/accordion.js"></script>
-       <script src="../../../ui/draggable.js"></script>
-       <script src="../../../ui/tabs.js"></script>
        <style>
        #main-draggable {
                width: 300px;
@@ -27,8 +20,9 @@
                margin: 0.5em;
        }
        </style>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js" data-modules="accordion draggable tabs"
+               data-composite="true">
                $( ".draggable" )
                        .addClass( "ui-widget ui-widget-content ui-corner-all" )
                        .draggable({
@@ -44,7 +38,6 @@
                $( "#main-draggable" ).draggable({
                        handle: "#main-draggable-handle"
                });
-       });
        </script>
 </head>
 <body>
index d07c8bdc48669b76fd3d850cba51b295a2b40175..539091b7f4ac0bf4df85a68824198c0691f28f33 100644 (file)
@@ -5,12 +5,6 @@
        <title>Compound Visual Test: Draggable and Resizable block element</title>
        <link rel="stylesheet" href="../visual.css">
        <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/draggable.js"></script>
-       <script src="../../../ui/resizable.js"></script>
        <style>
        .draggable {
                margin: 0.5em;
@@ -21,8 +15,9 @@
                position: absolute !important;
        }
        </style>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js" data-modules="draggable resizable"
+               data-composite="true">
                $( ".draggable" )
                        .addClass( "ui-widget ui-widget-header ui-corner-all" )
                        .draggable({
@@ -33,7 +28,6 @@
                                handles: "s"
                        });
                $( ".draggable:last" ).addClass( "absolute" );
-       });
        </script>
 </head>
 <body>
index f44f2b929d566c71f591419130dc0e26ec608912..9ccc36751d8fe4c19d1387f22f2d8784c1959765 100644 (file)
@@ -5,15 +5,9 @@
        <title>Compound Visual Test : Accordion in Tabs</title>
        <link rel="stylesheet" href="../visual.css">
        <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/sortable.js"></script>
-       <script src="../../../ui/accordion.js"></script>
-       <script src="../../../ui/tabs.js"></script>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js" data-modules="accordion tabs sortable"
+               data-composite="true">
                $( "#accordion-1, #accordion-2" )
                        .accordion({
                                header: "> div > h3"
@@ -24,7 +18,6 @@
                        .tabs()
                        .find( ".ui-tabs-nav" )
                                .sortable();
-       });
        </script>
 </head>
 <body>
index ca2020b71a9f81173b71824a4d43f471ab3a5b19..ddd72c75fdcaf73f2ac8a671f41da117469110b2 100644 (file)
@@ -5,18 +5,10 @@
        <title>Compound Visual Test : Selectmenu in Tabs</title>
        <link rel="stylesheet" href="../visual.css">
        <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/menu.js"></script>
-       <script src="../../../ui/selectmenu.js"></script>
-       <script src="../../../ui/tabs.js"></script>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js" data-modules="tabs selectmenu" data-composite="true">
                $( "#tabs" ).tabs();
                $( "select" ).selectmenu();
-       });
        </script>
        <style>
                select { width: 200px; }
index bf5cf4eadbf7982962a5f6135280e5dbb320994d..54c2d48a1bd38dd8d2abb7de2ef6c06d22af1cca 100644 (file)
@@ -5,15 +5,9 @@
        <title>Compound Visual Test : Tabs in Tabs</title>
        <link rel="stylesheet" href="../visual.css">
        <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/accordion.js"></script>
-       <script src="../../../ui/tabs.js"></script>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js" data-modules="tabs" data-composite="true">
                $( "#tabs, #tabs-a, #tabs-b" ).tabs();
-       });
        </script>
 </head>
 <body>
index bb8f2d11db7e1bed85d8a7a8c852316f816552e9..8ee625e1e34937911bd202948cbebbb855a6a02f 100644 (file)
@@ -5,17 +5,10 @@
        <title>Compound Visual Test : Tabs in Tabs</title>
        <link rel="stylesheet" href="../visual.css">
        <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/tabs.js"></script>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js" data-modules="tabs tooltip" data-composite="true">
                $( "#tabs" ).tabs();
                $( "a" ).tooltip();
-       });
        </script>
 </head>
 <body>
index 2bb0b398b968efee95e64482a06e70b5643c173c..2fd1d04a6dfc90477cfd79aeb8c508d3bcbcee71 100644 (file)
@@ -4,20 +4,8 @@
        <meta charset="utf-8">
        <title>Dialog Visual Test</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/draggable.js"></script>
-       <script src="../../../ui/position.js"></script>
-       <script src="../../../ui/resizable.js"></script>
-       <script src="../../../ui/button.js"></script>
-       <script src="../../../ui/dialog.js"></script>
-       <script src="../../../ui/effect.js"></script>
-       <script src="../../../ui/effect-blind.js"></script>
-       <script src="../../../ui/effect-explode.js"></script>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js" data-modules="effect-blind effect-explode">
                $( "#dialog" ).dialog({
                        autoOpen: false,
                        show: {
@@ -34,7 +22,6 @@
                $( "#opener" ).on( "click", function() {
                        $( "#dialog" ).dialog( "open" );
                });
-       });
        </script>
 </head>
 <body>
index 9a6209be9f9bac0d578b94a3b7d1b1febc2f2645..0bea3414e1be77a27ef5998d91660875387494ae 100644 (file)
@@ -4,24 +4,8 @@
        <meta charset="utf-8">
        <title>Dialog Visual Test</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/draggable.js"></script>
-       <script src="../../../ui/position.js"></script>
-       <script src="../../../ui/resizable.js"></script>
-       <script src="../../../ui/button.js"></script>
-       <script src="../../../ui/dialog.js"></script>
-
-       <!-- stuff needed to make things complex -->
-       <script src="../../../ui/datepicker.js"></script>
-       <script src="../../../ui/menu.js"></script>
-       <script src="../../../ui/autocomplete.js"></script>
-       <script src="../../../ui/tooltip.js"></script>
-
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js" data-modules="datepicker autocomplete tooltip">
                var dialog = $( "#dialog" ).dialog({
                                modal: true,
                                width: 500,
@@ -87,7 +71,6 @@
                });
 
                $( document ).tooltip();
-       });
        </script>
 </head>
 <body>
index 42d40f1f4d25b7645c483c814af78973f6a3fb33..b1cdaa54a96a622ab5f2a51e7e571925f007ee45 100644 (file)
@@ -4,20 +4,8 @@
        <meta charset="utf-8">
        <title>Dialog Visual Test</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/draggable.js"></script>
-       <script src="../../../ui/position.js"></script>
-       <script src="../../../ui/resizable.js"></script>
-       <script src="../../../ui/button.js"></script>
-       <script src="../../../ui/dialog.js"></script>
-       <script src="../../../ui/effect.js"></script>
-       <script src="../../../ui/effect-blind.js"></script>
-       <script src="../../../ui/effect-explode.js"></script>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js">
                $( "#form-dialog, #prompt-dialog" ).dialog({
                        autoOpen: false,
                        modal: true
@@ -30,7 +18,6 @@
                $( "#open-prompt" ).on( "click", function() {
                        $( "#prompt-dialog" ).dialog( "open" );
                });
-       });
        </script>
        <style>
        label {
index e01098ad13566339238c74e00ca223267bbe2019..20adbfa6bdf341e89a3f7b09776ffd842e9ed236 100644 (file)
@@ -4,17 +4,8 @@
        <meta charset="utf-8">
        <title>Dialog Visual Test - Modal Dialog in Large DOM</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/position.js"></script>
-       <script src="../../../ui/widget.js"></script>
-       <script src="../../../ui/mouse.js"></script>
-       <script src="../../../ui/draggable.js"></script>
-       <script src="../../../ui/resizable.js"></script>
-       <script src="../../../ui/button.js"></script>
-       <script src="../../../ui/dialog.js"></script>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js">
                var start,
                        html = new Array( 500 ).join( $.trim( $( "#template" ).html() ) );
                $( html ).appendTo( "body" );
@@ -31,7 +22,6 @@
                        $( "#dialog" ).dialog( "open" );
                        $( "<li>Open: " + ($.now() - start) + "ms</li>" ).appendTo( "#log" );
                });
-       });
        </script>
 </head>
 <body>
index 221498a558696686ad3dd35de8eb819f21ffb224..e2e23e58a49de98b42a754da16cb8c89e97bc4bb 100644 (file)
@@ -4,18 +4,8 @@
        <meta charset="utf-8">
        <title>Dialog Visual Test</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/draggable.js"></script>
-       <script src="../../../ui/position.js"></script>
-       <script src="../../../ui/resizable.js"></script>
-       <script src="../../../ui/button.js"></script>
-       <script src="../../../ui/dialog.js"></script>
-
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js">
                var iframeDialog = $( "#dialog-iframe" ).dialog({
                                position: {
                                        my: "right-90 center"
@@ -34,7 +24,6 @@
                                width: 200,
                                height: 150
                        });
-       });
        </script>
 </head>
 <body>
index f343eea28b2ba543ba26f63d17d99073cea327ee..38931f34576377c7c7f6e3d32bc217b0d72faa64 100644 (file)
@@ -4,19 +4,13 @@
        <meta charset="utf-8">
        <title>Draggable Visual Test</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/draggable.js"></script>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js">
                $( "#draggable" )
                        .draggable()
                        .on( "mousedown", function() {
                                $( this ).html( "<div>replaced</div>" );
                        });
-       });
        </script>
 
        <style>
index c1bdd9fa32be2bcd5c56c159e1f065775fa59135..e3fa3ee487f577ddc2c26b24a0b7e276f360d2a4 100644 (file)
@@ -4,24 +4,10 @@
        <meta charset="utf-8">
        <title>jQuery UI Effects Test Suite</title>
        <link rel="stylesheet" href="effects.css">
-       <script src="../../../external/jquery/jquery.js"></script>
-       <script src="../../../ui/effect.js"></script>
-       <script src="../../../ui/effect-blind.js"></script>
-       <script src="../../../ui/effect-bounce.js"></script>
-       <script src="../../../ui/effect-clip.js"></script>
-       <script src="../../../ui/effect-drop.js"></script>
-       <script src="../../../ui/effect-explode.js"></script>
-       <script src="../../../ui/effect-fade.js"></script>
-       <script src="../../../ui/effect-fold.js"></script>
-       <script src="../../../ui/effect-highlight.js"></script>
-       <script src="../../../ui/effect-puff.js"></script>
-       <script src="../../../ui/effect-pulsate.js"></script>
-       <script src="../../../ui/effect-scale.js"></script>
-       <script src="../../../ui/effect-size.js"></script>
-       <script src="../../../ui/effect-shake.js"></script>
-       <script src="../../../ui/effect-slide.js"></script>
-       <script src="../../../ui/effect-transfer.js"></script>
-       <script src="effects.js"></script>
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js" data-modules="effects-all" data-composite="true">
+               require( ["./effects.js"] );
+       </script>
 </head>
 <body>
 
index b8ede414b2ad23010eb3821ba7f6c0618883c913..c20e6506a3a6c348659c31e7e2497e3ce3f65631 100644 (file)
@@ -4,11 +4,9 @@
        <meta charset="utf-8">
        <title>jQuery UI Effects Test Suite</title>
        <link rel="stylesheet" href="effects.css">
-       <script src="../../../external/jquery/jquery.js"></script>
-       <script src="../../../ui/effect.js"></script>
-       <script src="../../../ui/effect-clip.js"></script>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js" data-modules="effect effect-clip"
+               data-composite="true">
                var target = $( ".target" ),
                        duration = 2000;
 
@@ -33,7 +31,6 @@
                                direction: "vertical"
                        }, duration );
                });
-       });
        </script>
        <style>
        .clipped {
index 0b0de96f43442694f629bd7980911765d18c7aeb..6d36a55ead322d9cf0ce89e4a5bbc71a2395f573 100644 (file)
@@ -1,5 +1,3 @@
-$( function() {
-
 var duration = 1000,
        wait = 500;
 
@@ -104,5 +102,3 @@ $( "#removeClass" ).on( "click", function() {
 $( "#toggleClass" ).on( "click", function() {
        $( this ).toggleClass( "current", duration );
 } );
-
-} );
index 0723d9458733dd240ea0ca1f5be8dd338f3b8338..b032ac896f4a4eb8c59faa80043f8e342f3e5823 100644 (file)
@@ -4,12 +4,39 @@
        <meta charset="utf-8">
        <title>jQuery UI Effects Test Suite</title>
        <link rel="stylesheet" href="effects.css">
-       <script src="../../../external/jquery/jquery.js"></script>
-       <script src="../../../ui/effect.js"></script>
-       <script src="../../../ui/effect-scale.js"></script>
-       <script src="../../../ui/effect-size.js"></script>
-       <script>
-       $(function() {
+       <style>
+       #testArea {
+               width: 200px;
+               height: 200px;
+               position: relative;
+       }
+       #testBox {
+               width: 50px;
+               height: 50px;
+               background-color: #bada55;
+               color: black;
+               border: 10px solid #fff;
+               margin: 10px;
+               padding: 10px;
+               position: absolute;
+               left: 5px;
+               top: 5px;
+       }
+       label {
+               display: block;
+       }
+       #controls {
+               position: absolute;
+               z-index: 300;
+               left: 50%;
+               top: 50%;
+               margin-left: -200px;
+               width: 400px;
+               opacity: 0.8;
+       }
+       </style>
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js" data-modules="effect-scale" data-composite="true">
                var test = $( "#testBox" ),
                        opts = $( ".arg" ),
                        optsRev = $( opts.get().reverse() ),
                                .delay( 100 )
                                .effect( effect );
                }
-       });
        </script>
-       <style>
-       #testArea {
-               width: 200px;
-               height: 200px;
-               position: relative;
-       }
-       #testBox {
-               width: 50px;
-               height: 50px;
-               background-color: #bada55;
-               color: black;
-               border: 10px solid #fff;
-               margin: 10px;
-               padding: 10px;
-               position: absolute;
-               left: 5px;
-               top: 5px;
-       }
-       label {
-               display: block;
-       }
-       #controls {
-               position: absolute;
-               z-index: 300;
-               left: 50%;
-               top: 50%;
-               margin-left: -200px;
-               width: 400px;
-               opacity: 0.8;
-       }
-       </style>
 </head>
 <body>
 
index 29159e39dac8d60c874c3ef8bc8e1d87686e8f4f..c93f0eb5733d6fd325f8a7b2bbdbe40b4d3a523d 100644 (file)
@@ -4,20 +4,6 @@
        <meta charset="utf-8">
        <title>jQuery UI Effects Test Suite</title>
        <link rel="stylesheet" href="effects.css">
-       <script src="../../../external/jquery/jquery.js"></script>
-       <script src="../../../ui/effect.js"></script>
-       <script src="../../../ui/effect-scale.js"></script>
-       <script src="../../../ui/effect-shake.js"></script>
-       <script>
-       $(function() {
-               $( "#btn" ).on( "click", function() {
-                       $( ".shake" ).effect( "shake", {
-                               duration: +$( "#duration" ).val(),
-                               mode: "toggle"
-                       });
-               });
-       });
-       </script>
        <style>
        #inputbox {
                background: green;
                padding: 10px;
        }
        </style>
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js" data-modules="effect-shake" data-composite="true">
+               $( "#btn" ).on( "click", function() {
+                       $( ".shake" ).effect( "shake", {
+                               duration: +$( "#duration" ).val(),
+                               mode: "toggle"
+                       });
+               });
+       </script>
 </head>
 <body>
 
index 4979921a464d0dc2f6c04cd4c5f652add313e4f0..98753c8279e0a43c5eaf4b3e7b6a9ac933500c42 100644 (file)
@@ -89,6 +89,7 @@
                        <li><a href="compound/draggable_accordion_accordion_tabs_draggable.html">Nested Widgets</a></li>
                        <li><a href="compound/draggable_resizable.html">Draggable Resizable</a></li>
                        <li><a href="compound/sortable_accordion_sortable_tabs.html">Sortable Tabs in Sortable Accordion</a></li>
+                       <li><a href="compound/tabs_selectmenu.html">Selectmenu in Tabs</a></li>
                        <li><a href="compound/tabs_tabs.html">Nested Tabs</a></li>
                        <li><a href="compound/tabs_tooltips.html">Tabs with Tooltips</a></li>
                </ul>
index c71f50ff4a43ca845583a7dc98885747d36a56e1..9bbaa95e1f4731ed394c8123b5941c74c88e09ab 100644 (file)
@@ -4,13 +4,15 @@
        <meta charset="utf-8">
        <title>Menu Visual Test: Default</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/menu.js"></script>
-       <script>
-       $(function() {
+       <style>
+               .ui-menu { width: 250px; margin-bottom: 2em; }
+               .menu4 { height: 225px; overflow-y: auto; overflow-x: hidden; }
+               .address-item { border-bottom: 1px solid #999; }
+               .address-header { display: block; margin-bottom: .2em; font-weight: bold; }
+               .address-content { display: block; margin-bottom: .2em; padding-left: 10px; }
+       </style>
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js">
                function logger( event, ui ) {
                        $( "<p>" ).text( "Selected: " + ui.item.text() ).appendTo( "#log" );
                }
                        items: "> :not('.ui-menu-group')",
                        select: logger
                });
-       });
        </script>
-       <style>
-               .ui-menu { width: 250px; margin-bottom: 2em; }
-               .menu4 { height: 225px; overflow-y: auto; overflow-x: hidden; }
-               .address-item { border-bottom: 1px solid #999; }
-               .address-header { display: block; margin-bottom: .2em; font-weight: bold; }
-               .address-content { display: block; margin-bottom: .2em; padding-left: 10px; }
-       </style>
 </head>
 <body>
 
index 70a9c40e53ff45f1f78d34c44173f31e894fc6b2..d5c19fd32007464b29b4fb17277d0f60f307c68d 100644 (file)
@@ -3,12 +3,6 @@
 <head>
        <meta charset="utf-8">
        <title>Position Visual Test</title>
-       <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/draggable.js"></script>
-       <script src="../../../ui/position.js"></script>
        <style>
                .demo {
                        position: relative;
@@ -34,8 +28,8 @@
                        margin: 0 15px 15px 0;
                }
        </style>
-       <script>
-               $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js" data-modules="draggable">
                        var within = $( ".demo" ),
                                positionable = $( ".positionable" );
                        function position() {
@@ -67,7 +61,6 @@
                        $( "select, input" ).on( "click keyup change", function() { position(); } );
 
                        position();
-               });
        </script>
 </head>
 <body>
index 988451026083b2a0fc7f7cb6272e1b0e3e4f7485..f094b51485df665b798f59241b6aa80a3b53da80 100644 (file)
@@ -4,13 +4,67 @@
        <meta charset="utf-8">
        <title>Position Visual Test: Feedback</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/menu.js"></script>
-       <script>
-       $(function() {
+       <style>
+       #target, .element {
+               position: absolute;
+               border: 1px solid black;
+               border-radius: 5px;
+               width: 75px;
+               height: 25px;
+               padding: 5px;
+               font-size: 62.5%;
+       }
+       #target {
+               height: 75px;
+       }
+       .element:before {
+               font-size: 12pt;
+               content: "↑";
+               position: absolute;
+               top: -19px;
+               left: 5px;
+       }
+       .right:before {
+               left: auto;
+               right: 5px;
+       }
+       .bottom:before {
+               content: "↓";
+               top: auto;
+               bottom: -19px;
+       }
+       .center:before {
+               left: 50%;
+               right: auto;
+       }
+       .middle:before {
+               top: 50%;
+               bottom: auto;
+       }
+       .horizontal:before {
+               height: 10px;
+               top: 50%;
+               margin-top: -8px;
+               bottom: auto;
+               left: -18px;
+               right: auto;
+               content: "←";
+       }
+       .right.horizontal:before {
+               left: auto;
+               right: -18px;
+               content: "→";
+       }
+       .bottom.horizontal:before {
+               top: auto;
+               bottom: 5px;
+       }
+       .top.horizontal:before {
+               top: 5px;
+       }
+       </style>
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js">
                function using( position, feedback ) {
                        $( this )
                                .css( position )
                        rightElement.position( positionWithOffset(
                                0.9 * (event.pageX - targetOffset.left), -0.9 * (event.pageY - targetOffset.top) ) );
                });
-       });
        </script>
-       <style>
-       #target, .element {
-               position: absolute;
-               border: 1px solid black;
-               border-radius: 5px;
-               width: 75px;
-               height: 25px;
-               padding: 5px;
-               font-size: 62.5%;
-       }
-       #target {
-               height: 75px;
-       }
-       .element:before {
-               font-size: 12pt;
-               content: "↑";
-               position: absolute;
-               top: -19px;
-               left: 5px;
-       }
-       .right:before {
-               left: auto;
-               right: 5px;
-       }
-       .bottom:before {
-               content: "↓";
-               top: auto;
-               bottom: -19px;
-       }
-       .center:before {
-               left: 50%;
-               right: auto;
-       }
-       .middle:before {
-               top: 50%;
-               bottom: auto;
-       }
-       .horizontal:before {
-               height: 10px;
-               top: 50%;
-               margin-top: -8px;
-               bottom: auto;
-               left: -18px;
-               right: auto;
-               content: "←";
-       }
-       .right.horizontal:before {
-               left: auto;
-               right: -18px;
-               content: "→";
-       }
-       .bottom.horizontal:before {
-               top: auto;
-               bottom: 5px;
-       }
-       .top.horizontal:before {
-               top: 5px;
-       }
-       </style>
 </head>
 <body>
 
index f91894710a6f2ec1dc1c1cd6971013cbb1e69e3a..693885d25067072832fa232dcd873889622d4552 100644 (file)
@@ -4,14 +4,18 @@
        <meta charset="utf-8">
        <title>Selectmenu Visual Test: Default</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/menu.js"></script>
-       <script src="../../../ui/selectmenu.js"></script>
-       <script>
-       $(function() {
+       <style>
+               fieldset { border: 0; }
+               label { display: block; }
+               select { width: 200px; }
+
+               .ui-selectmenu-button  { display: block; margin-bottom: 1em;}
+
+               /* width */
+               .width-menu { width: 196px; }
+       </style>
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js">
                var log = $("#log"),
                        index = 0,
                        text;
                var widthMenu = $("#width_menu").selectmenu();
                widthMenu.selectmenu("menuWidget").addClass("width-menu");
 
-       });
        </script>
-       <style>
-               fieldset { border: 0; }
-               label { display: block; }
-               select { width: 200px; }
-
-               .ui-selectmenu-button  { display: block; margin-bottom: 1em;}
-
-               /* width */
-               .width-menu { width: 196px; }
-       </style>
 </head>
 <body>
 
index 2b041f37740f66eb22427e6e9839708f3ef9384a..64152a9ff3d40f30e73edea741801cb95b3e1918 100644 (file)
                        margin: 20px auto;
                }
        </style>
-       <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>
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js">
+               var el = $( "#slider" ).slider({
+                       range: true,
+                       min: 0,
+                       max: 100,
+                       values: [ 0, 50 ]
+               });
+
+               $( "#set-max-values" ).on( "click", function() {
+                       el.slider( "option", { values: [ 100, 100 ] } );
+               });
+
+               $( "#set-min-values" ).on( "click", function() {
+                       el.slider( "option", { values: [ 0, 0 ] } );
+               });
+       </script>
 </head>
 <body>
 <div id="wrapper">
        <button id="set-max-values">set values to max</button>
        <button id="set-min-values">set values to min</button>
 </div>
-
-<script>
-       var el = $( "#slider" ).slider({
-               range: true,
-               min: 0,
-               max: 100,
-               values: [ 0, 50 ]
-       });
-
-       $( "#set-max-values" ).on( "click", function() {
-               el.slider( "option", { values: [ 100, 100 ] } );
-       });
-
-       $( "#set-min-values" ).on( "click", function() {
-               el.slider( "option", { values: [ 0, 0 ] } );
-       });
-</script>
 </body>
 </html>
index 6131db4365e0abc7b57dd68bc3fa01335e7c2818..7427d7ebd52f9a37a93a22539c2e620bc9c3213f 100644 (file)
@@ -4,16 +4,6 @@
        <meta charset="utf-8">
        <title>Tooltip Visual Test: Animations</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-blind.js"></script>
-       <script src="../../../ui/effect-bounce.js"></script>
-       <script src="../../../ui/effect-drop.js"></script>
-       <script src="../../../ui/effect-explode.js"></script>
        <style>
        pre {
                width: 250px;
                padding: .5em;
        }
        </style>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js">
                $( "pre" ).each(function( index, elem ) {
                        $( elem )
                                .attr( "title", "animated tooltips" )
                                .tooltip( $.parseJSON( $( elem ).text() ) );
                });
-       });
        </script>
 </head>
 <body>
 
 <pre>{}</pre>
 <pre>{
-  "show": {
-    "effect": "slideDown"
-  },
-  "hide": {
-    "effect": "slideUp"
-  }
+       "show": {
+               "effect": "slideDown"
+       },
+       "hide": {
+               "effect": "slideUp"
+       }
 }</pre>
 <pre>{
-  "show": {
-    "effect": "explode"
-  },
-  "hide": {
-    "effect": "explode"
-  }
+       "show": {
+               "effect": "explode"
+       },
+       "hide": {
+               "effect": "explode"
+       }
 }</pre>
 <pre>{
-  "show": {
-    "effect": "bounce"
-  },
-  "hide": {
-    "effect": "blind"
-  }
+       "show": {
+               "effect": "bounce"
+       },
+       "hide": {
+               "effect": "blind"
+       }
 }</pre>
 <pre>{
-  "show": {
-    "effect": "drop",
-    "direction": "right"
-  },
-  "hide": {
-    "effect": "drop",
-    "direction": "right"
-  }
+       "show": {
+               "effect": "drop",
+               "direction": "right"
+       },
+       "hide": {
+               "effect": "drop",
+               "direction": "right"
+       }
 }</pre>
 
 </body>
index 176af85d86caf4839846f03eb2d480b66e53f433..9453190d727fab0a7edecd7b256d9ecd65ab4d57 100644 (file)
@@ -4,19 +4,13 @@
        <meta charset="utf-8">
        <title>Tooltip Visual Test: Default</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/button.js"></script>
-       <script src="../../../ui/tooltip.js"></script>
        <style>
        .group {
                margin-top: 2em;
        }
        </style>
-       <script>
-       $(function() {
+       <script src="../../../external/requirejs/require.js"></script>
+       <script src="../../../demos/bootstrap.js" data-modules="button">
                // default
                $( "#context1, form, #childish, #nested-input" ).tooltip();
 
                }).on( "click", function() {
                        $( "#focus-on-me" ).trigger( "focus" );
                });
-       });
        </script>
 </head>
 <body>