MediaWiki: Common.js : Différence entre versions
De ECU
Ligne 60 : | Ligne 60 : | ||
var myElement = document.getElementById('btnClose5'); | var myElement = document.getElementById('btnClose5'); | ||
myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup5").style.top="-300px">× </button>'; | myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup5").style.top="-300px">× </button>'; | ||
+ | |||
+ | }); | ||
+ | |||
+ | $(function () { | ||
+ | var myElement = document.getElementById('popupr6'); | ||
+ | myElement.innerHTML = '<button id="button6" onclick = document.getElementById("popup6").style.top="200px"> 6</button>'; | ||
+ | |||
+ | }); | ||
+ | |||
+ | $(function () { | ||
+ | var myElement = document.getElementById('btnClose6'); | ||
+ | myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup6").style.top="-300px">× </button>'; | ||
}); | }); |
Version du 7 mai 2019 à 13:48
/* Tout JavaScript ici sera chargé avec chaque page accédée par n’importe quel utilisateur. */ $(function () { var myElement = document.getElementById('popupr'); myElement.innerHTML = '<button id="button1" onclick = document.getElementById("popup1").style.top="200px"> 1</button>'; }); $(function () { var myElement = document.getElementById('btnClose'); myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup1").style.top="-300px">× </button>'; }); $(function () { var myElement = document.getElementById('popupr2'); myElement.innerHTML = '<button id="button2" onclick = document.getElementById("popup2").style.top="200px"> 2</button>'; }); $(function () { var myElement = document.getElementById('btnClose2'); myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup2").style.top="-300px">× </button>'; }); $(function () { var myElement = document.getElementById('popupr3'); myElement.innerHTML = '<button id="button3" onclick = document.getElementById("popup3").style.top="200px"> 3</button>'; }); $(function () { var myElement = document.getElementById('btnClose3'); myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup3").style.top="-300px">× </button>'; }); $(function () { var myElement = document.getElementById('popupr4'); myElement.innerHTML = '<button id="button4" onclick = document.getElementById("popup4").style.top="200px"> 4</button>'; }); $(function () { var myElement = document.getElementById('btnClose4'); myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup4").style.top="-300px">× </button>'; }); $(function () { var myElement = document.getElementById('popupr5'); myElement.innerHTML = '<button id="button5" onclick = document.getElementById("popup5").style.top="200px"> 5</button>'; }); $(function () { var myElement = document.getElementById('btnClose5'); myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup5").style.top="-300px">× </button>'; }); $(function () { var myElement = document.getElementById('popupr6'); myElement.innerHTML = '<button id="button6" onclick = document.getElementById("popup6").style.top="200px"> 6</button>'; }); $(function () { var myElement = document.getElementById('btnClose6'); myElement.innerHTML = '<button id="btnClose" onclick=document.getElementById("popup6").style.top="-300px">× </button>'; });