1,086
edits
Technician (talk | contribs) No edit summary Tag: Reverted |
Technician (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
/* | |||
$(document).ready(function () { | $(document).ready(function () { | ||
var body = document.getElementsByTagName("body")[0]; | var body = document.getElementsByTagName("body")[0]; | ||
Line 11: | Line 12: | ||
// subtract the left margin from the computed value | // subtract the left margin from the computed value | ||
mutNode[0].style.left = "calc("+ eleLeft + " - "+ marginLeft + ")"; | mutNode[0].style.left = "calc("+ eleLeft + " - "+ marginLeft + ")"; | ||
} | } | ||
}; | }; | ||
Line 17: | Line 17: | ||
observer.observe(body, { childList: true }); | observer.observe(body, { childList: true }); | ||
}); | }); | ||
*/ |