aboutsummaryrefslogtreecommitdiffstats
path: root/demos/effect/switchClass.html
diff options
context:
space:
mode:
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>