extranet/www/js/synthese.js

73 lines
1.3 KiB
JavaScript

$(document).ready(function()
{
$('#synthese a[tooltip]').each(function(){
$(this).qtip({
content: $(this).attr('tooltip'),
style: {
width: 500,
classes: "ui-tooltip-dark"
},
position: {
my: "top left",
at: "bottom left"
}
});
});
$('.sTip').each(function(){
$(this).qtip({
content: {
text: "Chargement...",
title: {
text: "Evolution - " + $(this).attr('name') + ""
},
ajax: {
url: $(this).attr('rel')
}
},
position: {
at: "right center",
my: "right center",
adjust: {
x: -20
}
},
show: {
solo: true
},
style: {
width: 420,
classes: "ui-tooltip-light"
}
});
});
$('input[type=radio][name=typeBilan]').change(function(){
window.location.href = $(this).val();
});
$('.scoreTip').each(function(){
$(this).qtip({
content: {
text: "Chargement...",
title: {
text: $(this).attr('titre')
},
ajax: {
url: $(this).attr('rel')
}
},
position: {
at: "left center",
my: "right center"
},
show: {
solo: true
},
style: {
width: 400,
classes: "ui-tooltip-light"
}
});
});
});