430,6 → 430,22 |
function gererChargementGraphiqueEcologie() { |
$('.ecologie_svg').addClass('chargement'); |
} |
|
function gererAffichageLegendeEcologie() { |
$('.voir').live('click', function() { |
$(this).siblings('.legende_graphique').show(); |
$(this).siblings('.cacher').show(); |
$(this).hide(); |
}); |
|
$('.cacher').live('click', function() { |
$(this).siblings('.legende_graphique').hide(); |
$(this).siblings('.voir').show(); |
$(this).hide(); |
}); |
} |
|
|
//+----------------------------------------------------------------------------------------------------------+ |
// Initialisation |
var fancyboxinitialise = false; |
549,6 → 565,7 |
|
$(document).ajaxStop(function() { |
gererChargementGraphiqueEcologie(); |
gererAffichageLegendeEcologie(); |
if (document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#BasicStructure', '1.1') == false) { |
$('.svg').each(function() { |
alt = $(this).attr('alt'); |