Grazie a questo widget sarà molto più facile indicare l'avanzamento in moduli di registrazione e di acquisto.
function progress (value) {
var newVal = $("#progressbar").progressbar('option','value')+value;
if (newVal > 100) { newVal = 100}
if (newVal < 0) { newVal = 0}
$("#progressbar").progressbar('option','value',newVal);
$("#progressText").text(newVal);
}
$(function() {
$("#progressbar").progressbar();
$('.fg-button').hover(
function(){
$(this).addClass("ui-state-hover");
},
function(){
$(this).removeClass("ui-state-hover");
});
});