},
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;
} ) )
},
// 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",
"effects/effect-scale",
"effects/effect-shake",
"effects/effect-size",
- "effects/effect-slide"
+ "effects/effect-slide",
+ "effects/effect-transfer"
];
var widgets = [
"accordion",
}
}
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;
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/"
}
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() {
<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 });
$( "#accordion-nyn" ).accordion({ icons: null });
$( "#accordion-ny" ).accordion();
$( "#accordion-n" ).accordion({ icons: null });
- });
</script>
</head>
<body>
<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;
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 )
.addClass( "green", 2000 )
.delay( 500 )
.addClass( "blue", 2000 );
- });
</script>
</head>
<body>
<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 )
.eq( 2 )
.button();
});
- });
</script>
</head>
<body>
<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" );
start = $.now();
$( "button" ).button();
$( "<p>" ).text( "Time to initialize: " + ($.now() - start) + "ms" ).prependTo( "body" );
- });
</script>
</head>
<body>
<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>
<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>
<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();
height: 75,
modal: true
});
- });
</script>
</head>
<body>
<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({
appendTo: "body"
});
$( "#accordion" ).accordion();
- });
</script>
</head>
<body>
<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;
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({
$( "#main-draggable" ).draggable({
handle: "#main-draggable-handle"
});
- });
</script>
</head>
<body>
<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;
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({
handles: "s"
});
$( ".draggable:last" ).addClass( "absolute" );
- });
</script>
</head>
<body>
<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"
.tabs()
.find( ".ui-tabs-nav" )
.sortable();
- });
</script>
</head>
<body>
<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; }
<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>
<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>
<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: {
$( "#opener" ).on( "click", function() {
$( "#dialog" ).dialog( "open" );
});
- });
</script>
</head>
<body>
<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,
});
$( document ).tooltip();
- });
</script>
</head>
<body>
<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
$( "#open-prompt" ).on( "click", function() {
$( "#prompt-dialog" ).dialog( "open" );
});
- });
</script>
<style>
label {
<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" );
$( "#dialog" ).dialog( "open" );
$( "<li>Open: " + ($.now() - start) + "ms</li>" ).appendTo( "#log" );
});
- });
</script>
</head>
<body>
<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"
width: 200,
height: 150
});
- });
</script>
</head>
<body>
<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>
<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>
<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;
direction: "vertical"
}, duration );
});
- });
</script>
<style>
.clipped {
-$( function() {
-
var duration = 1000,
wait = 500;
$( "#toggleClass" ).on( "click", function() {
$( this ).toggleClass( "current", duration );
} );
-
-} );
<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>
<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>
<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>
<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>
<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;
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() {
$( "select, input" ).on( "click keyup change", function() { position(); } );
position();
- });
</script>
</head>
<body>
<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>
<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>
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>
<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>
<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>