MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / togglePassword

Function togglePassword

static/js/accounts.js:848–858  ·  view source on GitHub ↗
(element, password)

Source from the content-addressed store, hash-verified

846
847// 切换密码显示
848function togglePassword(element, password) {
849 if (element.dataset.revealed === 'true') {
850 element.textContent = password.substring(0, 4) + '****';
851 element.classList.add('password-hidden');
852 element.dataset.revealed = 'false';
853 } else {
854 element.textContent = password;
855 element.classList.remove('password-hidden');
856 element.dataset.revealed = 'true';
857 }
858}
859
860// 更新分页
861function updatePagination() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected