/
scamii
/
scam-dev
Обзор
Документация
Войти
/
scamii
/
scam-dev
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
1
CI/CD
Аналитика
Безопасность
develop
plugins/scam-dev-matrix/assets/matrix.js
35 строк
905 B
github-actions[bot]
fix: remediate repository audit findings
10 июл 2026, 07:12
10 июл 2026, 07:12
8b37701
Код
Авторство
О чём код?
( function () { 'use strict'; function initialize() { document.querySelectorAll( '[data-password-toggle]' ).forEach( ( button ) => { button.addEventListener( 'click', () => { const targetId = button.getAttribute( 'aria-controls' ); const input = targetId ? document.getElementById( targetId ) : null; if ( ! input ) { return; } const reveal = input.type === 'password'; input.type = reveal ? 'text' : 'password'; button.setAttribute( 'aria-pressed', String( reveal ) ); button.setAttribute( 'aria-label', reveal ? 'Скрыть пароль' : 'Показать пароль' ); button.textContent = reveal ? 'Скрыть' : 'Показать'; } ); } ); } if ( document.readyState === 'loading' ) { document.addEventListener( 'DOMContentLoaded', initialize, { once: true, } ); } else { initialize(); } } )();