aboutsummaryrefslogtreecommitdiffstats
path: root/demos/effect/switchClass.html
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-06-30 18:57:51 -0400
committerAlexander Schmitz <arschmitz@gmail.com>2015-07-21 11:00:41 -0400
commitd13f81d88a18836844ea4dc0f4e572fe07dafbb0 (patch)
tree3b64d66e93592c701f095621b40b89576c4c161d /demos/effect/switchClass.html
parent6acdd4a44447d4a4a002284b82c9e4e3e9df009b (diff)
downloadjquery-ui-d13f81d88a18836844ea4dc0f4e572fe07dafbb0.tar.gz
jquery-ui-d13f81d88a18836844ea4dc0f4e572fe07dafbb0.zip
Effects: Update demos to use AMD
Ref #10119
Diffstat (limited to 'demos/effect/switchClass.html')
-rw-r--r--demos/effect/switchClass.html9
1 files changed, 3 insertions, 6 deletions
diff --git a/demos/effect/switchClass.html b/demos/effect/switchClass.html
index f7c6d12da..c02f4420b 100644
--- a/demos/effect/switchClass.html
+++ b/demos/effect/switchClass.html
@@ -4,8 +4,6 @@
<meta charset="utf-8">
<title>jQuery UI Effects - switchClass Demo</title>
<link rel="stylesheet" href="../../themes/base/all.css">
- <script src="../../external/jquery/jquery.js"></script>
- <script src="../../ui/effect.js"></script>
<link rel="stylesheet" href="../demos.css">
<style>
.toggler { width: 500px; height: 200px; position: relative; }
@@ -14,13 +12,12 @@
.newClass { width: 240px; padding: 1em; letter-spacing: 0; margin: 0; }
.anotherNewClass { text-indent: 40px; letter-spacing: .2em; width: 410px; height: 100px; padding: 30px; margin: 10px; font-size: 1.1em; }
</style>
- <script>
- $(function() {
- $( "#button" ).on( "click", function(){
+ <script src="../../external/requirejs/require.js"></script>
+ <script src="../bootstrap.js">
+ $( "#button" ).on( "click", function() {
$( ".newClass" ).switchClass( "newClass", "anotherNewClass", 1000 );
$( ".anotherNewClass" ).switchClass( "anotherNewClass", "newClass", 1000 );
});
- });
</script>
</head>
<body>