diff options
author | Scott Jehl <scott@scottjehl.com> | 2009-02-27 18:05:18 +0000 |
---|---|---|
committer | Scott Jehl <scott@scottjehl.com> | 2009-02-27 18:05:18 +0000 |
commit | 1ded43162afb181eeb7c3d89d7ce18082dc7f176 (patch) | |
tree | bc6a1fffe44acc84555030bd6542491eea86c4bc /demos/effect | |
parent | 8f8d82782655f8a99de0101672066fcff4381da8 (diff) | |
download | jquery-ui-1ded43162afb181eeb7c3d89d7ce18082dc7f176.tar.gz jquery-ui-1ded43162afb181eeb7c3d89d7ce18082dc7f176.zip |
updated demos to a standard format - class animations do not seem to work in safari (unsure why)
Diffstat (limited to 'demos/effect')
-rw-r--r-- | demos/effect/default.html | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/demos/effect/default.html b/demos/effect/default.html index ff1dde240..66b3adf23 100644 --- a/demos/effect/default.html +++ b/demos/effect/default.html @@ -1,7 +1,7 @@ <!doctype html> <html lang="en"> <head> - <title>jQuery UI Effect Methods - Effect Demo</title> + <title>jQuery UI Effects - Effect Demo</title> <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" /> <script type="text/javascript" src="../../jquery-1.3.2.js"></script> <script type="text/javascript" src="../../ui/effects.core.js"></script> @@ -23,7 +23,6 @@ #button { padding: .5em 1em; text-decoration: none; } #effect { width: 240px; height: 135px; padding: 0.4em; position: relative; } #effect h3 { margin: 0; padding: 0.4em; text-align: center; } - .resetLink { position: absolute; top: 50px; left: 40px; color: #ddd; font-size: 24px; } .ui-effects-transfer { border: 2px dotted gray; } </style> <script type="text/javascript"> @@ -37,10 +36,8 @@ //most effect types need no options passed by default var options = {}; //check if it's scale, transfer, or size - they need options explicitly set - if(selectedEffect == 'scale'){ - options = {percent: 0}; - } - else if(selectedEffect == 'transfer'){ options = { to: "#button" }; } + if(selectedEffect == 'scale'){ options = {percent: 0}; } + else if(selectedEffect == 'transfer'){ options = { to: "#button", className: 'ui-effects-transfer' }; } else if(selectedEffect == 'size'){ options = { to: {width: 200,height: 60} }; } //run the effect @@ -91,7 +88,7 @@ <option value="transfer">Transfer</option> </select> -<a href="#" id="button" class="ui-state-default ui-corner-all">Show Effect</a> +<a href="#" id="button" class="ui-state-default ui-corner-all">Run Effect</a> </div><!-- End demo --> |