Adding the copy to clipboard ability back in

This commit is contained in:
Alice Rhodes 2023-08-20 17:26:55 -04:00
parent 2d83f84879
commit b6722cdef3
4 changed files with 134 additions and 1 deletions

View 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());
});
});