Skip to content

Commit

Permalink
Completed ESC to exit hint. Bugs have not been checked for yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
palindrome868wastaken committed May 17, 2024
1 parent 550ffef commit 43aeb69
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arch/templates/arch/hint_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,12 @@
</li>
</ul>
{% endblock layout-content %}
{% block scripts %}
<script type="text/javascript">
document.body.addEventListener("keydown", function(event) {
if (event.key == "Escape") {
window.location.href = "{{hint.problem.get_absolute_url}}";
}
});
</script>
{% endblock scripts %}

0 comments on commit 43aeb69

Please sign in to comment.