auto select and copy email

This commit is contained in:
Conner McCall 2025-02-12 13:16:45 -06:00
parent 9bc4a73345
commit d84ab59589
Signed by: conner
SSH key fingerprint: SHA256:9FcHWg2/05GYdL9pT2jFdLC7TJiZzJgtcXcBNEBSIX8

View file

@ -115,6 +115,7 @@
<div class="main"> <div class="main">
<form id="mask-form" <form id="mask-form"
hx-get="/mask" hx-get="/mask"
hx-on:htmx:load="window.getSelection().selectAllChildren(event.target);document.execCommand('copy');"
hx-swap="innerHTML"> hx-swap="innerHTML">
<input type="text" <input type="text"
name="description" name="description"
@ -136,4 +137,5 @@
</div> </div>
</body> </body>
</html> </html>