Sha256: 5aa5a118c6c46d36b6bc7ca12f5f00806c1cff0ac3d8f0fd45de1fb3fb237f27
Contents?: true
Size: 472 Bytes
Versions: 2
Compression:
Stored size: 472 Bytes
Contents
$(document).keydown(function (e) { if (window.location.href.endsWith("/edit")) { } else if (window.location.href.endsWith("/find")) { } else { if (e.key === "e") { window.location.href = window.location.href + "/edit"; } else if (e.key === "f") { let url; let findPath; url = new URL(window.location.href).href; findPath = url.substring(0, url.lastIndexOf('/')) + '/find'; window.location.href = findPath; } } });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clwiki-3.1.1 | app/assets/javascripts/cl_wiki/shortcuts.js |
clwiki-3.1.0 | app/assets/javascripts/cl_wiki/shortcuts.js |