webif/var/mongoose/html/diag/dspace/script.js
hummypkg c095cc7913 1.0.5
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1632 2a923420-c742-0410-a762-8d5b09965624
2013-07-30 20:07:13 +00:00

41 lines
745 B
JavaScript

$(function() {
$('img.tlink').hover(
function() { $(this).css('cursor', 'pointer'); },
function() { $(this).css('cursor', 'auto'); }
).on('click', function(e) {
e.preventDefault();
if ($(this).attr('src') == '/img/tree/plus.png')
{
$(this).attr('src', '/img/tree/minus.png');
$(this).parent().children('div')
.slideDown('slow')
.addClass('open')
.removeClass('closed');
}
else
{
$(this).attr('src', '/img/tree/plus.png');
$(this).parent().children('div')
.slideUp('slow')
.addClass('closed')
.removeClass('open');
}
});
$('span.fileperc').easyPieChart({
size: 20,
barColor: '#00ff00',
trackColor: '#A3A3C2',
lineWidth: 4,
scaleColor: false,
lineCap: 'butt'
});
});