Skip to content

Commit

Permalink
(crypto) s3cure-chats update
Browse files Browse the repository at this point in the history
  • Loading branch information
souvlakias authored Jun 30, 2024
1 parent 1333039 commit bebd4a8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions crypto/s3cure-chats/setup/templates/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@
<div class="user-info">
<p class="user-name">{{ username}}</p>
<p class="user-description">{{ private_key }}</p>
<button id="copyButton">Copy to Clipboard</button>
<script>
document.getElementById('copyButton').addEventListener('click', function() {
const textArea = document.createElement('textarea');
textArea.value = `{{ private_key }}`;
document.body.appendChild(textArea);
textArea.select();
document.execCommand('copy');
document.body.removeChild(textArea);
alert('Text copied to clipboard!');
});
</script>
</div>
</div>
</body>
Expand Down

0 comments on commit bebd4a8

Please sign in to comment.