extranet/www/js/giant.js

39 lines
853 B
JavaScript
Raw Normal View History

var pct=0;
var handle=0;
function update(){
$("#progressbar").reportprogress(++pct);
if(pct == 500)
pct=0;
}
2011-03-31 15:26:15 +00:00
$(document).ready(function(){
$('.idpr').live('click', function(){
//e.preventDefault();
2011-03-31 15:26:15 +00:00
var n = $(this).attr('id');
$('#'+n).css('display', 'none');
2011-03-31 15:26:15 +00:00
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, name: 'cream' },
hide: {when: 'mouseout', fixed: true},
position: { corner: { target: 'bottomMiddle',
tooltip: 'topMiddle' } }
});
});
$("#run").click(function(){
handle = setInterval("update()",400);
//clearInterval(handle);
});
2011-03-31 15:26:15 +00:00
});