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 1616 } ) ;
1717 $ ( "button" ) . on ( "click" , function ( event ) {
1818 var target = $ ( event . target ) ,
19- pbar = $ ( "#progressbar" ) ,
20- pbarValue = pbar . find ( ".ui-progressbar-value" ) ;
19+ progressbar = $ ( "#progressbar" ) ,
20+ progressbarValue = progressbar . find ( ".ui-progressbar-value" ) ;
2121
2222 if ( target . is ( "#numButton" ) ) {
23- pbar . progressbar ( "option" , {
23+ progressbar . progressbar ( "option" , {
2424 value : Math . floor ( Math . random ( ) * 100 )
2525 } ) ;
2626 } else if ( target . is ( "#colorButton" ) ) {
27- pbarValue . css ( {
27+ progressbarValue . css ( {
2828 "background" : '#' + Math . floor ( Math . random ( ) * 16777215 ) . toString ( 16 )
2929 } ) ;
3030 } else if ( target . is ( "#falseButton" ) ) {
31- pbar . progressbar ( "option" , "value" , false ) ;
31+ progressbar . progressbar ( "option" , "value" , false ) ;
3232 }
3333 } ) ;
3434 } ) ;
3535 </ script >
3636 < style >
37- # progressbar .ui-progressbar-value {
38- background-color : # CCCCCC ;
39- }
37+ # progressbar .ui-progressbar-value {
38+ background-color : # ccc ;
39+ }
4040 </ style >
4141</ head >
4242< body >
You can’t perform that action at this time.
0 commit comments