Line 60: | Line 60: | ||
qs('textarea').value = "<div" + (qs("#content-index").style.display=="none"?' data-wiki="false" data-templated="false"':"")+">" + qs('.JC #content-body').innerHTML+"<\/div><html><script>window.location='/Team:Judd_UK/" + page.replace("*", "/") + "'<\/script><\/html>"; | qs('textarea').value = "<div" + (qs("#content-index").style.display=="none"?' data-wiki="false" data-templated="false"':"")+">" + qs('.JC #content-body').innerHTML+"<\/div><html><script>window.location='/Team:Judd_UK/" + page.replace("*", "/") + "'<\/script><\/html>"; | ||
qsa("img").forEach(function(e){e.oncontextmenu = function(o){o.target.classList.toggle("left");o.preventDefault()}}); | qsa("img").forEach(function(e){e.oncontextmenu = function(o){o.target.classList.toggle("left");o.preventDefault()}}); | ||
+ | if(qs(".JC #content-body").innerHTML.includes("#TABLE!")) | ||
qs(".JC #content-body").innerHTML = qs(".JC #content-body").innerHTML.replace("#TABLE!","<table style='width:100%'><tr><th>Heading 1</th><th>Heading 2</th><th>Heading 3</th></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr></table>"); | qs(".JC #content-body").innerHTML = qs(".JC #content-body").innerHTML.replace("#TABLE!","<table style='width:100%'><tr><th>Heading 1</th><th>Heading 2</th><th>Heading 3</th></tr><tr><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr></table>"); | ||
}; | }; |
Revision as of 23:00, 29 October 2017