MediaWiki: Common.js : Différence entre versions

De ECU
Aller à : navigation, rechercher
Ligne 5 : Ligne 5 :
 
   var modal = document.getElementById('modal')
 
   var modal = document.getElementById('modal')
 
   var myElement = document.getElementById('popupr');
 
   var myElement = document.getElementById('popupr');
   myElement.innerHTML = '<button id="button_modal" onclick= "modal.style.top ="300"" > Popup is coming !</button>';
+
   myElement.innerHTML = '<button id="button_modal" onclick= "modal.style.top ="300px"" > Popup is coming !</button>';
  
 
});
 
});

Version du 23 avril 2019 à 09:41

/* Tout JavaScript ici sera chargé avec chaque page accédée par n’importe quel utilisateur. */


$(function () {
  var modal = document.getElementById('modal')
  var myElement = document.getElementById('popupr');
  myElement.innerHTML = '<button id="button_modal" onclick= "modal.style.top ="300px"" > Popup is coming !</button>';

});