Skip to content
Permalink
Browse files

Progressbar demos: Cleanup.

  • Loading branch information...
scottgonzalez committed Nov 29, 2012
1 parent 24d9141 commit a5d50da591fdf329f05cb38fb169627018093528
Showing with 8 additions and 8 deletions.
  1. +8 −8 demos/progressbar/indeterminate.html
@@ -16,27 +16,27 @@
});
$( "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>

0 comments on commit a5d50da

Please sign in to comment.
You can’t perform that action at this time.