Différences entre les versions de « Atlas 380/iPad/notreavion.net »

Ligne 143 : Ligne 143 :
var myfile="/convert/"+ getURLParameter('file');
var myfile="/convert/"+ getURLParameter('file');


function getURLParameter(name) {                        <!--Le nom du fichier est dans l'URL d'appel, fonction de recherche de ce nom de fichier
function getURLParameter(name) {                        <!--Le nom du fichier est dans l'URL demandeuse, fonction de recherche de ce nom de fichier
   return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null
   return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null
}
}
Ligne 211 : Ligne 211 :
poi.setInfoContentHTML(str);
poi.setInfoContentHTML(str);


MQA.EventManager.addListener(poi, 'mouseover', function(){              <!--Affiche l'info au survol du point-->
MQA.EventManager.addListener(poi, 'mouseover', function(){              <!--Affiche info au survol du point-->
this.toggleInfoWindowRollover();
this.toggleInfoWindowRollover();
});
});


MQA.EventManager.addListener(poi, 'click', function(){                  <!--Affiche l'info au clic-->
MQA.EventManager.addListener(poi, 'click', function(){                  <!--Affiche info au clic-->
this.toggleInfoWindowRollover();
this.toggleInfoWindowRollover();
});
});
Ligne 376 : Ligne 376 :




affichout = function(){                  <!--Affiche l'info au clic hors carte-->
affichout = function(){                  <!--Affiche info au clic hors carte-->
this.setInfoContentHTML("");
this.setInfoContentHTML("");
document.getElementById('info').innerHTML= this.getExtraField('texte');
document.getElementById('info').innerHTML= this.getExtraField('texte');
Ligne 383 : Ligne 383 :
affichin =function(){
affichin =function(){
if (navigator.userAgent.match(/iPad/i)){
if (navigator.userAgent.match(/iPad/i)){
document.getElementById('info').innerHTML= ""; <!--Affiche l'info au clic sur la carte-->
document.getElementById('info').innerHTML= ""; <!--Affiche info au clic sur la carte-->


this.setInfoTitleHTML(this.getExtraField('texte'));
this.setInfoTitleHTML(this.getExtraField('texte'));
110

modifications