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("#ting").innerHTML +"<\/div>;renderPage();qs("#ting").contentEditable="true"}} | + | 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("#ting").innerHTML +"<\/div>";renderPage();qs("#ting").contentEditable="true"}} |
}) | }) | ||
} | } |
Revision as of 22:32, 29 October 2017