User:Codehydro/Auto CSS image crop/script.js: Difference between revisions

Content deleted Content added
mNo edit summary
mNo edit summary
Line 28:
} else if(window.editform && !window.DisableAutoCropEverywhere) {
(cropEditCSS = (document.head || document.getElementsByTagName("head")[0]).appendChild(document.createElement("style"))).type = "text/css";
(cropEditCSS.styleSheet || cropEditCSS)[cropEditCSS.styleSheet ? "cssText" : "innerHTML"] = "#croptog,#cropdoc,#autocrop{outline:1px solid;}#croptog{cursor:pointer;z-index:2;right:18px}#cform,#sizeinfo,#pc,#autotemp{margin-left:4px;}#autocrop{padding-top:3em;width:40%;height:" + (editform.wpTextbox1.offsetHeight + 99) + "px;overflow:auto;}#cropdoc{margin-top:-3em;right:15em;}#croptog,#cropdoc{position:absolute;background-color:#eee;padding:0 0.5em;}#cropdoc a{text-decoration:none;color:#000;}";
window[editform.insertBefore(document.createElement("div"), editform.firstChild).id = "croptog"].innerHTML = (cropTogText = ["Open " + acic, "Hide " + acic])[0];
croptog.onclick = loadAutoCrop;