admins copy IDs
This commit is contained in:
@@ -464,3 +464,12 @@
|
||||
(- (t/in-days (t/interval (t/minus d (t/days 1)) today)))
|
||||
(t/in-days (t/interval today d )))]
|
||||
in))
|
||||
|
||||
(defn copy-to-clipboard [text]
|
||||
(let [el (js/document.createElement "textarea")]
|
||||
|
||||
(set! (.-value el) text)
|
||||
(.appendChild js/document.body el)
|
||||
(.select el)
|
||||
(js/document.execCommand "copy")
|
||||
(.removeChild js/document.body el)))
|
||||
|
||||
Reference in New Issue
Block a user