File tree Expand file tree Collapse file tree 1 file changed +24
-9
lines changed Expand file tree Collapse file tree 1 file changed +24
-9
lines changed Original file line number Diff line number Diff line change 1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
< html lang ="en ">
3
3
< head >
4
4
< meta charset ="utf-8 ">
19
19
< script src ="../../ui/jquery.effects.slide.js "> </ script >
20
20
< link rel ="stylesheet " href ="../demos.css ">
21
21
< style >
22
- .toggler { width : 500px ; height : 200px ; }
23
- # button { padding : .5em 1em ; text-decoration : none; }
24
- # effect { width : 240px ; height : 135px ; padding : 0.4em ; position : relative; }
25
- # effect h3 { margin : 0 ; padding : 0.4em ; text-align : center; }
22
+ .toggler {
23
+ width : 500px ;
24
+ height : 200px ;
25
+ }
26
+ # button {
27
+ padding : .5em 1em ;
28
+ text-decoration : none;
29
+ }
30
+ # effect {
31
+ position : relative;
32
+ width : 240px ;
33
+ height : 135px ;
34
+ padding : 0.4em ;
35
+ }
36
+ # effect h3 {
37
+ margin : 0 ;
38
+ padding : 0.4em ;
39
+ text-align : center;
40
+ }
26
41
</ style >
27
42
< script >
28
43
$ ( function ( ) {
29
44
// run the currently selected effect
30
45
function runEffect ( ) {
31
- // get effect type from
46
+ // get effect type from
32
47
var selectedEffect = $ ( "#effectTypes" ) . val ( ) ;
33
-
48
+
34
49
// most effect types need no options passed by default
35
50
var options = { } ;
36
51
// some effects have required parameters
39
54
} else if ( selectedEffect === "size" ) {
40
55
options = { to : { width : 200 , height : 60 } } ;
41
56
}
42
-
57
+
43
58
// run the effect
44
59
$ ( "#effect" ) . toggle ( selectedEffect , options , 500 ) ;
45
60
} ;
46
-
61
+
47
62
// set effect from select menu value
48
63
$ ( "#button" ) . click ( function ( ) {
49
64
runEffect ( ) ;
You can’t perform that action at this time.
0 commit comments