MediaWiki: Common.js : Différence entre versions
De ECU
| Ligne 3 : | Ligne 3 : | ||
$(function openmodal(){ | $(function openmodal(){ | ||
| − | + | ||
| + | document.getElementById("modal"); | ||
| + | |||
}); | }); | ||
| Ligne 10 : | Ligne 12 : | ||
var myElement = document.getElementById('popupr'); | var myElement = document.getElementById('popupr'); | ||
myElement.innerHTML = '<button id="button_modal" onclick= "openmodal()" > Popup is coming !</button>'; | myElement.innerHTML = '<button id="button_modal" onclick= "openmodal()" > Popup is coming !</button>'; | ||
| + | |||
}); | }); | ||
Version du 19 avril 2019 à 15:32
/* Tout JavaScript ici sera chargé avec chaque page accédée par n’importe quel utilisateur. */
$(function openmodal(){
document.getElementById("modal");
});
$(function () {
var myElement = document.getElementById('popupr');
myElement.innerHTML = '<button id="button_modal" onclick= "openmodal()" > Popup is coming !</button>';
});
