Skip to content

Commit

Permalink
command
Browse files Browse the repository at this point in the history
  • Loading branch information
bliotti committed Oct 26, 2024
1 parent 8807516 commit 1ad1c4c
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion templates/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,21 @@
<a class="cl-near-black" href="/bookshelf/">bookshelf</a> -->
|
<a class="cl-near-black" href="/bitcoin/">bitcoin</a>
|
<a class="cl-near-black" href="/install.sh/">dotfiles</a>
<hr />
</nav>

<!-- Button to copy text to clipboard -->
<button id="copyButton">copy install command</button>
<input type="text" id="copyText" value='/bin/bash -c "$(curl -fsSL https://coinguy.io/install.sh)"'
style="opacity: 0; position: absolute; left: -9999px;">

<script>
document.getElementById('copyButton').addEventListener('click', function () {
var copyText = document.getElementById('copyText');
copyText.select();
document.execCommand('copy');
alert('Text copied to clipboard: ' + copyText.value);
});
</script>
</nav>

0 comments on commit 1ad1c4c

Please sign in to comment.