This commit is contained in:
Andras Bacsai
2023-06-15 13:51:31 +02:00
parent f46493e885
commit 0d45d9980c
14 changed files with 32 additions and 48 deletions

View File

@@ -79,15 +79,6 @@
}, 2000);
}
function changePasswordFieldType(id) {
const input = document.getElementById(id);
if (input.type === 'password') {
input.type = 'text';
} else {
input.type = 'password';
}
}
function copyToClipboard(text) {
navigator.clipboard.writeText(text);
Livewire.emit('message', 'Copied to clipboard.');
@@ -108,18 +99,17 @@
if (message) Toaster.success(message)
})
</script>
@else
<script>
function changePasswordFieldType(id) {
const input = document.getElementById(id);
if (input.type === 'password') {
input.type = 'text';
} else {
input.type = 'password';
}
}
</script>
@endauth
<script>
function changePasswordFieldType(id) {
const input = document.getElementById(id);
if (input.type === 'password') {
input.type = 'text';
} else {
input.type = 'password';
}
}
</script>
</body>
</html>