File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 16
16
} ) ;
17
17
$ ( "button" ) . on ( "click" , function ( event ) {
18
18
var target = $ ( event . target ) ,
19
- pbar = $ ( "#progressbar" ) ,
20
- pbarValue = pbar . find ( ".ui-progressbar-value" ) ;
19
+ progressbar = $ ( "#progressbar" ) ,
20
+ progressbarValue = progressbar . find ( ".ui-progressbar-value" ) ;
21
21
22
22
if ( target . is ( "#numButton" ) ) {
23
- pbar . progressbar ( "option" , {
23
+ progressbar . progressbar ( "option" , {
24
24
value : Math . floor ( Math . random ( ) * 100 )
25
25
} ) ;
26
26
} else if ( target . is ( "#colorButton" ) ) {
27
- pbarValue . css ( {
27
+ progressbarValue . css ( {
28
28
"background" : '#' + Math . floor ( Math . random ( ) * 16777215 ) . toString ( 16 )
29
29
} ) ;
30
30
} else if ( target . is ( "#falseButton" ) ) {
31
- pbar . progressbar ( "option" , "value" , false ) ;
31
+ progressbar . progressbar ( "option" , "value" , false ) ;
32
32
}
33
33
} ) ;
34
34
} ) ;
35
35
</ script >
36
36
< style >
37
- # progressbar .ui-progressbar-value {
38
- background-color : # CCCCCC ;
39
- }
37
+ # progressbar .ui-progressbar-value {
38
+ background-color : # ccc ;
39
+ }
40
40
</ style >
41
41
</ head >
42
42
< body >
You can’t perform that action at this time.
0 commit comments