github github
  • Home
  • Pricing and Signup
  • Training
  • Gist
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 1,034
    • 251
  • Source
  • Commits
  • Network (251)
  • Graphs
  • Tree: 568b607

click here to add a description

click here to add a homepage

  • Switch Branches (8)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
    • widget-super
  • Switch Tags (22)
    • 1.9m2
    • 1.9m1
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8.5
    • 1.8.4
    • 1.8.3
    • 1.8.2
    • 1.8.1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
  • Contributors
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

added class animations (including 1.4 style callbacks) to visual effects test page
jzaefferer (author)
Thu Jan 21 09:32:52 -0800 2010
commit  568b607b81cf7d98826a
tree    04f6383f52dc92fd79f6
parent  f37da0e6ce09615060f4
M tests/visual/effects.all.html 18 •••••
M tests/visual/effects.all.js 20 •••••
Txt tests/visual/effects.all.html
  • View file @ 568b607
... ...
@@ -154,6 +154,24 @@
154 154
     <p>Transfer to first element</p>
155 155
     </div>
156 156
   </li>
  157
+  
  158
+  <li>
  159
+    <div class="effect" id="addClass">
  160
+    <p>addClass</p>
  161
+    </div>
  162
+  </li>
  163
+  
  164
+  <li>
  165
+    <div class="effect" id="removeClass">
  166
+    <p>removeClass</p>
  167
+    </div>
  168
+  </li>
  169
+  
  170
+  <li>
  171
+    <div class="effect" id="toggleClass">
  172
+    <p>toggleClass</p>
  173
+    </div>
  174
+  </li>
157 175
 
158 176
 </ul>
159 177
 
Txt tests/visual/effects.all.js
  • View file @ 568b607
... ...
@@ -57,4 +57,24 @@ $(function() {
57 57
 
58 58
   $("#transfer").bind("click", function() { $(this).addClass("current").effect("transfer", { to: "div:eq(0)" }, 1000, function() { $(this).removeClass("current"); }); });
59 59
 
  60
+  $("#addClass").click(function() {
  61
+    $(this).addClass(function() {
  62
+      window.console && console.log(arguments);
  63
+      return "current";
  64
+    }, 1000, function() {
  65
+      $(this).removeClass("current");
  66
+    });
  67
+  });
  68
+  $("#removeClass").click(function() {
  69
+    $(this).addClass("current").removeClass(function() {
  70
+      window.console && console.log(arguments);
  71
+      return "current"
  72
+    }, 1000);
  73
+  });
  74
+  $("#toggleClass").click(function() {
  75
+    $(this).toggleClass(function() {
  76
+      window.console && console.log(arguments);
  77
+      return "current"
  78
+    }, 1000);
  79
+  });
60 80
 });

0 notes on commit 568b607

Please log in to comment.
Dedicated Server Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
  • Blog
  • Support
  • Training
  • Job Board
  • Shop
  • Contact
  • API
  • Status
  • © 2010 GitHub Inc. All rights reserved.
  • Terms of Service
  • Privacy
  • Security
  • English
  • Deutsch
  • Français
  • 日本語
  • Português (BR)
  • Русский
  • 中文
  • See all available languages

Your current locale selection: English. Choose another?

  • English
  • Afrikaans
  • Català
  • Čeština
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Русский
  • Српски
  • Svenska
  • 中文