47 lines
888 B
JavaScript
47 lines
888 B
JavaScript
var pct=0;
|
|
var handle=0;
|
|
function update(){
|
|
$("#progressbar").reportprogress(++pct);
|
|
if(pct == 500)
|
|
pct=0;
|
|
}
|
|
|
|
$(document).ready(function(){
|
|
$('.idpr').live('click', function(){
|
|
//e.preventDefault();
|
|
var n = $(this).attr('id');
|
|
|
|
$('#'+n).css('display', 'none');
|
|
if ($('#p'+n).css('display')=='none'){
|
|
$('#p'+n).css('display', 'block');
|
|
} else {
|
|
$('#p'+n).css('display', 'none');
|
|
}
|
|
});
|
|
|
|
$('.GiantTooltip').each(function()
|
|
{
|
|
$(this).qtip( {
|
|
content: $(this).attr('alt'),
|
|
style: {
|
|
width: 300,
|
|
classes: "ui-tooltip-cream"
|
|
},
|
|
hide: {
|
|
fixed: true,
|
|
event: "mouseout"
|
|
},
|
|
position: {
|
|
at: "bottom center",
|
|
my: "top center"
|
|
}
|
|
});
|
|
});
|
|
|
|
$("#run").click(function(){
|
|
handle = setInterval("update()",400);
|
|
//clearInterval(handle);
|
|
});
|
|
});
|
|
|