mirror of
https://gitlab.com/veilid/veilid-dot-com.git
synced 2025-07-25 15:25:26 -04:00
Adding the copy to clipboard ability back in
This commit is contained in:
parent
2d83f84879
commit
b6722cdef3
4 changed files with 134 additions and 1 deletions
8
themes/veilid/static/js/scripts.js
Normal file
8
themes/veilid/static/js/scripts.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
$(document).ready(function(){
|
||||
|
||||
// Copy code snippets to the clipboard
|
||||
$('.code-snippet').on('click',function(){
|
||||
navigator.clipboard.writeText($(this).children('input').val());
|
||||
});
|
||||
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue