From 42a1dbc706c12bb6ace82b0865b46daa37655284 Mon Sep 17 00:00:00 2001 From: Ariyutta Date: Thu, 1 Oct 2026 09:09:26 +0700 Subject: [PATCH] Penambahan icon mata pada form password web wa --- resources/views/verifikasi-absen/halaman.blade.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/resources/views/verifikasi-absen/halaman.blade.php b/resources/views/verifikasi-absen/halaman.blade.php index fb0f8291..acaefe66 100644 --- a/resources/views/verifikasi-absen/halaman.blade.php +++ b/resources/views/verifikasi-absen/halaman.blade.php @@ -217,7 +217,12 @@
+
+ +
@@ -456,6 +461,14 @@ $('.batal-aksi').on('click', tutupForm); + $('#togglePassphrase').on('click', function () { + const $input = $('#formSetujui [name=passphrase]'); + const tampil = $input.attr('type') === 'password'; + $input.attr('type', tampil ? 'text' : 'password'); + $(this).attr('aria-label', tampil ? 'Sembunyikan passphrase' : 'Tampilkan passphrase') + .find('i').toggleClass('fa-eye', !tampil).toggleClass('fa-eye-slash', tampil); + }); + $('#formSetujui').on('submit', function (e) { e.preventDefault(); const $btn = $(this).find('button[type=submit]');