54 lines
910 B
JavaScript
54 lines
910 B
JavaScript
$(document).ready(function()
|
|
{
|
|
$('#ratios a[tooltip]').each(function()
|
|
{
|
|
$(this).qtip({
|
|
content: $(this).attr('tooltip'),
|
|
style: {
|
|
width: 500,
|
|
classes: "ui-tooltip-dark"
|
|
},
|
|
position: {
|
|
my: "top left",
|
|
at: "bottom left"
|
|
}
|
|
});
|
|
});
|
|
|
|
$('.rTip').each(function(){
|
|
$(this).qtip({
|
|
content: {
|
|
text: "Chargement...",
|
|
title: {
|
|
text: $(this).attr('name')
|
|
},
|
|
ajax: {
|
|
url: $(this).attr('rel')
|
|
}
|
|
},
|
|
position: {
|
|
at: "right center",
|
|
my: "right center",
|
|
adjust: {
|
|
x: -20
|
|
}
|
|
},
|
|
show: {
|
|
solo: true
|
|
},
|
|
style: {
|
|
tip: true,
|
|
width: 400,
|
|
classes: "ui-tooltip-light"
|
|
}
|
|
});
|
|
});
|
|
|
|
$('[name=mil]').change(function(){
|
|
window.location.href = $(this).val();
|
|
});
|
|
|
|
$('input[type=radio][name=typeBilan]').change(function(){
|
|
window.location.href = $(this).val();
|
|
});
|
|
}); |