File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
website_and_docs/layouts/shortcodes Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 6464 < div style ="padding: 20px; border-bottom: 1px solid #dee2e6; display: flex; justify-content: space-between; align-items: center; ">
6565 < h5 style ="margin: 0; "> {{ $path }}</ h5 >
6666 < div >
67- < button onclick ="copyCode('{{ $uniqueId }}') " style ="margin-right: 10px; padding: 5px 10px; border: 1px solid #007bff; background: #007bff; color: white; border-radius: 4px; cursor: pointer; ">
67+ < button onclick ="copyCode('{{ $uniqueId }}', event ) " style ="margin-right: 10px; padding: 5px 10px; border: 1px solid #007bff; background: #007bff; color: white; border-radius: 4px; cursor: pointer; ">
6868 Copy
6969 </ button >
7070 < button onclick ="closeCodeModal('{{ $uniqueId }}') " style ="padding: 5px 10px; border: 1px solid #6c757d; background: #6c757d; color: white; border-radius: 4px; cursor: pointer; ">
@@ -89,7 +89,7 @@ <h5 style="margin: 0;">{{ $path }}</h5>
8989 document . body . style . overflow = '' ;
9090} ;
9191
92- window . copyCode = window . copyCode || function ( id ) {
92+ window . copyCode = window . copyCode || function ( id , event ) {
9393 const codeElement = document . getElementById ( 'codeContent_' + id ) ;
9494 const code = codeElement . textContent ;
9595
You can’t perform that action at this time.
0 commit comments