debian-mirror-gitlab/app/views/shared/snippets/show.js.haml

4 lines
347 B
Text
Raw Normal View History

2022-07-23 23:45:48 +05:30
function copyToClipboard(queryEl) { const copyText = document.querySelector(queryEl).textContent; navigator.clipboard.writeText(copyText); }
2020-04-22 19:07:51 +05:30
document.write('#{escape_javascript(stylesheet_link_tag("#{stylesheet_url 'snippets'}"))}');
2020-10-24 23:57:45 +05:30
document.write('#{escape_javascript(render(partial: 'shared/snippets/embed', collection: @blobs, as: :blob))}');