MediaWiki:Common.js : Différence entre versions

De Wiki ODR
Aller à : navigation, rechercher
 
(25 révisions intermédiaires par un autre utilisateur non affichées)
Ligne 2 : Ligne 2 :
 
// Can also be used with $(document).ready()
 
// Can also be used with $(document).ready()
  
 +
/*Carré ODR*/
 
$(document).ready(function() {
 
$(document).ready(function() {
      var msg="Test javascript valide...";
+
  $("#carre_odr").click(function(){
      console.log(msg)
+
document.getElementById("carre_odr").style.cursor="pointer";
      alert(msg);
+
      window.open('./Sous_portail_odr','mywindow');
   $("div.classeusages").click(function(){
+
      return false;
document.getElementById("carre_odr").style.cursor = "pointer";  
+
  });
       window.open('http://google.com','mywindow');
+
});
 +
 
 +
/*Carré démarches qualité*/
 +
$(document).ready(function() {
 +
  $("#carre-demarches").click(function(){
 +
document.getElementById("carre-demarches").style.cursor="pointer";
 +
      window.open('./Sous-portail-qualite','mywindow');
 +
      return false;
 +
  });
 +
});
 +
 
 +
/*Carré politiques de dev rural*/
 +
$(document).ready(function() {
 +
  $("#carre7").click(function(){
 +
document.getElementById("carre7").style.cursor="pointer";
 +
      window.open('./Sous_portail_politique_dev','mywindow');
 +
      return false;
 +
  });
 +
});
 +
 
 +
/*Carré suivi des données*/
 +
$(document).ready(function() {
 +
   $("#carre-suivi").click(function(){
 +
document.getElementById("carre-suivi").style.cursor="pointer";
 +
      window.open('./Sous_portail_suivi','mywindow');
 +
      return false;
 +
  });
 +
});
 +
 
 +
/*Carré Environnement*/
 +
$(document).ready(function() {
 +
  $("#carre10").click(function(){
 +
document.getElementById("carre10").style.cursor="pointer";
 +
      window.open('./Sous_portail_environnement','mywindow');
 +
      return false;
 +
  });
 +
});
 +
 
 +
/*Carré données etc*/
 +
$(document).ready(function() {
 +
  $("#donnees-spatiales").click(function(){
 +
document.getElementById("donnees-spatiales").style.cursor="pointer";
 +
      window.open('./Sous_portail_donnees','mywindow');
 +
      return false;
 +
  });
 +
});
 +
 
 +
 
 +
 
 +
/*Carré FEADER*/
 +
$(document).ready(function() {
 +
  $("#carre-feader").click(function(){
 +
document.getElementById("carre-feader").style.cursor = "pointer";  
 +
       window.open('http://www.europe-en-france.gouv.fr/','mywindow');
 +
      return false;
 +
  });
 +
});
 +
 
 +
/******** Sous-portail ********/
 +
/*Dernier article*/
 +
$(document).ready(function() {
 +
  $("#carre_derarticle1").click(function(){
 +
document.getElementById("carre_derarticle1").style.border="none" ;
 +
      window.open('./Utilisateur','mywindow');
 +
      return false;
 +
  });
 +
});
 +
 
 +
$(document).ready(function() {
 +
  $("#carre_derarticle2").click(function(){
 +
document.getElementById("carre_derarticle2").style.border="none" ;
 +
      window.open('./Dossier_thématique','mywindow');
 
       return false;
 
       return false;
 
   });
 
   });
 
});
 
});

Version actuelle datée du 29 septembre 2017 à 11:22

/* Tout JavaScript ici sera chargé avec chaque page accédée par n’importe quel utilisateur. */
// Can also be used with $(document).ready()

/*Carré ODR*/
$(document).ready(function() {
   $("#carre_odr").click(function(){
document.getElementById("carre_odr").style.cursor="pointer";
      window.open('./Sous_portail_odr','mywindow');
      return false;
   });
});

/*Carré démarches qualité*/
$(document).ready(function() {
   $("#carre-demarches").click(function(){
document.getElementById("carre-demarches").style.cursor="pointer";
      window.open('./Sous-portail-qualite','mywindow');
      return false;
   });
});

/*Carré politiques de dev rural*/
$(document).ready(function() {
   $("#carre7").click(function(){
document.getElementById("carre7").style.cursor="pointer";
      window.open('./Sous_portail_politique_dev','mywindow');
      return false;
   });
});

/*Carré suivi des données*/
$(document).ready(function() {
   $("#carre-suivi").click(function(){
document.getElementById("carre-suivi").style.cursor="pointer";
      window.open('./Sous_portail_suivi','mywindow');
      return false;
   });
});

/*Carré Environnement*/
$(document).ready(function() {
   $("#carre10").click(function(){
document.getElementById("carre10").style.cursor="pointer";
      window.open('./Sous_portail_environnement','mywindow');
      return false;
   });
});

/*Carré données etc*/
$(document).ready(function() {
   $("#donnees-spatiales").click(function(){
document.getElementById("donnees-spatiales").style.cursor="pointer";
      window.open('./Sous_portail_donnees','mywindow');
      return false;
   });
});



/*Carré FEADER*/
$(document).ready(function() {
   $("#carre-feader").click(function(){
document.getElementById("carre-feader").style.cursor = "pointer"; 
      window.open('http://www.europe-en-france.gouv.fr/','mywindow');
      return false;
   });
});

/******** Sous-portail ********/
/*Dernier article*/
$(document).ready(function() {
   $("#carre_derarticle1").click(function(){
document.getElementById("carre_derarticle1").style.border="none" ; 
      window.open('./Utilisateur','mywindow');
      return false;
   });
});

$(document).ready(function() {
   $("#carre_derarticle2").click(function(){
document.getElementById("carre_derarticle2").style.border="none" ; 
      window.open('./Dossier_thématique','mywindow');
      return false;
   });
});