משתמש:Neriah/common.js: הבדלים בין גרסאות בדף

אין תקציר עריכה
אין תקציר עריכה
אין תקציר עריכה
שורה 68: שורה 68:
var buttonDiv = document.createElement("div");
var buttonDiv = document.createElement("div");
buttonDiv.className = "mw-parser-output";
buttonDiv.className = "mw-parser-output";
buttonDiv.style.position = "absolute";
buttonDiv.style.display = "inline-block";
buttonDiv.style.left = "10px";
buttonDiv.style.verticalAlign = "middle";
buttonDiv.style.top = "50%";
buttonDiv.style.marginRight = "10px";
buttonDiv.style.transform = "translate(0, -50%)";
buttonDiv.appendChild(buttonSpan);
buttonDiv.appendChild(buttonSpan);


שורה 77: שורה 76:


heading.insertBefore(buttonDiv, heading.firstChild);
heading.insertBefore(buttonDiv, heading.firstChild);


buttonSpan.addEventListener("click", function() {
buttonSpan.addEventListener("click", function() {
817

עריכות