]> source.dussan.org Git - jquery-ui.git/commitdiff
Progressbar demos: Cleanup.
authorScott González <scott.gonzalez@gmail.com>
Thu, 29 Nov 2012 17:06:22 +0000 (12:06 -0500)
committerScott González <scott.gonzalez@gmail.com>
Thu, 29 Nov 2012 17:06:32 +0000 (12:06 -0500)
demos/progressbar/indeterminate.html

index 34ce6da47b37864d7a2ce9775c928b7e9a1909e5..b07211496ed181cebac605ac07eeb25a4ff8d7d3 100644 (file)
                });
                $( "button" ).on( "click", function( event ) {
                        var target = $( event.target ),
-                               pbar = $( "#progressbar" ),
-                               pbarValue = pbar.find( ".ui-progressbar-value" );
+                               progressbar = $( "#progressbar" ),
+                               progressbarValue = progressbar.find( ".ui-progressbar-value" );
 
                        if ( target.is( "#numButton" ) ) {
-                               pbar.progressbar( "option", {
+                               progressbar.progressbar( "option", {
                                        value: Math.floor( Math.random() * 100 )
                                });
                        } else if ( target.is( "#colorButton" ) ) {
-                               pbarValue.css({
+                               progressbarValue.css({
                                        "background": '#' + Math.floor( Math.random() * 16777215 ).toString( 16 )
                                });
                        } else if ( target.is( "#falseButton" ) ) {
-                               pbar.progressbar( "option", "value", false );
+                               progressbar.progressbar( "option", "value", false );
                        }
                });
        });
        </script>
        <style>
-               #progressbar .ui-progressbar-value {
-                       background-color: #CCCCCC;
-               }
+       #progressbar .ui-progressbar-value {
+               background-color: #ccc;
+       }
        </style>
 </head>
 <body>