DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (0b33dc17ed54)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<html>
<body>

Aloha!  My URL is <span id='url'></span>.
<script>
// eslint-disable-next-line no-unsanitized/property
document.getElementById("url").innerHTML = window.location;
</script>

<script>
  // The input element is getting synthesized key events and will prevent
  // default on the first ESC keydown event.

  var alreadyBlocked = false;

  addEventListener("keydown", function(e) {
    if (e.keyCode == KeyboardEvent.DOM_VK_ESCAPE && !alreadyBlocked) {
      alreadyBlocked = true;
      e.preventDefault();
    }
  });
</script>
</body>
</html>