Difference between revisions of "Template:Team:Judd UK/TEMPLATE"

Line 78: Line 78:
 
             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()}});
 
         };
 
         };
         document.body.onkeydown = function(e){if (e.keyCode == 27){html.innerHTML = "<div" + (qs("#content-index").style.display=="none"?' data-wiki="false" data-templated="false"':"")+">" + qs("#content-body").innerHTML +"<\/div>";renderPage();qs("#ting").contentEditable="true"}}
+
         document.body.onkeydown = function(e){if (e.keyCode == 27){html.innerHTML = qs("textarea").innerHTML;renderPage();qs("#ting").contentEditable="true"}}
 
     })
 
     })
 
     }
 
     }

Revision as of 22:41, 29 October 2017

Contents

Designed by Aleksandur Murfitt