(9 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
$("#" + e).css("display", "block"); | $("#" + e).css("display", "block"); | ||
location.hash = "#" + e; | location.hash = "#" + e; | ||
+ | $(document).keyup(function(evt) { | ||
+ | if (evt.keyCode === 27) { | ||
+ | hide(e); | ||
+ | } | ||
+ | }); | ||
} | } | ||
function hide(e) { | function hide(e) { | ||
$("#" + e).css("display", "none"); | $("#" + e).css("display", "none"); | ||
− | |||
− | |||
location.hash = ""; | location.hash = ""; | ||
} | } |
Latest revision as of 20:23, 13 December 2019