]> source.dussan.org Git - jquery-ui.git/commitdiff
Adding fade to the tests
authorgnarf <gnarf@gnarf.net>
Sun, 6 Mar 2011 21:24:48 +0000 (15:24 -0600)
committergnarf <gnarf@gnarf.net>
Sun, 6 Mar 2011 21:24:48 +0000 (15:24 -0600)
tests/visual/effects.all.html
tests/visual/effects.all.js

index 074ebcca6b1352d05124de4b376a81c00ae431d5..392ed6256496fbc0fc91d495f6221fdc4ce46c1c 100644 (file)
@@ -11,6 +11,7 @@
        <script type="text/javascript" src="../../ui/jquery.effects.clip.js"></script>
        <script type="text/javascript" src="../../ui/jquery.effects.drop.js"></script>
        <script type="text/javascript" src="../../ui/jquery.effects.explode.js"></script>
+       <script type="text/javascript" src="../../ui/jquery.effects.fade.js"></script>
        <script type="text/javascript" src="../../ui/jquery.effects.fold.js"></script>
        <script type="text/javascript" src="../../ui/jquery.effects.highlight.js"></script>
        <script type="text/javascript" src="../../ui/jquery.effects.pulsate.js"></script>
                </div>
        </li>
 
+       <li>
+               <div class="effect" id="fade">
+               <p>Fade</p>
+               </div>
+       </li>
+
        <li>
                <div class="effect" id="fold">
                <p>Fold</p>
index b11c13183a0be0bb440fd8259a6df427aae63fcd..5e47a4f48c20bd9691c4d2a96cfa378921ad288c 100644 (file)
@@ -49,6 +49,8 @@ $(function() {
        effect("#explode9", "explode", {});
        effect("#explode36", "explode", { pieces: 36 });
 
+       effect("#fade", "fade", {});
+
        effect("#fold", "fold", { size: 50 });
 
        effect("#highlight", "highlight", {});
@@ -71,7 +73,7 @@ $(function() {
                $(this).addClass(function() {
                        window.console && console.log(arguments);
                        return "current";
-               }, 1000, function() {
+               }, duration, function() {
                        $(this).removeClass("current");
                });
        });
@@ -79,12 +81,12 @@ $(function() {
                $(this).addClass("current").removeClass(function() {
                        window.console && console.log(arguments);
                        return "current"
-               }, 1000);
+               }, duration);
        });
        $("#toggleClass").click(function() {
                $(this).toggleClass(function() {
                        window.console && console.log(arguments);
                        return "current"
-               }, 1000);
+               }, duration);
        });
 });