r1921 - trunk/demos/effect_types

r1921 - trunk/demos/effect_types


Author: scottjehl
Date: Fri Jan 30 14:54:41 2009
New Revision: 1921
Added:
trunk/demos/effect_types/all_effects.html
trunk/demos/effect_types/blind.html
trunk/demos/effect_types/bounce.html
trunk/demos/effect_types/clip.html
trunk/demos/effect_types/default.html
trunk/demos/effect_types/drop.html
trunk/demos/effect_types/explode.html
trunk/demos/effect_types/fold.html
trunk/demos/effect_types/highlight.html
trunk/demos/effect_types/index.html
trunk/demos/effect_types/puff.html
trunk/demos/effect_types/pulsate.html
trunk/demos/effect_types/scale.html
trunk/demos/effect_types/shake.html
trunk/demos/effect_types/size.html
trunk/demos/effect_types/slide.html
trunk/demos/effect_types/transfer.html
Removed:
trunk/demos/effect_types/animate.html
trunk/demos/effect_types/effect.html
trunk/demos/effect_types/hide.html
trunk/demos/effect_types/show.html
trunk/demos/effect_types/toggle.html
Log:
reverted r 1920
Added: trunk/demos/effect_types/all_effects.html
==============================================================================
--- (empty file)
+++ trunk/demos/effect_types/all_effects.html    Fri Jan 30 14:54:41 2009
@@ -0,0 +1,222 @@
+<!doctype html>
+<html lang="en">
+<head>
+    <title>jQuery UI Effects Test Suite</title>
+    <link type="text/css" href="../../themes/base/ui.all.css"
rel="stylesheet" />
+    <link type="text/css" href="../demos.css" rel="stylesheet" />
+    <script type="text/javascript" src="../../jquery-1.3.1.js"></script>
+    <script type="text/javascript" src="../../ui/effects.core.js"></script>
+    <script type="text/javascript" src="../../ui/effects.blind.js"></script>
+    <script type="text/javascript" src="../../ui/effects.bounce.js"></script>
+    <script type="text/javascript" src="../../ui/effects.clip.js"></script>
+    <script type="text/javascript" src="../../ui/effects.drop.js"></script>
+    <script type="text/javascript" src="../../ui/effects.explode.js"></script>
+    <script type="text/javascript" src="../../ui/effects.fold.js"></script>
+    <script type="text/javascript"
src="../../ui/effects.highlight.js"></script>
+    <script type="text/javascript" src="../../ui/effects.pulsate.js"></script>
+    <script type="text/javascript" src="../../ui/effects.scale.js"></script>
+    <script type="text/javascript" src="../../ui/effects.shake.js"></script>
+    <script type="text/javascript" src="../../ui/effects.slide.js"></script>
+    <script type="text/javascript"
src="../../ui/effects.transfer.js"></script>
+
+    
+    <script type="text/javascript">
+    
+        $(function() {
+        
+            $("li div")
+                .hover(function() { $(this).addClass("ui-state-hover"); },
+                    function() { $(this).removeClass("ui-state-hover"); });
+                     var effect = function(el, n, o) {
+                        $.extend(o, {
+                    easing: "easeOutQuint"
+                });
+        
+                $(el).bind("click", function() {
+        
+                    $(this).hide(n, o, 1000, function() {
+                        var self = this;
+                        window.setTimeout(function() {
+                            $(self).show(n, o, 1000);
+                        },500);
+                    });
+                });
+        
+            };
+            effect("#blindHorizontally", "blind", { direction: "horizontal" });
+            effect("#blindVertically", "blind", { direction: "vertical" });
+            effect("#bounce3times", "bounce", { times:3 });
+            effect("#clipHorizontally", "clip", { direction: "horizontal" });
+            effect("#clipVertically", "clip", { direction: "vertical" });
+            effect("#dropDown", "drop", { direction: "down" });
+            effect("#dropUp", "drop", { direction: "up" });
+            effect("#dropLeft", "drop", { direction: "left" });
+            effect("#dropRight", "drop", { direction: "right" });
+            effect("#explode9", "explode", {});
+            effect("#explode36", "explode", { pieces: 36 });
+            effect("#fold", "fold", { size: 50 });
+            effect("#highlight", "highlight", {});
+            effect("#pulsate", "pulsate", { times: 2 });
+            effect("#puff", "puff", { times: 2 });
+            effect("#scale", "scale", {});
+            $("#shake").bind("click", function() {
$(this).addClass("current").effect("shake", {}, 100, function() {
$(this).removeClass("current"); }); });
+            effect("#slideDown", "slide", { direction: "down" });
+            effect("#slideUp", "slide", { direction: "up" });
+            effect("#slideLeft", "slide", { direction: "left" });
+            effect("#slideRight", "slide", { direction: "right" });
+            $("#transfer").bind("click", function() {
$(this).addClass("current").effect("transfer", { to: "div:eq(0)" }, 1000,
function() { $(this).removeClass("current"); }); });
+        });
+    </script>
+    
+    <style>
+    li { height:70px; width:80px; float:left; list-style:none; margin:5px; }
+    li div { height:56px; width:66px; padding:7px; }
+    li div p strong { display:block; font-size:110%; margin-bottom:2px; }
+    .ui-effects-transfer {
+        border: 1px dotted #fff;
+        background: #666;
+        opacity: 0.25;
+    }
+    </style>
+    
+</head>
+<body>
+
+<ul class="effects">
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="blindHorizontally">
+            

<strong>Blind</strong>horizontally


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="blindVertically">
+            

<strong>Blind</strong> vertically


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="bounce3times">
+        

<strong>Bounce</strong> 3 times


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="clipHorizontally">
+        

<strong>Clip</strong> horizontally


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="clipVertically">
+        

<strong>Clip</strong> vertically


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="dropDown">
+        

<strong>Drop</strong> down


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="dropUp">
+        

<strong>Drop</strong> up


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="dropLeft">
+        

<strong>Drop</strong> left


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="dropRight">
+        

<strong>Drop</strong> right


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="explode9">
+        

<strong>Explode</strong> in 9 pieces


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="explode36">
+        

<strong>Explode</strong> in 36 pieces


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="fold">
+        

<strong>Fold</strong>


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="highlight">
+        

<strong>Highlight</strong>


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="pulsate">
+        

<strong>Pulsate</strong> 2 times


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="puff">
+        

<strong>Puff</strong>


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="scale">
+        

<strong>Scale</strong>


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="shake">
+        

<strong>Shake</strong>


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="slideDown">
+        

<strong>Slide</strong> down


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="slideUp">
+        

<strong>Slide</strong> up


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="slideLeft">
+        

<strong>Slide</strong> left


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="slideRight">
+        

<strong>Slide</strong> right


+        </div>
+    </li>
+
+    <li>
+        <div class="ui-state-default ui-corner-all" id="transfer">
+        

<strong>Transfer</strong> to 1st element


+        </div>
+    </li>
+
+</ul>
+
+</body>
+</html>
Added: trunk/demos/effect_types/blind.html
==============================================================================
--- (empty file)
+++ trunk/demos/effect_types/blind.html    Fri Jan 30 14:54:41 2009
@@ -0,0 +1,45 @@
+<!doctype html>
+<html lang="en">
+<head>
+    <title>jQuery UI Effects - Blind Demo</title>
+    <link type="text/css" href="../../themes/base/ui.all.css"
rel="stylesheet" />
+    <script type="text/javascript" src="../../jquery-1.3.1.js"></script>
+    <script type="text/javascript" src="../../ui/effects.core.js"></script>
+    <script type="text/javascript" src="../../ui/effects.blind.js"></script>
+    <link type="text/css" href="../demos.css" rel="stylesheet" />
+    <style type="text/css">
+        .toggler { width: 500px; height: 300px; }
+        #blind { width: 240px; height: 135px; padding: 0.4em; }
+        #blind h3 { margin: 0; padding: 0.4em; text-align: center; }
+    </style>
+    <script type="text/javascript">
+    $(function() {
+        $(".toggler").click(function() {
+            $("> :eq(0)", this).toggle("blind");
+        });
+    });
+    </script>
+</head>
+<body>
+
+<div class="demo">
+
+<div class="toggler">
+    <div id="blind" class="ui-widget-content ui-corner-all">
+        <h3 class="ui-widget-header ui-corner-all">Blind</h3>
+        


+            Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede.
Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi.
+        



+    </div>
+</div>
+
+</div><!-- End demo -->
+
+<div class="demo-description">
+
+

Click anywhere in the frame above to toggle the effect.


+
+</div><!-- End demo-description -->
+
+</body>
+</html>
Added: trunk/demos/effect_types/bounce.html
==============================================================================
--- (empty file)
+++ trunk/demos/effect_types/bounce.html    Fri Jan 30 14:54:41 2009
@@ -0,0 +1,42 @@
+<!doctype html>
+<html lang="en">
+<head>
+    <title>jQuery UI Effects - Bounce Demo</title>
+    <link type="text/css" href="../../themes/base/ui.all.css"
rel="stylesheet" />
+    <script type="text/javascript" src="../../jquery-1.3.1.js"></script>
+    <script type="text/javascript" src="../../ui/effects.core.js"></script>
+    <script type="text/javascript" src="../../ui/effects.bounce.js"></script>
+    <link type="text/css" href="../demos.css" rel="stylesheet" />
+    <style type="text/css">
+        #bounce { width: 240px; height: 135px; padding: 0.4em; }
+        #bounce h3 { margin: 0; padding: 0.4em; text-align: center; }
+    </style>
+    <script type="text/javascript">
+    $(function() {
+        $("#bounce").click(function() {
+            $(this).effect("bounce");
+        });
+    });
+    </script>
+</head>
+<body>
+
+<div class="demo">
+
+<div id="bounce" class="ui-widget-content ui-corner-all">
+    <h3 class="ui-widget-header ui-corner-all">Bounce</h3>
+    


+        Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede.
Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi.
+    



+</div>
+
+</div><!-- End demo -->
+
+<div class="demo-description">
+
+

Click anywhere in the dialog above to preview the effect.


+
+</div><!-- End demo-description -->
+
+</body>
+</html>
Added: trunk/demos/effect_types/clip.html
==============================================================================
--- (empty file)
+++ trunk/demos/effect_types/clip.html    Fri Jan 30 14:54:41 2009
@@ -0,0 +1,45 @@
+<!doctype html>
+<html lang="en">
+<head>
+    <title>jQuery UI Effects - Clip Demo</title>
+    <link type="text/css" href="../../themes/base/ui.all.css"
rel="stylesheet" />
+    <script type="text/javascript" src="../../jquery-1.3.1.js"></script>
+    <script type="text/javascript" src="../../ui/effects.core.js"></script>
+    <script type="text/javascript" src="../../ui/effects.clip.js"></script>
+    <link type="text/css" href="../demos.css" rel="stylesheet" />
+    <style type="text/css">
+        .toggler { width: 500px; height: 300px; }
+        #clip { width: 240px; height: 135px; padding: 0.4em; }
+        #clip .ui-widget-header { margin: 0; padding: 0.4em; text-align: center;
}
+    </style>
+    <script type="text/javascript">
+    $(function() {
+        $(".toggler").click(function() {
+            $("> :eq(0)", this).toggle("clip");
+        });
+    });
+    </script>
+</head>
+<body>
+
+<div class="demo">
+
+<div class="toggler">
+    <div id="clip" class="ui-widget-content ui-corner-all">
+        <h3 class="ui-widget-header ui-corner-all">Clip</h3>
+        


+            Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede.
Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi.
+        



+    </div>
+</div>
+
+</div><!-- End demo -->
+
+<div class="demo-description">
+
+

Click anywhere in the frame above to toggle the effect.


+
+</div><!-- End demo-description -->
+
+</body>
+</html>
Added: trunk/demos/effect_types/default.html
==============================================================================
--- (empty file)
+++ trunk/demos/effect_types/default.html    Fri Jan 30 14:54:41 2009
@@ -0,0 +1,199 @@
+<!doctype html>
+<html lang="en">
+<head>
+    <title>jQuery UI Effects - All Effect Types</title>
+    <link type="text/css" href="../../themes/base/ui.all.css"
rel="stylesheet" />
+    <script type="text/javascript" src="../../jquery-1.3.1.js"></script>
+    <script type="text/javascript" src="../../ui/effects.core.js"></script>
+    
+    <script type="text/javascript" src="../../ui/effects.blind.js"></script>
+    <script type="text/javascript" src="../../ui/effects.bounce.js"></script>
+    <script type="text/javascript" src="../../ui/effects.clip.js"></script>
+    <script type="text/javascript" src="../../ui/effects.drop.js"></script>
+    <script type="text/javascript" src="../../ui/effects.explode.js"></script>
+    <script type="text/javascript" src="../../ui/effects.fold.js"></script>
+    <script type="text/javascript"
src="../../ui/effects.highlight.js"></script>
+    <script type="text/javascript" src="../../ui/effects.puff.js"></script>
+    <script type="text/javascript" src="../../ui/effects.pulsate.js"></script>
+    <script type="text/javascript" src="../../ui/effects.scale.js"></script>
+    <script type="text/javascript" src="../../ui/effects.size.js"></script>
+    <script type="text/javascript" src="../../ui/effects.slide.js"></script>
+    <script type="text/javascript" src="../../ui/effects.shake.js"></script>
+    <script type="text/javascript"
src="../../ui/effects.transfer.js"></script>
+    
+    <link type="text/css" href="../demos.css" rel="stylesheet" />
+    <style type="text/css">
+        .wrapper { width: 110px; height: 90px; float:left; margin:5px;
cursor:pointer; }
+        .ui-widget-content { padding: 0.4em; }
+        .ui-widget-content h3 { margin: 0; padding: 0.4em; text-align: center; }
+        .ui-effects-transfer { border: 2px dotted gray; }
+    </style>
+    <script type="text/javascript">
+    $(function() {
+        $("#blind").click(function() {
+            $(this).children(0).toggle("blind");
+        });
+        $("#bounce").click(function() {
+            $(this).children(0).effect("bounce");
+        });
+        $("#clip").click(function() {
+            $(this).children(0).toggle("clip");
+        });
+        $("#drop").click(function() {
+            $(this).children(0).toggle("drop");
+        });
+        $("#explode").click(function() {
+            $(this).children(0).toggle("explode");
+        });
+        $("#fold").click(function() {
+            $(this).children(0).toggle("fold");
+        });
+        $("#highlight").click(function() {
+            $(this).children(0).effect("highlight");
+        });
+        $("#puff").click(function() {
+            $(this).children(0).toggle("puff");
+        });
+        $("#pulsate").click(function() {
+            $(this).children(0).effect("pulsate");
+        });
+        $("#scale").click(function() {
+            $(this).children(0).toggle("scale", { percent: 25 });
+        });
+        $("#shake").click(function() {
+            $(this).children(0).effect("shake");
+        });
+        
+        $("#size").click(function() {
+            $(this).children(0).toggle(
+                function(){ $(this).effect("size", { to: {width: 50,height: 10} }); },
+                function(){ $(this).effect("size", { to: {width: 100,height: 70} }); }
+            );
+        });
+        $("#slide").click(function() {
+            $(this).children(0).toggle("slide");
+        });
+        $("#transfer").click(function() {
+            $(this).children(0).effect("transfer", {
+                to: "#highlight"
+            });
+        });
+    });
+    </script>
+</head>
+<body>
+
+<div class="demo">
+
+<div class="wrapper" id="blind">
+    <div class="ui-widget-content ui-corner-all">
+        <h3 class="ui-widget-header ui-corner-all">Blind</h3>
+        

Click to view the effect in action.


+    </div>
+</div>
+
+<div class="wrapper" id="bounce">
+    <div class="ui-widget-content ui-corner-all">
+        <h3 class="ui-widget-header ui-corner-all">Bounce</h3>
+        

Click to view the effect in action.


+    </div>
+</div>
+
+<div class="wrapper" id="clip">
+    <div class="ui-widget-content ui-corner-all">
+        <h3 class="ui-widget-header ui-corner-all">Clip</h3>
+        

Click to view the effect in action.


+    </div>
+</div>
+
+<div class="wrapper" id="drop">
+    <div class="ui-widget-content ui-corner-all">
+        <h3 class="ui-widget-header ui-corner-all">Drop</h3>
+        

Click to view the effect in action.


+    </div>
+</div>
+
+<div class="wrapper" id="explode">
+    <div class="ui-widget-content ui-corner-all">
+        <h3 class="ui-widget-header ui-corner-all">Explode</h3>
+        

Click to view the effect in action.


+    </div>
+</div>
+
+<div class="wrapper" id="fold">
+    <div class="ui-widget-content ui-corner-all">
+        <h3 class="ui-widget-header ui-corner-all">Fold</h3>
+        

Click to view the effect in action.


+    </div>
+</div>
+
+<div class="wrapper" id="highlight">
+    <div class="ui-widget-content ui-corner-all">
+        <h3 class="ui-widget-header ui-corner-all">Highlight</h3>
+        

Click to view the effect in action.


+    </div>
+</div>
+
+<div class="wrapper" id="puff">
+    <div class="ui-widget-content ui-corner-all">
+        <h3 class="ui-wid