MediaWiki:Common.js : Différence entre versions

De Wiki ODR
Aller à : navigation, rechercher
Ligne 4 : Ligne 4 :
 
$(document).ready(function() {
 
$(document).ready(function() {
 
   $("#carre_odr").click(function(){
 
   $("#carre_odr").click(function(){
    var msg="Test javascript valide...";
 
      console.log(msg)
 
      alert(msg);
 
 
document.getElementById("carre_odr").style.cursor = "pointer";  
 
document.getElementById("carre_odr").style.cursor = "pointer";  
       window.open('http://google.com','mywindow');
+
       window.open('/Sous_portail_odr','mywindow');
 
       return false;
 
       return false;
 
   });
 
   });
 
});
 
});

Version du 7 juillet 2017 à 09:40

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

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