MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
| Line 71: | Line 71: | ||
var left = parseInt(window.getComputedStyle(e.target).left); | var left = parseInt(window.getComputedStyle(e.target).left); | ||
console.log(left, bodyLeft); | console.log(left, bodyLeft); | ||
console.log(e.target); | |||
e.target.style.left = left - bodyLeft + 'px'; | e.target.style.left = left - bodyLeft + 'px'; | ||
console.log(e.target); | |||
}); | }); | ||
} | } | ||