diff --git a/onlylegs/static/js/clipboard.js b/onlylegs/static/js/clipboard.js new file mode 100644 index 0000000..0882f56 --- /dev/null +++ b/onlylegs/static/js/clipboard.js @@ -0,0 +1,8 @@ +function copyToClipboard(data) { + try { + navigator.clipboard.writeText(data) + addNotification("Copied to clipboard!", 4); + } catch (err) { + addNotification("Oh noes, something when wrong D:", 2); + } +} \ No newline at end of file diff --git a/onlylegs/templates/group.html b/onlylegs/templates/group.html index d69530f..c7c3827 100644 --- a/onlylegs/templates/group.html +++ b/onlylegs/templates/group.html @@ -9,15 +9,6 @@ {% endif %}