corrade-http-templates – Blame information for rev 57
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
57 | office | 1 | <!doctype html> |
2 | <html lang="en"> |
||
3 | <head> |
||
4 | <meta charset="utf-8"> |
||
5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
||
6 | <title>jQuery UI Effects - Animate demo</title> |
||
7 | <link rel="stylesheet" href="../../themes/base/all.css"> |
||
8 | <link rel="stylesheet" href="../demos.css"> |
||
9 | <style> |
||
10 | .toggler { width: 500px; height: 200px; position: relative; } |
||
11 | #button { padding: .5em 1em; text-decoration: none; } |
||
12 | #effect { width: 240px; height: 170px; padding: 0.4em; position: relative; background: #fff; } |
||
13 | #effect h3 { margin: 0; padding: 0.4em; text-align: center; } |
||
14 | </style> |
||
15 | <script src="../../external/requirejs/require.js"></script> |
||
16 | <script src="../bootstrap.js"> |
||
17 | var state = true; |
||
18 | $( "#button" ).on( "click", function() { |
||
19 | if ( state ) { |
||
20 | $( "#effect" ).animate({ |
||
21 | backgroundColor: "#aa0000", |
||
22 | color: "#fff", |
||
23 | width: 500 |
||
24 | }, 1000 ); |
||
25 | } else { |
||
26 | $( "#effect" ).animate({ |
||
27 | backgroundColor: "#fff", |
||
28 | color: "#000", |
||
29 | width: 240 |
||
30 | }, 1000 ); |
||
31 | } |
||
32 | state = !state; |
||
33 | }); |
||
34 | </script> |
||
35 | </head> |
||
36 | <body> |
||
37 | |||
38 | <div class="toggler"> |
||
39 | <div id="effect" class="ui-widget-content ui-corner-all"> |
||
40 | <h3 class="ui-widget-header ui-corner-all">Animate</h3> |
||
41 | <p> |
||
42 | Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi. |
||
43 | </p> |
||
44 | </div> |
||
45 | </div> |
||
46 | |||
47 | <button id="button" class="ui-state-default ui-corner-all">Toggle Effect</button> |
||
48 | |||
49 | <div class="demo-description"> |
||
50 | <p>Click the button above to preview the effect.</p> |
||
51 | </div> |
||
52 | </body> |
||
53 | </html> |