Web utilities

Copy button

Copies all inner text of an element specified by the `textid` attribute.

Code:

<script src="https://webutils.vitapavlik.cz/resources/js/copy-button.js" defer></script>
<button class="copy-button" textid="text-to-copy"></button>
<p id="text-to-copy">This text will be copied</p>

Example:

This text will be copied