extranet/www/js/synthese.js
2010-11-03 16:04:22 +00:00

60 lines
1.5 KiB
JavaScript

$(document).ready(function()
{
$('#synthese a[tooltip]').each(function(){
$(this).qtip({
content: $(this).attr('tooltip'),
style: { width: 500, name: 'dark' },
position: { corner: { target: 'bottomMiddle', tooltip: 'topMiddle' } }
});
});
$('.sTip').each(function(){
$(this).qtip({
content: {
text: 'Chargement...',
url: $(this).attr('rel'),
title: { text: 'Evolution - ' + $(this).attr('name')}
},
position: {
corner: {
target: 'leftMiddle',
tooltip: 'rightMiddle'
}
},
show: { solo: true},
style: {
tip: true,
border: { width: 1, radius: 0 },
name: 'light',
width: 400
}
});
});
$('input[type=radio][name=typeBilan]').change(function(){
window.location.href = $(this).val();
});
$('.scoreTip').each(function(){
$(this).qtip({
content: {
text: 'Chargement...',
url: $(this).attr('rel'),
title: { text: $(this).attr('titre')}
},
position: {
corner: {
target: 'leftMiddle',
tooltip: 'rightMiddle'
}
},
show: { solo: true},
style: {
tip: true,
border: { width: 1, radius: 0 },
name: 'light',
width: 400
}
});
});
});