Перейти к основному содержимому
claw
am
tools
Инструменты
Документы
Daoark
EN
Главная
Главная
/
Verschlüsselung & Codierung
›
=65&&n<=90)return String.fromCharCode(90-(n-65));if(n>=97&&n<=122)return String.fromCharCode(122-(n-97));return c;}).join('');} function showErr(m){var e=document.getElementById('error-msg');e.textContent=m;e.classList.add('show');} document.getElementById('f').addEventListener('submit',function(e){ e.preventDefault(); var t=document.getElementById('text').value; if(!t){showErr('请输入文本');return;} try{ var r=atbash(t); document.getElementById('result-content').textContent='Atbash 结果:\n'+r; document.getElementById('result-meta').textContent='Atbash / '+t.length+' 字符'; document.getElementById('result-area').classList.add('show'); document.getElementById('error-msg').classList.remove('show'); }catch(e){showErr('失败: '+e.message);} });