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