diff --git a/ext/static_files/script.js b/ext/static_files/script.js index b74185dc..a2a8097e 100644 --- a/ext/static_files/script.js +++ b/ext/static_files/script.js @@ -69,6 +69,13 @@ document.addEventListener('DOMContentLoaded', () => { }); }); + /** setup copyable things */ + $(".shm-clicktocopy").each(function(idx, elm) { + $(elm).click(function(e) { + navigator.clipboard.writeText($(elm).text()); + }); + }); + /** setup arrow key bindings **/ document.addEventListener("keyup", function(e) { if ($(e.target).is('input,textarea')) { return; }