Notes
![]() ![]() Notes - notes.io |
<html>
<head>
<title>JavaScript Kodunu HTML'ye Uyarlama</title>
<script>
const encodeMapping = {
a:'e',
b:'z',
c:'v',
ç:'y',
d:'p',
e:'a',
f:'j',
g:'k',
ğ:'l',
h:'r',
i:'ö',
ı:'o',
j:'f',
k:'g',
l:'ğ',
m:'c',
n:'ç',
o:'u',
ö:'ü',
p:'b',
r:'d',
s:'m',
ş:'n',
t:'h',
u:'ı',
ü:'i',
v:'s',
y:'ş',
z:'t'
};
const decodeMapping = Object.fromEntries(Object.entries(encodeMapping).map(ent => ent.reverse()));
const changeCoding = (text, mapping) => {
const capitals = Array.from(text).map(l => l.toLocaleUpperCase('TR') === l);
const lowerText = text.toLocaleLowerCase('TR');
const lowerEncoded = Array.from(lowerText).map(l => mapping[l] || l);
const encodedResult = capitals.map((elm, index) => elm === false ? lowerEncoded[index] : lowerEncoded[index].toLocaleUpperCase('TR'));
return encodedResult.join("");
};
const encode = (text) => changeCoding(text, encodeMapping);
const decode = (text) => changeCoding(text, decodeMapping);
function bgyTURKCEcevir() {
var original = document.getElementById("sifrelenmisKufur1").value;
const encoded = encode(original);
document.getElementById("turkceKufurAlani").value = encoded;
}
function turkceBGYcevir() {
var orig = document.getElementById("kufurAlani").value;
const decoded = decode(orig);
document.getElementById("sifrelenmisKufur").value = decoded;
}
</script>
</head>
<body>
<h1>Türkçe BGY Dönüştürücü</h1>
<label for="sifrelenmisKufur1">Şifrelenecek Metin:</label>
<input type="text" id="sifrelenmisKufur1">
<button onclick="bgyTURKCEcevir()">Türkçe'ye Çevir</button>
<br>
<label for="turkceKufurAlani">Şifrelenmiş Türkçe Metin:</label>
<input type="text" id="turkceKufurAlani" readonly>
<br><br>
<label for="kufurAlani">Çözülecek Şifreli Metin:</label>
<input type="text" id="kufurAlani">
<button onclick="turkceBGYcevir()">BGY'ye Çevir</button>
<br>
<label for="sifrelenmisKufur">Çözülmüş Metin:</label>
<input type="text" id="sifrelenmisKufur" readonly>
</body>
</html>
``
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team