Tag: clipboard.js
<script src="dist/clipboard.min.js"></script> <script> new Clipboard('.btn'); </script> <!-- Target --> <input id="foo" value="https://github.com/zenorocha/clipboard.js.git"> <!-- Trigger --> <button class="btn" data-clipboard-target="#foo"> <img src="assets/clippy.svg" alt="Copy to clipboard"> </button>