This commit is contained in:
Andras Bacsai
2023-06-12 22:30:47 +02:00
parent 309ea0e4d2
commit 0f7512a394
5 changed files with 42 additions and 11 deletions

View File

@@ -38,6 +38,17 @@
<x-version class="fixed left-2 bottom-1" />
@auth
<script>
function changeType(id) {
console.log(id)
const input = document.getElementById(id);
console.log(input)
if (input.type === 'password') {
input.type = 'text';
} else {
input.type = 'password';
}
}
function copyToClipboard(text) {
navigator.clipboard.writeText(text);
Livewire.emit('message', 'Copied to clipboard.');