86 lines
2.0 KiB
JavaScript
Raw Normal View History

2011-04-26 13:39:19 +00:00
$(document).ready( function()
{
2011-07-06 15:31:24 +00:00
$('select[name=typeBilan]').live('change', function(e){
e.preventDefault();
$(this).parent('form').submit();
});
$('select[name=mil]').live('change', function(e){
e.preventDefault();
$(this).parent('form').submit();
});
$('a.tooltip').each(function(){
var title = $(this).attr('title');
$(this).attr('title', '');
$(this).qtip( {
content: title,
style: { width: 500, name: 'dark' },
position: { corner: { target: 'bottomMiddle', tooltip: 'topMiddle' } }
});
});
$('area.detailsgraphique').qtip({
content: $('area.detailsgraphique').title,
style: { name: 'cream', width: 170 },
position: {
corner: { target: 'bottomMiddle',
tooltip: 'topMiddle' } }
});
2011-06-07 09:34:56 +00:00
$('a.tab').click(function(){
$('.active').removeClass('active');
$(this).addClass('active');
$('.content').slideUp();
var contenu_aff = $(this).attr('title');
$("#"+contenu_aff).slideDown();
});
$('.rTip').each(function(){
$(this).qtip({
content: {
text: 'Chargement...',
url: $(this).attr('rel'),
title: { text: $(this).attr('name')}
},
position: {
corner: {
target: 'leftMiddle',
tooltip: 'rightMiddle'
}
},
show: { solo: true},
style: {
tip: true,
border: { width: 1, radius: 0 },
name: 'light',
width: 400
}
});
});
$('img.sTip').each(function(){
$(this).qtip({
content: {
text: 'Chargement...',
url: $(this).attr('rel'),
title: { text: 'Evolution - ' + $(this).attr('title')}
},
position: {
corner: {
target: 'leftMiddle',
tooltip: 'rightMiddle'
}
},
show: { solo: true},
style: {
tip: true,
border: { width: 1, radius: 0 },
name: 'light',
width: 420
}
});
});
});